Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

Download or installation problems? Try these steps
Problems after upgrading to NeoOffice 2017? Try these steps


Support
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


RSS Feeds
· Announcements Only
· All Posts


  
NeoOffice :: View topic - OpenOffice 1.1.2 launch from Java - crashes & burns
OpenOffice 1.1.2 launch from Java - crashes & burns
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    NeoOffice Forum Index -> OpenOffice.org MacOS X X11 Support
View previous topic :: View next topic  
Author Message
tigerSnark
Blue Pill


Joined: Mar 29, 2006
Posts: 4

PostPosted: Wed Mar 29, 2006 1:15 pm    Post subject: OpenOffice 1.1.2 launch from Java - crashes & burns Reply with quote

Hi

We are launching the following shell script from within a Java program using Runtime.getRuntime().exec:
------------
#!/bin/sh
export DISPLAY=:0

export DYLD_LIBRARY_PATH=/Applications/OpenOffice.org1.1.2/program:/Applications/OpenOffice.org1.1.2/program/filter

/Applications/OpenOffice.org1.1.2/program/soffice "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" -invisible -headless &
------------
We use this mechanism to connect to openoffice so that we can convert office documents to PDF. We start Xvfb at boot time to provide the "display".

This works fine when run from a Terminal window (Apple Terminal not XTerm) - port 8100 is being listened to and we connect fine; but we are getting crashes when we start this in Java:

Host Name: Hyacinthe
Date/Time: 2006-03-29 14:40:41.820 -0500
OS Version: 10.4.5 (Build 8H14)
Report Version: 4

Command: soffice.bin
Path: /Applications/OpenOffice.org1.1.2/program/soffice.bin
Parent: launchd [1]

Version: ??? (???)

PID: 357
Thread: 0

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

Thread 0 Crashed:
0 libtl645mxp.dylib 0x006d229c ImplStringLen(char const*) + 0 (icplusplus.c:27)
1 libtl645mxp.dylib 0x006d8c30 String::String[unified](char const*, unsigned short, unsigned long) + 48 (icplusplus.c:27)
2 libvcl645mxp.dylib 0x0036dae4 DtIntegrator::DtIntegrator[unified](SalFrame*) + 224 (icplusplus.c:27)
3 libvcl645mxp.dylib 0x0036df08 DtIntegrator::CreateDtIntegrator(SalFrame*) + 948 (icplusplus.c:27)
4 libvcl645mxp.dylib 0x0020d4f0 MiscSettings::GetEnableATToolSupport() const + 68 (icplusplus.c:27)
5 soffice.bin 0x000073b8 desktop::Desktop::Main() + 1052 (crt.c:300)
6 libvcl645mxp.dylib 0x002147b4 SVMain() + 88 (icplusplus.c:27)
7 libvcl645mxp.dylib 0x0038399c main + 56 (icplusplus.c:27)
8 soffice.bin 0x000023dc _start + 380 (crt.c:267)
9 soffice.bin 0x0000225c start + 48

Thread 1:
0 libSystem.B.dylib 0x9005a7a0 accept + 12
1 libsal.dylib.3 0x016a4d78 osl_acceptPipe + 44
2 libvos3gcc3.dylib 0x000c0450 vos::OPipe::accept(vos::OStreamPipe&) + 48 (icplusplus.c:27)
3 soffice.bin 0x00011a34 desktop::OfficeIPCThread::run() + 56 (crt.c:300)
4 libvos3gcc3.dylib 0x000bbc3c vos::_cpp_OThread_WorkerFunction(void*) + 36 (icplusplus.c:27)
5 libsal.dylib.3 0x0169ba14 osl_thread_start_Impl + 276
6 libSystem.B.dylib 0x9002b1e0 _pthread_body + 96

Thread 2:
0 libSystem.B.dylib 0x90053f48 semaphore_timedwait_signal_trap + 8
1 libSystem.B.dylib 0x90053da8 pthread_cond_timedwait + 672
2 libsal.dylib.3 0x01698290 osl_waitCondition + 236
3 libvos3gcc3.dylib 0x000be670 vos::OTimerManager::run() + 140 (icplusplus.c:27)
4 libvos3gcc3.dylib 0x000bbc3c vos::_cpp_OThread_WorkerFunction(void*) + 36 (icplusplus.c:27)
5 libsal.dylib.3 0x0169ba14 osl_thread_start_Impl + 276
6 libSystem.B.dylib 0x9002b1e0 _pthread_body + 96

