Joined: May 02, 2011 Posts: 7 Location: Media, Pennsylvania
Posted: Mon May 02, 2011 2:27 pm Post subject: NeoOffice quit unexpectedly
So, I've been scouring the forums to find the answer, and finally just ponied up to hit $100 so I could get some help. NeoOffice has been crashing for a while, I'd like to say even pre-3.2 but right now I'm 3.2 Patch 1, and all support tips are a wash.
Here's where I'm at:
Install NeoOffice Patches
3.2 patch 1, should be good
Update Mac OS X
v 10.6.7
Disable system hacks
Did this. Handy way to do so:
Check the Console.log
From a single run/crash round:
Code:
5/2/11 5:08:40 PM soffice.bin[1164] JavaNativeFoundation: GetGlobalVM: JNI_GetCreatedJavaVMs() failed to get any VM.
5/2/11 5:08:40 PM soffice.bin[1164] Apple AWT: +[ThreadUtilities getJNIEnvUncached] attempting to attach current thread after JNFObtainEnv() failed
5/2/11 5:08:40 PM soffice.bin[1164] JavaNativeFoundation: GetGlobalVM: JNI_GetCreatedJavaVMs() failed to get any VM.
5/2/11 5:08:40 PM soffice.bin[1164] Apple AWT: +[ThreadUtilities getJNIEnvUncached] attempting to attach current thread after JNFObtainEnv() failed
5/2/11 5:08:44 PM soffice.bin[1164] JavaNativeFoundation: GetGlobalVM: JNI_GetCreatedJavaVMs() failed to get any VM.
5/2/11 5:08:44 PM soffice.bin[1164] Apple AWT: +[ThreadUtilities getJNIEnvUncached] attempting to attach current thread after JNFObtainEnv() failed
5/2/11 5:08:44 PM soffice.bin[1164] JavaNativeFoundation: GetGlobalVM: JNI_GetCreatedJavaVMs() failed to get any VM.
5/2/11 5:08:44 PM soffice.bin[1164] Apple AWT: +[ThreadUtilities getJNIEnvUncached] attempting to attach current thread after JNFObtainEnv() failed
5/2/11 5:08:44 PM soffice.bin[1164] JavaNativeFoundation: GetGlobalVM: JNI_GetCreatedJavaVMs() failed to get any VM.
5/2/11 5:08:44 PM soffice.bin[1164] Apple AWT: +[ThreadUtilities getJNIEnvUncached] attempting to attach current thread after JNFObtainEnv() failed
5/2/11 5:08:44 PM soffice.bin[1164] JavaNativeFoundation: GetGlobalVM: JNI_GetCreatedJavaVMs() failed to get any VM.
5/2/11 5:08:44 PM soffice.bin[1164] JavaNativeFoundation: GetGlobalVM: JNI_GetCreatedJavaVMs() failed to get any VM.
5/2/11 5:08:45 PM ReportCrash[1170] Saved crash report for soffice.bin[1164] version 3.2 Patch 1 (3.2 Patch 1 Intel (pluby:guibomacmini.local.)) to /Users/kent/Library/Logs/DiagnosticReports/soffice.bin_2011-05-02-170845_fructose.crash
Crash Log
See attached.
Insufficient RAM
6 GB should be plenty.
Too many open files
I changed sysctl.conf to 65535 as instructed, already.
Resetting permission
Already booted in single-user mode and
Code:
fsck -fy; reboot;
Java Preferences
Java SE 6 (1.6.0_24-b07-334) checked, only, 64-then-32-bit.
Java works
Compiled and ran Test.java, no issues.
It appears that the app launches, begins to draw the main window, then crashes.
Thanks for your help; I've been a supporter for a while and didn't realize how much I depend on having it working!
Thank you for the crash log. Although it is hard to be certain from the crash log, it appears that the crash is occurring when NeoOffice is trying to open or close a floating window.
I haven't seen a crash in this particular area of code before so is there a specific set of steps that you do that I can use to reproduce this crash? Or does the crash occur on launch?
Once I can reproduce the crash, I am fairly certain that I can fix it and post a test patch for you to try as the crash is occurring in NeoOffice's custom code, not the underlying OpenOffice.org code.
I looked more closely at your crash log and I think I know what is causing the crash: Apple's Java is failing to fully load.
I also noticed that in your Console log that your "soffice.bin_2011-05-02-170845_fructose.crash" crash log has a non-standard name. Mac OS X never puts "_fructose" in crash log names so is it possible that you have a system hack or kernel extension installed on your machine that is making Java unloadable?
Joined: May 02, 2011 Posts: 7 Location: Media, Pennsylvania
Posted: Mon May 02, 2011 3:28 pm Post subject: Only on launch
It only happens on launch. The only step is to launch the application. I can't open a file, or launch it solo, so I'm kind of stuck.
I don't know if there's any command-line switches to change how the app opens (e.g. into Calc or other internal apps), but if there are, I can try those to see if it makes a difference.
Otherwise, I'm unsure how to reproduce my environment there (and I understand why ...). I don't know if there's a debugging version of the app available or what development environment is needed to debug it, but I'm a developer and have Eclipse, NetBeans, and XCode on my machine if it's helpful. Alternatively, do you have a debug version and see if you can get more accurate call stack info? Is there anything else I'm missing?
Posted: Mon May 02, 2011 3:33 pm Post subject: Re: Only on launch
It looks like I was writing my latest post while you were posting so can you look at the last post and see if the "_fructose" string in the crash log file name indicates some sort of system hack is installed? Clearly certain window types are failing to load in Java so I think we have to look for something that may be injecting its own code and interfering with Java's native code.
Joined: May 02, 2011 Posts: 7 Location: Media, Pennsylvania
Posted: Mon May 02, 2011 3:42 pm Post subject: Safe mode boot didn't make a difference
Booted in "safe mode" (hold down Shift while booting - shows red "Safe mode" on the login screen.)
Same problem. Crashed on startup. Attached, no extensions should be loaded at this point. _________________ Web development in Media, PA Market Acumen, Inc.: We build lasting businesses.
Posted: Mon May 02, 2011 3:57 pm Post subject: Re: Safe mode boot didn't make a difference
acumen wrote:
Booted in "safe mode" (hold down Shift while booting - shows red "Safe mode" on the login screen.)
Same problem. Crashed on startup. Attached, no extensions should be loaded at this point.
Very weird. Your crash log in safe boot mode is in a different place in Apple's Java code. It crashing while looking for a Java class.
Since the location of crash keeps changing, I suspect that memory is getting corrupted at some point but since you have no system hacks in the usual locations we can probably ignore system hacks as the most likely cause for now.
I would like to get you back to a clean set of preferences. I saw that you deleted your NeoOffice-3.0 preferences folder, but there are two other potential locations that preferences can be imported from when no preferences NeoOffice-3.0 preferences folder exists. So, can you delete the following folders and files and, if NeoOffice still crashes, post another crash log?:
Your crash logs seem to now be recurring in the same place and a quick Google search shows that same crash appearing in several other applications' crash logs.
So far, the only solution that anyone has found is to set the default Java preferences like in this forum topic.
Do you see any different settings in any of the tabs of the Java preferences application than in my screen snapshot?
Joined: May 02, 2011 Posts: 7 Location: Media, Pennsylvania
Posted: Mon May 02, 2011 7:01 pm Post subject:
Yep, pretty much the same. I have Java 1.5.0 installed, but it's disabled. _________________ Web development in Media, PA Market Acumen, Inc.: We build lasting businesses.
Where did you get Java 1.5.0 from? On all of my Mac OS X 10.6.x machines, there are no Java 1.5 entries. Also, since your Java 1.5 entries do not show Apple as the vendor, it would seem that whatever vendor you got Java 1.5 from, installing it has broken Apple's Java 1.6 installation.
The question is, then, why does NeoOffice load the 1.5.0 version of Java, when the Java Prefs indicate not to?'
And P.S. Sorry for the trouble: I assumed that unchecking those boxes would simply disable access to 1.5... _________________ Web development in Media, PA Market Acumen, Inc.: We build lasting businesses.
The question is, then, why does NeoOffice load the 1.5.0 version of Java, when the Java Prefs indicate not to?'
And P.S. Sorry for the trouble: I assumed that unchecking those boxes would simply disable access to 1.5...
NeoOffice does not rely on the Java preferences setting. Instead, our code loads the known stable Apple Java versions directly within our C and C++ code by loading the Java 1.6 main shared library and then invoking the standard "start Java" C function.
I only recommended that you look at those settings because other Java applications reported having the same crash when those preferences were set to non-standard settings. Your settings were standard but the preference window is what made me realize you had a non-standard version of Java installed.
In theory, your softlink changes should work but only if you ensure that NeoOffice is set to use Java 1.6, not Java 1.5 as the 1.5 JVM's java.awt.* classes are specifically designed to only run on Mac OS X 10.5.
So, what you might want to try doing before you put Java 1.5 back in use is to launch NeoOffice, select the Tools :: Options dialog, and in the dialog that appears, select the NeoOffice :: Java item. Wait a few seconds for Java 1.6 to appear. Select Java 1.6 and press the OK button.
You can then try putting Java 1.5 back in and then relaunch NeoOffice. If Java 1.6 is not affected by your softlink changes, NeoOffice should load Java 1.6 and not Java 1.5.
I was a bit surprised we hadn't already had a FAQ item on the "hacking around with JVM symlinks" issue, since it had been such a problem in the past.
I made a quick stab at filling that in, mentioning the old "let's move the symlink to change the default version" issue and this new "install 1.5 on 10.6" issue: Check for a non-standard Java installation.
(I also did a bit of cleanup of the old Java 1.4.2 stuff that was relevant for 10.3/10.4 and Neo 2 and which really is no longer relevant at all.)
Smokey _________________ "[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum