Closed Bug 304228 Opened 20 years ago Closed 20 years ago

On Mac OS X xulrunner launch, either (1) crash or (2) bizarre xpcom shutdown & can't focus the window

Categories

(Toolkit Graveyard :: XULRunner, defect)

PowerPC
macOS
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 300139

People

(Reporter: brenocon, Unassigned)

Details

User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6 Build Identifier: 1. I built xulrunner with this mozconfig: mk_add_options MOZ_CO_PROJECT=browser,xulrunner ac_add_options --enable-application=xulrunner #. $topsrcdir/browser/config/mozconfig ac_add_options --disable-optimize ac_add_options --enable-debug ac_add_options --enable-shared ac_add_options --disable-tests ## ac_add_options --enable-extensions=python/xpcom export PYTHON=/usr/bin/python mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/od2 2. If I run via ./xulrunner, I get: code/mozilla/od2/dist/bin% ./xulrunner [22] Could not find compatible GRE, version <1.8b4_0000000000> and it quits. 3. I can get it running via ./run-mozilla.sh ./xulrunner-bin, but the debug messages indicate that xpcom shut down (?!) and some threading error. When this happens, I'm dumped back to the console prompt, but then it keeps running in the background, happily spewing out more debug messages. Finally, the application actually does launch, but it can't accept focus: I click and click on it, but the title bar doesn't get hilited, and I can't click on buttons: it's completely non-responsive to my clicking, though I can drag the titlebar and the whole window moves. However, the app is actually running and the visual display is fine. In fact, the app responds to mouseover events properly. (am using mybrowser: http://friedfish.homeip.net/~darinf/xulrunner/mybrowser.html, the mouseovers on the moz home page work right. However this problem exists for any xulrunner app.) Furthermore, the app doesn't appear on the Dock, and doesn't appear in the list of programs in Apple-Option-Esc (like ctrl-alt-del on win), and I can't alt-tab to it. Here's the total debug output. You'll see about in the middle I'm dumped to the console. code/mozilla/od2/dist/bin% ./run-mozilla.sh ./xulrunner-bin ~/code/xul/mybrowser/application.ini --------------------------------------------------------- Vendor MozillaTest Name MyBrowser Version 0.2 BuildID 2005041816 Copyright Copyright (c) 2004 Mozilla.org Flags 00000000 --------------------------------------------------------- No Persistent Registry Found. Type Manifest File: /Users/brendano/Library/Application Support/MyBrowser/Profiles/n2i9kwhf.default/xpti.dat *** Registering xpcomObsoleteModule components (all right -- a generic module!) *** Registering xpconnect components (all right -- a generic module!) *** Registering nsUCvMathModule components (all right -- a generic module!) *** Registering nsUConvModule components (all right -- a generic module!) *** Registering nsI18nModule components (all right -- a generic module!) *** Registering necko_core_and_primary_protocols components (all right -- a generic module!) *** Registering necko_secondary_protocols components (all right -- a generic module!) *** Registering nsJarModule components (all right -- a generic module!) *** Registering nsPrefModule components (all right -- a generic module!) *** Registering nsSecurityManagerModule components (all right -- a generic module!) *** Registering nsRDFModule components (all right -- a generic module!) *** Registering nsParserModule components (all right -- a generic module!) *** Registering nsGfxMacModule components (all right -- a generic module!) *** Registering nsWidgetMacModule components (all right -- a generic module!) *** Registering nsImageLib2Module components (all right -- a generic module!) *** Registering nsIconDecoderModule components (all right -- a generic module!) *** Registering nsPluginModule components (all right -- a generic module!) *** Registering nsLayoutModule components (all right -- a generic module!) *** Registering docshell_provider components (all right -- a generic module!) *** Registering embedcomponents components (all right -- a generic module!) *** Registering Browser_Embedding_Module components (all right -- a generic module!) *** Registering nsEditorModule components (all right -- a generic module!) *** Registering nsCJVMManagerModule components (all right -- a generic module!) *** Registering nsAccessibilityModule components (all right -- a generic module!) *** Registering appshell components (all right -- a generic module!) *** Registering nsTransactionManagerModule components (all right -- a generic module!) *** Registering nsComposerModule components (all right -- a generic module!) *** Registering nsChromeModule components (all right -- a generic module!) *** Registering nsMorkModule components (all right -- a generic module!) *** Registering nsFindComponent components (all right -- a generic module!) *** Registering application components (all right -- a generic module!) *** Registering Apprunner components (all right -- a generic module!) *** Registering CommandLineModule components (all right -- a generic module!) *** Registering nsToolkitCompsModule components (all right -- a generic module!) *** Registering nsSoftwareUpdate components (all right -- a generic module!) *** Registering JavaScript_Debugger components (all right -- a generic module!) nsNativeComponentLoader: autoregistering begins. *** Registering nsAutoConfigModule components (all right -- a generic module!) *** Registering nsNegotiateAuthModule components (all right -- a generic module!) *** Registering BOOT components (all right -- a generic module!) *** Registering NSS components (all right -- a generic module!) *** Registering PKI components (all right -- a generic module!) *** Registering TransformiixModule components (all right -- a generic module!) *** Registering nsUniversalCharDetModule components (all right -- a generic module!) *** Registering nsWebServicesModule components (all right -- a generic module!) *** Registering nsXMLExtrasModule components (all right -- a generic module!) nsNativeComponentLoader: autoregistering succeeded nsNativeComponentLoader: registering deferred (0) nsNativeComponentLoader: registering deferred (0) nsNativeComponentLoader: registering deferred (0) nsNativeComponentLoader: autoregistering begins. nsNativeComponentLoader: autoregistering succeeded nsNativeComponentLoader: registering deferred (0) pldhash: for the table at address 0x11b3e80, the given entrySize of 44 probably favors chaining over double hashing. WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file /Users/brendano/code/mozilla/chrome/src/nsChromeRegistry.cpp, line 1245 ++WEBSHELL == 1 WARNING: NS_ENSURE_TRUE(cv) failed, file /Users/brendano/code/mozilla/xpfe/appshell/src/nsXULWindow.cpp, line 1557 ++DOMWINDOW == 1 WARNING: NS_ENSURE_TRUE(cv) failed, file /Users/brendano/code/mozilla/xpfe/appshell/src/nsXULWindow.cpp, line 1557 WARNING: nsExceptionService ignoring thread destruction after shutdown, file /Users/brendano/code/mozilla/xpcom/base/nsExceptionService.cpp, line 191 --WEBSHELL == 0 ###!!! ASSERTION: Main thread being held past XPCOM shutdown.: 'cnt == 0', file /Users/brendano/code/mozilla/xpcom/threads/nsThread.cpp, line 471 Break: at file /Users/brendano/code/mozilla/xpcom/threads/nsThread.cpp, line 471 nsMenuItemX 0 nsMenuX 0 nsStringStats => mAllocCount: 1401 => mReallocCount: 1 => mFreeCount: 1400 -- LEAKED 1 !!! => mShareCount: 119 => mAdoptCount: 643 => mAdoptFreeCount: 642 -- LEAKED 1 !!! code/mozilla/od2/dist/bin% --------------------------------------------------------- Vendor MozillaTest Name MyBrowser Version 0.2 BuildID 2005041816 Copyright Copyright (c) 2004 Mozilla.org Flags 00000000 --------------------------------------------------------- Type Manifest File: /Users/brendano/Library/Application Support/MyBrowser/Profiles/n2i9kwhf.default/xpti.dat *** Registering xpcomObsoleteModule components (all right -- a generic module!) *** Registering xpconnect components (all right -- a generic module!) *** Registering nsUCvMathModule components (all right -- a generic module!) *** Registering nsUConvModule components (all right -- a generic module!) *** Registering nsI18nModule components (all right -- a generic module!) *** Registering necko_core_and_primary_protocols components (all right -- a generic module!) *** Registering necko_secondary_protocols components (all right -- a generic module!) *** Registering nsJarModule components (all right -- a generic module!) *** Registering nsPrefModule components (all right -- a generic module!) *** Registering nsSecurityManagerModule components (all right -- a generic module!) *** Registering nsRDFModule components (all right -- a generic module!) *** Registering nsParserModule components (all right -- a generic module!) *** Registering nsGfxMacModule components (all right -- a generic module!) *** Registering nsWidgetMacModule components (all right -- a generic module!) *** Registering nsImageLib2Module components (all right -- a generic module!) *** Registering nsIconDecoderModule components (all right -- a generic module!) *** Registering nsPluginModule components (all right -- a generic module!) *** Registering nsLayoutModule components (all right -- a generic module!) *** Registering docshell_provider components (all right -- a generic module!) *** Registering embedcomponents components (all right -- a generic module!) *** Registering Browser_Embedding_Module components (all right -- a generic module!) *** Registering nsEditorModule components (all right -- a generic module!) *** Registering nsCJVMManagerModule components (all right -- a generic module!) *** Registering nsAccessibilityModule components (all right -- a generic module!) *** Registering appshell components (all right -- a generic module!) *** Registering nsTransactionManagerModule components (all right -- a generic module!) *** Registering nsComposerModule components (all right -- a generic module!) *** Registering nsChromeModule components (all right -- a generic module!) *** Registering nsMorkModule components (all right -- a generic module!) *** Registering nsFindComponent components (all right -- a generic module!) *** Registering application components (all right -- a generic module!) *** Registering Apprunner components (all right -- a generic module!) *** Registering CommandLineModule components (all right -- a generic module!) *** Registering nsToolkitCompsModule components (all right -- a generic module!) *** Registering nsSoftwareUpdate components (all right -- a generic module!) *** Registering JavaScript_Debugger components (all right -- a generic module!) nsNativeComponentLoader: autoregistering begins. nsNativeComponentLoader: autoregistering succeeded nsNativeComponentLoader: registering deferred (0) pldhash: for the table at address 0x611600, the given entrySize of 44 probably favors chaining over double hashing. WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file /Users/brendano/code/mozilla/chrome/src/nsChromeRegistry.cpp, line 1245 ++WEBSHELL == 1 bad FastLoad file checksum WARNING: NS_ENSURE_TRUE(cv) failed, file /Users/brendano/code/mozilla/xpfe/appshell/src/nsXULWindow.cpp, line 1557 ++DOMWINDOW == 1 WARNING: NS_ENSURE_TRUE(cv) failed, file /Users/brendano/code/mozilla/xpfe/appshell/src/nsXULWindow.cpp, line 1557 WARNING: NS_ENSURE_TRUE(window) failed, file /Users/brendano/code/mozilla/xpfe/appshell/src/nsXULWindow.cpp, line 2014 WARNING: NS_ENSURE_TRUE(cv) failed, file /Users/brendano/code/mozilla/xpfe/appshell/src/nsXULWindow.cpp, line 1557 WARNING: NS_ENSURE_TRUE(windowElement) failed, file /Users/brendano/code/mozilla/xpfe/appshell/src/nsXULWindow.cpp, line 998 WARNING: NS_ENSURE_TRUE(cv) failed, file /Users/brendano/code/mozilla/xpfe/appshell/src/nsXULWindow.cpp, line 1557 WARNING: NS_ENSURE_TRUE(windowElement) failed, file /Users/brendano/code/mozilla/xpfe/appshell/src/nsXULWindow.cpp, line 1366 WARNING: getting z level of unregistered window, file /Users/brendano/code/mozilla/xpfe/appshell/src/nsWindowMediator.cpp, line 635 WARNING: getting z level of unregistered window, file /Users/brendano/code/mozilla/xpfe/appshell/src/nsWindowMediator.cpp, line 635 ++DOMWINDOW == 2 ++WEBSHELL == 2 ++DOMWINDOW == 3 ++DOMWINDOW == 4 WARNING: trying to find screen for sizeless window, using primary monitor, file /Users/brendano/code/mozilla/gfx/src/mac/nsScreenManagerMac.cpp, line 119 WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file /Users/brendano/code/mozilla/intl/strres/src/nsStringBundle.cpp, line 273 ++WEBSHELL == 3 ++DOMWINDOW == 5 Note: styleverifytree is disabled Note: frameverifytree is disabled ++DOMWINDOW == 6 Note: verifyreflow is disabled ++DOMWINDOW == 7 WARNING: Couldn't add reflow command, so splitting. WARNING: Couldn't add reflow command, so splitting. WARNING: Couldn't add reflow command, so splitting. Reproducible: Always Steps to Reproduce:
Once upon a time this worked for me. A bunch of things have changed with the OSX version of XULRunner. For example, libxul is now a framework. Benjamin is working on improving XULRunner for OSX. Maybe he has some ideas about this.
See bug 300139: basically, xulrunner apps on mac need to be "installed" to form a mac application bundle (if the xulrunner itself were an application bundle, we wouldn't be able to run two different xulrunner applications at the same time). *** This bug has been marked as a duplicate of 300139 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
oops, sorry about the dupe folks -- i don't know enough about the mac app system to realize that other bug was the cause of this behavior.
Sorry, just to clarify because I'm ignorant: at the present time, there is no way to run xulrunner apps on mac?
At the present-time you have to hand-construct the application bundle.
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.