Thread 0 crashed with PPC Thread State 64:
srr0: 0x00000000006d229c srr1: 0x000000000000d930 vrsave: 0x0000000000000000
cr: 0x42000242 xer: 0x0000000000000004 lr: 0x00000000006d8c30 ctr: 0x00000000006d8bfc
r0: 0x0000000000000000 r1: 0x00000000bffff100 r2: 0x0000000000000475 r3: 0x0000000000000000
r4: 0x0000000000000000 r5: 0x000000000000000c r6: 0x0000000000000333 r7: 0x0000000000000009
r8: 0x0000000000000006 r9: 0x000000000000004c r10: 0x0000000000000004 r11: 0x0000000042000248
r12: 0x00000000006d8bfc r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000
r16: 0x0000000000000000 r17: 0x0000000000000000 r18: 0x0000000000000000 r19: 0x0000000000000000
r20: 0x0000000000000000 r21: 0x00000000bffff370 r22: 0x00000000bffff360 r23: 0x00000000bffff320
r24: 0x000000000002aa7c r25: 0x0000000000000000 r26: 0x0000000000000333 r27: 0x000000000000000c
r28: 0x0000000000000000 r29: 0x00000000bffff1a0 r30: 0x00000000003fda0c r31: 0x000000000036da0c

Binary Images Description:
0x1000 - 0x37fff soffice.bin /Applications/OpenOffice.org1.1.2/program/soffice.bin
0x5d000 - 0x5dfff libsalextra_x11osx_mxp.dylib /Applications/OpenOffice.org1.1.2/program/libsalextra_x11osx_mxp.dylib
0x80000 - 0x82fff libdl.1.dylib /Applications/OpenOffice.org1.1.2/program/libdl.1.dylib
0x91000 - 0x96fff libportaudio.dylib.0 /Applications/OpenOffice.org1.1.2/program/libportaudio.dylib.0
0xb5000 - 0xccfff libvos3gcc3.dylib /Applications/OpenOffice.org1.1.2/program/libvos3gcc3.dylib
0xea000 - 0xf1fff libsalhelpergcc3.dylib.3 /Applications/OpenOffice.org1.1.2/program/libsalhelpergcc3.dylib.3
0x205000 - 0x3dafff libvcl645mxp.dylib /Applications/OpenOffice.org1.1.2/program/libvcl645mxp.dylib
0x4de000 - 0x57dfff libsvl645mxp.dylib /Applications/OpenOffice.org1.1.2/program/libsvl645mxp.dylib
0x617000 - 0x66bfff libutl645mxp.dylib /Applications/OpenOffice.org1.1.2/program/libutl645mxp.dylib
0x6c1000 - 0x746fff libtl645mxp.dylib /Applications/OpenOffice.org1.1.2/program/libtl645mxp.dylib
0x794000 - 0x7bafff libcppu.dylib.3 /Applications/OpenOffice.org1.1.2/program/libcppu.dylib.3
0x7cd000 - 0x7defff libjvmaccessgcc3.dylib.3 /Applications/OpenOffice.org1.1.2/program/libjvmaccessgcc3.dylib.3
0x1008000 - 0x1266fff libsvt645mxp.dylib /Applications/OpenOffice.org1.1.2/program/libsvt645mxp.dylib
0x149b000 - 0x14fcfff libcomphelp3gcc3.dylib /Applications/OpenOffice.org1.1.2/program/libcomphelp3gcc3.dylib
0x157a000 - 0x15cefff libucbhelper2gcc3.dylib /Applications/OpenOffice.org1.1.2/program/libucbhelper2gcc3.dylib
0x1624000 - 0x165efff libcppuhelpergcc3.dylib.3 /Applications/OpenOffice.org1.1.2/program/libcppuhelpergcc3.dylib.3
0x1696000 - 0x1821fff libsal.dylib.3 /Applications/OpenOffice.org1.1.2/program/libsal.dylib.3
0x1863000 - 0x19a2fff libtk645mxp.dylib /Applications/OpenOffice.org1.1.2/program/libtk645mxp.dylib
0x1b6e000 - 0x1bdcfff libstlport_gcc.dylib /Applications/OpenOffice.org1.1.2/program/libstlport_gcc.dylib
0x1c75000 - 0x1cddfff libpsp645mxp.dylib /Applications/OpenOffice.org1.1.2/program/libpsp645mxp.dylib
0x1d54000 - 0x1d86fff libsot645mxp.dylib /Applications/OpenOffice.org1.1.2/program/libsot645mxp.dylib
0x1dad000 - 0x1e26fff libicuuc.dylib.22 /Applications/OpenOffice.org1.1.2/program/libicuuc.dylib.22
0x1e74000 - 0x1e92fff libicule.dylib.22 /Applications/OpenOffice.org1.1.2/program/libicule.dylib.22
0x1eb5000 - 0x1efffff libsndfile.dylib.1 /Applications/OpenOffice.org1.1.2/program/libsndfile.dylib.1
0x1f13000 - 0x2728fff libicudata.dylib.22 /Applications/OpenOffice.org1.1.2/program/libicudata.dylib.22
0x27c7000 - 0x27e4fff servicemgr.uno.dylib /Applications/OpenOffice.org1.1.2/program/servicemgr.uno.dylib
0x3008000 - 0x3011fff shlibloader.uno.dylib /Applications/OpenOffice.org1.1.2/program/shlibloader.uno.dylib
0x301b000 - 0x302efff simplereg.uno.dylib /Applications/OpenOffice.org1.1.2/program/simplereg.uno.dylib
0x303d000 - 0x304efff nestedreg.uno.dylib /Applications/OpenOffice.org1.1.2/program/nestedreg.uno.dylib
0x305f000 - 0x3071fff typemgr.uno.dylib /Applications/OpenOffice.org1.1.2/program/typemgr.uno.dylib
0x3088000 - 0x309dfff implreg.uno.dylib /Applications/OpenOffice.org1.1.2/program/implreg.uno.dylib
0x30aa000 - 0x30c2fff security.uno.dylib /Applications/OpenOffice.org1.1.2/program/security.uno.dylib
0x30d7000 - 0x30f1fff libreg.dylib.3 /Applications/OpenOffice.org1.1.2/program/libreg.dylib.3
0x3b66000 - 0x3b80fff libstore.dylib.3 /Applications/OpenOffice.org1.1.2/program/libstore.dylib.3
0x41de000 - 0x41fcfff regtypeprov.uno.dylib /Applications/OpenOffice.org1.1.2/program/regtypeprov.uno.dylib
0x4223000 - 0x43bffff libcfgmgr2.dylib /Applications/OpenOffice.org1.1.2/program/libcfgmgr2.dylib
0x45c7000 - 0x45d3fff typeconverter.uno.dylib /Applications/OpenOffice.org1.1.2/program/typeconverter.uno.dylib
0x45ed000 - 0x461bfff sax.uno.dylib /Applications/OpenOffice.org1.1.2/program/sax.uno.dylib
0x4634000 - 0x4654fff streams.uno.dylib /Applications/OpenOffice.org1.1.2/program/streams.uno.dylib
0x8fe00000 - 0x8fe54fff dyld 44.2 /usr/lib/dyld
0x90000000 - 0x901b3fff libSystem.B.dylib /usr/lib/libSystem.B.dylib
0x9020b000 - 0x90210fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
0x90212000 - 0x90265fff com.apple.CoreText 1.0.1 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
0x90292000 - 0x90343fff ATS /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x90372000 - 0x906affff com.apple.CoreGraphics 1.256.33 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x9073b000 - 0x90814fff com.apple.CoreFoundation 6.4.4 (368.25) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x9085d000 - 0x9085dfff com.apple.CoreServices 10.4 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x9085f000 - 0x90961fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
0x909bb000 - 0x90a3ffff libobjc.A.dylib /usr/lib/libobjc.A.dylib
0x90a69000 - 0x90ad7fff com.apple.framework.IOKit 1.4.1 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x90aee000 - 0x90b00fff libauto.dylib /usr/lib/libauto.dylib
0x90b07000 - 0x90ddffff com.apple.CoreServices.CarbonCore 681.3 (671.2) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x90e45000 - 0x90ec5fff com.apple.CoreServices.OSServices 4.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x90f0f000 - 0x90f50fff com.apple.CFNetwork 10.4.4 (129.9) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x90f65000 - 0x90f7dfff com.apple.WebServices 1.1.2 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore
0x90f8d000 - 0x9100efff com.apple.SearchKit 1.0.5 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x91054000 - 0x9107efff com.apple.Metadata 10.4.4 (121.34) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x9108f000 - 0x9109dfff libz.1.dylib /usr/lib/libz.1.dylib
0x910a0000 - 0x91263fff com.apple.security 4.3 (25966) /System/Library/Frameworks/Security.framework/Versions/A/Security
0x91366000 - 0x9136ffff com.apple.DiskArbitration 2.1 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x91376000 - 0x9139dfff com.apple.SystemConfiguration 1.8.2 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x913b0000 - 0x913b8fff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
0x913bd000 - 0x913defff libmx.A.dylib /usr/lib/libmx.A.dylib
0x913e4000 - 0x913ecfff libbsm.dylib /usr/lib/libbsm.dylib
0x913f0000 - 0x91470fff com.apple.audio.CoreAudio 3.0.2 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x914af000 - 0x914affff com.apple.ApplicationServices 10.4 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x914b1000 - 0x914e9fff com.apple.AE 1.5 (297) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x91504000 - 0x915d1fff com.apple.ColorSync 4.4.4 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x91626000 - 0x916b9fff com.apple.print.framework.PrintCore 4.3 (172.3) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x91700000 - 0x917bdfff com.apple.QD 3.8.18 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x917fb000 - 0x91859fff com.apple.HIServices 1.5.1 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x91887000 - 0x918abfff com.apple.LangAnalysis 1.6.1 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x918bf000 - 0x918e4fff com.apple.FindByContent 1.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/FindByContent.framework/Versions/A/FindByContent
0x918f7000 - 0x91939fff com.apple.LaunchServices 168.10 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x91955000 - 0x91969fff com.apple.speech.synthesis.framework 3.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x91977000 - 0x919b1fff com.apple.ImageIO.framework 1.4.4 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x919c6000 - 0x91a8efff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib
0x91adc000 - 0x91af1fff libcups.2.dylib /usr/lib/libcups.2.dylib
0x91af6000 - 0x91b13fff libJPEG.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x91b18000 - 0x91b87fff libJP2.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
0x91b9e000 - 0x91ba2fff libGIF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x91ba4000 - 0x91bd5fff libRaw.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRaw.dylib
0x91bd9000 - 0x91c1cfff libTIFF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x91c23000 - 0x91c3cfff libPng.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x91c41000 - 0x91c44fff libRadiance.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x91c46000 - 0x91c46fff com.apple.Accelerate 1.1.1 (Accelerate 1.1.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x91c48000 - 0x91d1efff com.apple.vImage 2.0 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x91d26000 - 0x91d45fff com.apple.Accelerate.vecLib 3.1.1 (vecLib 3.1.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x91db1000 - 0x91e16fff libvMisc.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x91e20000 - 0x91eb2fff libvDSP.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x91ecc000 - 0x9245cfff libBLAS.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x924a4000 - 0x927b4fff libLAPACK.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x940bb000 - 0x94185fff com.apple.audio.toolbox.AudioToolbox 1.4.1 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x941d9000 - 0x941d9fff com.apple.audio.units.AudioUnit 1.4 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x98d25000 - 0x98d34fff libICE.6.dylib /usr/X11R6/lib/libICE.6.dylib
0x98d3a000 - 0x98d3ffff libSM.6.dylib /usr/X11R6/lib/libSM.6.dylib
0x98dac000 - 0x98dedfff libfreetype.6.dylib /usr/X11R6/lib/libfreetype.6.dylib
0x9a6e1000 - 0x9a6ecfff libXext.6.dylib /usr/X11R6/lib/libXext.6.dylib
0x9a6f1000 - 0x9a7b9fff libX11.6.dylib /usr/X11R6/lib/libX11.6.dylib
0x9aa81000 - 0x9aac3fff libXt.6.dylib /usr/X11R6/lib/libXt.6.dylib
0x9ab12000 - 0x9ab22fff libXmu.6.dylib /usr/X11R6/lib/libXmu.6.dylib

we're running on a powerbook with 1.25 G of memory - plan to run on a G5 and an older G4 running 10.3.9.

Any ideas would be appreciated - thanks!
Back to top
View user's profile Send private message
jjmckenzie51
The Anomaly


Joined: Apr 01, 2005
Posts: 1055
Location: Southeastern Arizona

PostPosted: Wed Mar 29, 2006 7:50 pm    Post subject: Re: OpenOffice 1.1.2 launch from Java - crashes & burns Reply with quote

tigerSnark wrote:
Hi

We are launching the following shell script from within a Java program using Runtime.getRuntime().exec:
------------
#!/bin/sh
export DISPLAY=:0



This should not work. You should try:

export DISPLAY=localhost:0

Also try using OpenOffice 1.1.5 as this is the latest release of the 1.1.x codeline.

James
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    NeoOffice Forum Index -> OpenOffice.org MacOS X X11 Support All times are GMT - 7 Hours
Page 1 of 1

 
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

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.08 Seconds