diff options
author | Armin Weatherwax | 2010-03-04 12:35:58 +0100 |
---|---|---|
committer | Armin Weatherwax | 2010-03-04 22:51:50 +0100 |
commit | 89c1714c0e967cb5f963f6f0decf1928441c08c9 (patch) | |
tree | 36ad5de7f62deabb5bd3569e86cee4f2f034118f | |
parent | Updating some clothing layer related changes to latest version of emerald. (diff) | |
download | meta-impy-89c1714c0e967cb5f963f6f0decf1928441c08c9.zip meta-impy-89c1714c0e967cb5f963f6f0decf1928441c08c9.tar.gz meta-impy-89c1714c0e967cb5f963f6f0decf1928441c08c9.tar.bz2 meta-impy-89c1714c0e967cb5f963f6f0decf1928441c08c9.tar.xz |
Linux64: for DBUS-Debug build- track where it's crashing (if still).
Add disableDBUS setting as a temporary workaround in case DBUS is still crashing.
-rw-r--r-- | linden/indra/newview/app_settings/cmd_line.xml | 8 | ||||
-rw-r--r-- | linden/indra/newview/app_settings/logcontrol.xml | 6 | ||||
-rw-r--r-- | linden/indra/newview/app_settings/settings.xml | 11 | ||||
-rw-r--r-- | linden/indra/newview/llappviewerlinux.cpp | 28 |
4 files changed, 48 insertions, 5 deletions
diff --git a/linden/indra/newview/app_settings/cmd_line.xml b/linden/indra/newview/app_settings/cmd_line.xml index 5f11ed8..d2d8b74 100644 --- a/linden/indra/newview/app_settings/cmd_line.xml +++ b/linden/indra/newview/app_settings/cmd_line.xml | |||
@@ -333,5 +333,13 @@ | |||
333 | <string>CrashOnStartup</string> | 333 | <string>CrashOnStartup</string> |
334 | </map> | 334 | </map> |
335 | 335 | ||
336 | <key>disabledbus</key> | ||
337 | <map> | ||
338 | <key>desc</key> | ||
339 | <string>Disable DBUS API (get SLURL from Webbrowser atm).</string> | ||
340 | <key>map-to</key> | ||
341 | <string>DisableDBUS</string> | ||
342 | </map> | ||
343 | |||
336 | </map> | 344 | </map> |
337 | </llsd> | 345 | </llsd> |
diff --git a/linden/indra/newview/app_settings/logcontrol.xml b/linden/indra/newview/app_settings/logcontrol.xml index 401b145..9179887 100644 --- a/linden/indra/newview/app_settings/logcontrol.xml +++ b/linden/indra/newview/app_settings/logcontrol.xml | |||
@@ -40,6 +40,8 @@ | |||
40 | </array> | 40 | </array> |
41 | <key>tags</key> | 41 | <key>tags</key> |
42 | <array> | 42 | <array> |
43 | <string>DBUS</string> | ||
44 | <!--Unused debug messages below--><!-- | ||
43 | <string>OpenAL</string> | 45 | <string>OpenAL</string> |
44 | <string>APR</string> | 46 | <string>APR</string> |
45 | <string>AudioEngine</string> | 47 | <string>AudioEngine</string> |
@@ -52,9 +54,9 @@ | |||
52 | <string>ShaderLoading</string> | 54 | <string>ShaderLoading</string> |
53 | <string>XMLNode</string> | 55 | <string>XMLNode</string> |
54 | <string>Openjpeg</string> | 56 | <string>Openjpeg</string> |
55 | <!--Unused debug messages below--> | 57 | |
56 | 58 | ||
57 | <!--<string>RLV</string> | 59 | <string>RLV</string> |
58 | <string>Messaging</string> | 60 | <string>Messaging</string> |
59 | <string>ViewerImages</string> | 61 | <string>ViewerImages</string> |
60 | <string>Throttle</string> | 62 | <string>Throttle</string> |
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml index 036b751..5687eb7 100644 --- a/linden/indra/newview/app_settings/settings.xml +++ b/linden/indra/newview/app_settings/settings.xml | |||
@@ -3146,6 +3146,17 @@ | |||
3146 | <key>Value</key> | 3146 | <key>Value</key> |
3147 | <string>89556747-24cb-43ed-920b-47caed15465f</string> | 3147 | <string>89556747-24cb-43ed-920b-47caed15465f</string> |
3148 | </map> | 3148 | </map> |
3149 | <key>DisableDBUS</key> | ||
3150 | <map> | ||
3151 | <key>Comment</key> | ||
3152 | <string>Disable DBUS API (get SLURL from Webbrowser atm).</string> | ||
3153 | <key>Persist</key> | ||
3154 | <integer>1</integer> | ||
3155 | <key>Type</key> | ||
3156 | <string>Boolean</string> | ||
3157 | <key>Value</key> | ||
3158 | <integer>0</integer> | ||
3159 | </map> | ||
3149 | <key>DisableCameraConstraints</key> | 3160 | <key>DisableCameraConstraints</key> |
3150 | <map> | 3161 | <map> |
3151 | <key>Comment</key> | 3162 | <key>Comment</key> |
diff --git a/linden/indra/newview/llappviewerlinux.cpp b/linden/indra/newview/llappviewerlinux.cpp index d2ed5d2..9727dcf 100644 --- a/linden/indra/newview/llappviewerlinux.cpp +++ b/linden/indra/newview/llappviewerlinux.cpp | |||
@@ -369,6 +369,7 @@ G_DEFINE_TYPE(ViewerAppAPI, viewerappapi, G_TYPE_OBJECT); | |||
369 | 369 | ||
370 | void viewerappapi_class_init(ViewerAppAPIClass *klass) | 370 | void viewerappapi_class_init(ViewerAppAPIClass *klass) |
371 | { | 371 | { |
372 | LL_DEBUGS("DBUS")<< "Debug DBUS1"<< LL_ENDL; | ||
372 | } | 373 | } |
373 | 374 | ||
374 | static bool dbus_server_init = false; | 375 | static bool dbus_server_init = false; |
@@ -376,19 +377,23 @@ static bool dbus_server_init = false; | |||
376 | void viewerappapi_init(ViewerAppAPI *server) | 377 | void viewerappapi_init(ViewerAppAPI *server) |
377 | { | 378 | { |
378 | // Connect to the default DBUS, register our service/API. | 379 | // Connect to the default DBUS, register our service/API. |
379 | 380 | LL_DEBUGS("DBUS")<< "Debug DBUS2"<< LL_ENDL; | |
380 | if (!dbus_server_init) | 381 | if (!dbus_server_init) |
381 | { | 382 | { |
383 | LL_DEBUGS("DBUS")<< "Debug DBUS3"<< LL_ENDL; | ||
382 | GError *error = NULL; | 384 | GError *error = NULL; |
383 | 385 | ||
384 | server->connection = dbus_g_bus_get(DBUS_BUS_SESSION, &error); | 386 | server->connection = dbus_g_bus_get(DBUS_BUS_SESSION, &error); |
387 | LL_DEBUGS("DBUS")<< "Debug DBUS4"<< LL_ENDL; | ||
385 | if (server->connection) | 388 | if (server->connection) |
386 | { | 389 | { |
387 | dbus_g_object_type_install_info(viewerappapi_get_type(), &dbus_glib_viewerapp_object_info); | 390 | dbus_g_object_type_install_info(viewerappapi_get_type(), &dbus_glib_viewerapp_object_info); |
388 | 391 | LL_DEBUGS("DBUS")<< "Debug DBUS5"<< LL_ENDL; | |
389 | dbus_g_connection_register_g_object(server->connection, VIEWERAPI_PATH, G_OBJECT(server)); | 392 | dbus_g_connection_register_g_object(server->connection, VIEWERAPI_PATH, G_OBJECT(server)); |
390 | 393 | LL_DEBUGS("DBUS")<< "Debug DBUS6"<< LL_ENDL; | |
394 | |||
391 | DBusGProxy *serverproxy = dbus_g_proxy_new_for_name(server->connection, DBUS_SERVICE_DBUS, DBUS_PATH_DBUS, DBUS_INTERFACE_DBUS); | 395 | DBusGProxy *serverproxy = dbus_g_proxy_new_for_name(server->connection, DBUS_SERVICE_DBUS, DBUS_PATH_DBUS, DBUS_INTERFACE_DBUS); |
396 | LL_DEBUGS("DBUS")<< "Debug DBUS7"<< LL_ENDL; | ||
392 | 397 | ||
393 | guint request_name_ret_unused; | 398 | guint request_name_ret_unused; |
394 | // akin to org_freedesktop_DBus_request_name | 399 | // akin to org_freedesktop_DBus_request_name |
@@ -396,6 +401,7 @@ void viewerappapi_init(ViewerAppAPI *server) | |||
396 | { | 401 | { |
397 | // total success. | 402 | // total success. |
398 | dbus_server_init = true; | 403 | dbus_server_init = true; |
404 | LL_DEBUGS("DBUS")<< "Debug DBUS8"<< LL_ENDL; | ||
399 | } | 405 | } |
400 | else | 406 | else |
401 | { | 407 | { |
@@ -403,6 +409,7 @@ void viewerappapi_init(ViewerAppAPI *server) | |||
403 | } | 409 | } |
404 | 410 | ||
405 | g_object_unref(serverproxy); | 411 | g_object_unref(serverproxy); |
412 | LL_DEBUGS("DBUS")<< "Debug DBUS9"<< LL_ENDL; | ||
406 | } | 413 | } |
407 | else | 414 | else |
408 | { | 415 | { |
@@ -410,8 +417,16 @@ void viewerappapi_init(ViewerAppAPI *server) | |||
410 | } | 417 | } |
411 | 418 | ||
412 | if (error) | 419 | if (error) |
420 | { | ||
413 | g_error_free(error); | 421 | g_error_free(error); |
422 | LL_DEBUGS("DBUS")<< "Debug DBUS10"<< LL_ENDL; | ||
423 | } | ||
424 | |||
414 | } | 425 | } |
426 | else | ||
427 | LL_DEBUGS("DBUS")<< "Debug DBUS11"<< LL_ENDL; | ||
428 | |||
429 | LL_DEBUGS("DBUS")<< "Debug DBUS End"<< LL_ENDL; | ||
415 | } | 430 | } |
416 | 431 | ||
417 | gboolean viewer_app_api_GoSLURL(ViewerAppAPI *obj, gchar *slurl, gboolean **success_rtn, GError **error) | 432 | gboolean viewer_app_api_GoSLURL(ViewerAppAPI *obj, gchar *slurl, gboolean **success_rtn, GError **error) |
@@ -442,7 +457,11 @@ gboolean viewer_app_api_GoSLURL(ViewerAppAPI *obj, gchar *slurl, gboolean **succ | |||
442 | //virtual | 457 | //virtual |
443 | bool LLAppViewerLinux::initSLURLHandler() | 458 | bool LLAppViewerLinux::initSLURLHandler() |
444 | { | 459 | { |
460 | if (gSavedSettings.getBOOL("DisableDBUS")) | ||
461 | return false; | ||
462 | |||
445 | g_type_init(); | 463 | g_type_init(); |
464 | LL_DEBUGS("DBUS")<< "Debug DBUS Start"<< LL_ENDL; | ||
446 | 465 | ||
447 | //ViewerAppAPI *api_server = (ViewerAppAPI*) | 466 | //ViewerAppAPI *api_server = (ViewerAppAPI*) |
448 | g_object_new(viewerappapi_get_type(), NULL); | 467 | g_object_new(viewerappapi_get_type(), NULL); |
@@ -453,6 +472,9 @@ bool LLAppViewerLinux::initSLURLHandler() | |||
453 | //virtual | 472 | //virtual |
454 | bool LLAppViewerLinux::sendURLToOtherInstance(const std::string& url) | 473 | bool LLAppViewerLinux::sendURLToOtherInstance(const std::string& url) |
455 | { | 474 | { |
475 | if (gSavedSettings.getBOOL("DisableDBUS")) | ||
476 | return false; | ||
477 | |||
456 | bool success = false; | 478 | bool success = false; |
457 | DBusGConnection *bus; | 479 | DBusGConnection *bus; |
458 | GError *error = NULL; | 480 | GError *error = NULL; |