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

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - Two instances of NeoOffice 2014 open at the same time
Two instances of NeoOffice 2014 open at the same time
 
   NeoOffice Forum Index -> NeoOffice Releases
View previous topic :: View next topic  
Author Message
James3359
The Merovingian


Joined: Jul 05, 2005
Posts: 685
Location: North West England

PostPosted: Fri Jul 04, 2014 6:13 am    Post subject: Two instances of NeoOffice 2014 open at the same time

I've just discovered I've currently got two instances of NeoOffice 2014 open. I have a feeling that this is not supposed to be possible. On the off chance that this post might be picked up before I have to shut down the machine, or to quit one or both instances of NeoOffice 2014, is there anything I can do to gather any useful diagnostic information.

James

_________________
MacBook Pro
13-inch, Mid 2012
Processor 2.5 GHz Intel Core i5
Memory 4 GB 1600 MHz DDR3
Graphics Intel HD Graphics 4000 512 MB
OS X 10.9.3 (13D65)
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Fri Jul 04, 2014 8:42 am    Post subject:

Before you quit one or both instances of NeoOffice, can you open the /Applications/Utilities/Terminal application, copy the following command into the Terminal window, press the Return key, and past the output into your reply?:

Code:
ps -U `id -un` -ww


Patrick
Back to top
James3359
The Merovingian


Joined: Jul 05, 2005
Posts: 685
Location: North West England

PostPosted: Fri Jul 04, 2014 9:02 am    Post subject:

Here goes:

PID TTY TIME CMD
455 ?? 0:08.00 /sbin/launchd
459 ?? 0:04.82 /usr/libexec/UserEventAgent (Aqua)
460 ?? 0:12.43 /usr/sbin/distnoted agent
463 ?? 0:06.82 /usr/sbin/cfprefsd agent
466 ?? 0:01.63 /Applications/Stickies.app/Contents/MacOS/Stickies -psn_0_24582
468 ?? 0:03.44 /Applications/Todo.app/Contents/MacOS/Todo -psn_0_28679
470 ?? 0:15.06 /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock
471 ?? 0:42.96 /System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/SystemUIServer
472 ?? 0:31.41 /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder
476 ?? 0:02.88 /usr/libexec/xpcd
477 ?? 0:00.86 /usr/libexec/sharingd
479 ?? 0:00.22 /System/Library/PrivateFrameworks/TCC.framework/Resources/tccd
480 ?? 0:00.02 /usr/sbin/pboard
482 ?? 0:00.10 /usr/libexec/librariand
483 ?? 0:00.16 /System/Library/PrivateFrameworks/Ubiquity.framework/Versions/A/Support/ubd
488 ?? 0:06.18 /System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Support/fontd
493 ?? 0:02.16 /usr/sbin/usernoted
495 ?? 0:04.88 /System/Library/CoreServices/NotificationCenter.app/Contents/MacOS/NotificationCenter
497 ?? 0:11.57 com.apple.IconServicesAgent
512 ?? 0:04.41 com.apple.internetaccounts
515 ?? 0:07.39 /System/Library/PrivateFrameworks/MessagesKit.framework/Resources/soagent.app/Contents/MacOS/soagent
517 ?? 0:01.19 com.apple.ShareKitHelper
519 ?? 2:24.14 /System/Library/PrivateFrameworks/CalendarAgent.framework/Executables/CalendarAgent
533 ?? 0:00.29 /usr/libexec/lsboxd
534 ?? 0:00.57 /System/Library/PrivateFrameworks/IMCore.framework/imagent.app/Contents/MacOS/imagent
535 ?? 0:00.10 /usr/libexec/WiFiKeychainProxy
536 ?? 0:00.03 /System/Library/CoreServices/SocialPushAgent.app/Contents/MacOS/SocialPushAgent
541 ?? 0:01.12 /System/Library/PrivateFrameworks/IDSCore.framework/identityservicesd.app/Contents/MacOS/identityservicesd
542 ?? 0:00.06 /System/Library/PrivateFrameworks/HelpData.framework/Versions/A/Resources/helpd
544 ?? 0:00.02 /System/Library/CoreServices/AppleIDAuthAgent
548 ?? 0:42.52 /Library/Rapport/bin/rapportd.app/Contents/MacOS/rapportd
550 ?? 1:03.06 /Applications/WiFiSendServer.app/Contents/MacOS/WiFiSendServer -allowquit
556 ?? 0:01.17 /Library/Application Support/Hewlett-Packard/Customer Participation/HP Product Research.app/Contents/MacOS/HP Product Research
557 ?? 0:01.26 /System/Library/Frameworks/GameKit.framework/Versions/A/Resources/gamed
558 ?? 0:00.46 /Applications/iTunes.app/Contents/MacOS/iTunesHelper.app/Contents/MacOS/iTunesHelper
560 ?? 1:06.69 /Applications/Dropbox.app/Contents/MacOS/Dropbox
564 ?? 3:05.91 /Applications/ClamXav.app/Contents/Resources/ClamXavSentry.app/Contents/MacOS/ClamXavSentry
566 ?? 0:01.12 /Library/PreferencePanes/BusySync.prefPane/Contents/Resources/BusySyncMenu.app/Contents/MacOS/BusySyncMenu
567 ?? 0:01.18 /usr/libexec/secd
570 ?? 0:00.21 /System/Library/Frameworks/Accounts.framework/Versions/A/Support/accountsd
571 ?? 0:03.65 /Users/jamesrichards/Library/Application Support/Helper/Wondershare Helper Compact.app/Contents/MacOS/Wondershare Helper Compact
576 ?? 0:00.13 com.apple.imdpersistence.IMDPersistenceAgent
584 ?? 0:00.02 /System/Library/Frameworks/Security.framework/Versions/A/Resources/CloudKeychainProxy.bundle/Contents/MacOS/CloudKeychainProxy
625 ?? 0:00.15 /System/Library/CoreServices/pbs
628 ?? 0:02.42 /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Resources/storeagent
639 ?? 0:02.02 com.apple.dock.extra
643 ?? 0:04.72 /System/Library/Services/AppleSpell.service/Contents/MacOS/AppleSpell -psn_0_147492
654 ?? 0:00.06 com.apple.NotesMigratorService
655 ?? 0:00.14 com.apple.InputMethodKit.UserDictionary
664 ?? 0:01.81 com.apple.DataDetectorsDynamicData
673 ?? 0:41.89 /usr/local/clamXav/sbin/clamd -c /usr/local/clamXav/etc/clamd.conf
680 ?? 0:10.86 /Users/jamesrichards/Library/Caches/Cleanup At Startup/CrossOver CD Helper.app/Contents/MacOS/CrossOver CD Helper
691 ?? 7:10.44 /Applications/Mail.app/Contents/MacOS/Mail
698 ?? 0:05.06 com.apple.WebKit.WebContent
699 ?? 0:02.30 /System/Library/PrivateFrameworks/CoreRecents.framework/Versions/A/Support/recentsd
715 ?? 0:00.02 com.apple.hiservices-xpcservice
736 ?? 5:27.45 /Applications/NeoOffice 2014.app/Contents/MacOS/soffice.bin
737 ?? 0:12.85 /Applications/NeoOffice 2014.app/Contents/MacOS/soffice.bin
752 ?? 0:00.28 /System/Library/CoreServices/ScopedBookmarkAgent
764 ?? 0:00.02 /System/Library/PrivateFrameworks/CommunicationsFilter.framework/CMFSyncAgent.app/Contents/MacOS/CMFSyncAgent
768 ?? 0:01.53 /Library/DropboxHelperTools/Dropbox_u504/dbfseventsd
769 ?? 0:06.70 /Library/DropboxHelperTools/Dropbox_u504/dbfseventsd
770 ?? 0:05.37 /Library/DropboxHelperTools/Dropbox_u504/dbfseventsd
782 ?? 0:00.03 /usr/libexec/spindump_agent
812 ?? 0:01.14 /System/Library/Image Capture/Support/Image Capture Extension.app/Contents/MacOS/Image Capture Extension
818 ?? 0:00.03 com.apple.hiservices-xpcservice
824 ?? 0:21.10 com.apple.appkit.xpc.openAndSavePanelService
909 ?? 0:00.58 /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdflagwriter
1686 ?? 2:19.30 /Applications/Calendar.app/Contents/MacOS/Calendar
1697 ?? 0:00.29 com.apple.WeatherKitService
1892 ?? 0:00.54 /System/Library/PrivateFrameworks/CloudServices.framework/Resources/EscrowSecurityAlert.app/Contents/MacOS/EscrowSecurityAlert
2331 ?? 0:01.06 com.apple.geod
2335 ?? 0:00.26 com.apple.WeatherKitService
2336 ?? 0:00.02 com.apple.hiservices-xpcservice
2360 ?? 0:00.73 /System/Library/CoreServices/AirPlayUIAgent.app/Contents/MacOS/AirPlayUIAgent --launchd
2447 ?? 0:00.89 com.apple.MailServiceAgent
2539 ?? 0:07.02 com.apple.WebKit.WebContent
2608 ?? 0:00.12 /System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Versions/A/printtool agent
3757 ?? 0:00.02 com.apple.hiservices-xpcservice
3980 ?? 0:00.04 com.apple.BKAgentService
4751 ?? 0:00.40 /System/Library/Frameworks/CFNetwork.framework/Versions/A/Support/cookied
4795 ?? 0:08.73 /Applications/Safari.app/Contents/MacOS/Safari
4801 ?? 0:02.55 com.apple.WebKit.Networking
4818 ?? 0:33.08 com.apple.WebKit.WebContent
4898 ?? 0:00.16 /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdworker -s mdworker -c MDSImporterWorker -m com.apple.mdworker.shared
4900 ?? 0:00.15 /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdworker -s mdworker -c MDSImporterWorker -m com.apple.mdworker.shared
4911 ?? 0:00.02 /Applications/ClamXav.app/Contents/Resources/ClamXavSentry.app/Contents/Resources/gfslogger
4915 ?? 0:00.14 /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdworker -s mdworker -c MDSImporterWorker -m com.apple.mdworker.shared
4916 ?? 0:00.10 /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdworker -s mdworker -c MDSImporterWorker -m com.apple.mdworker.shared
4917 ?? 0:01.12 com.apple.WebKit.WebContent
4936 ?? 0:00.20 /System/Library/Frameworks/QuickLook.framework/Resources/quicklookd.app/Contents/MacOS/quicklookd
4937 ?? 0:00.14 com.apple.quicklook.satellite
4938 ?? 0:00.31 /Applications/Utilities/Terminal.app/Contents/MacOS/Terminal
4940 ttys000 0:00.17 login -pf jamesrichards
4941 ttys000 0:00.02 -bash
4945 ttys000 0:00.00 ps -U jamesrichards -ww

I hope this helps.

James

_________________
MacBook Pro
13-inch, Mid 2012
Processor 2.5 GHz Intel Core i5
Memory 4 GB 1600 MHz DDR3
Graphics Intel HD Graphics 4000 512 MB
OS X 10.9.3 (13D65)
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Fri Jul 04, 2014 9:21 am    Post subject:

One more question: is this behavior reproducible if you quit all NeoOffice instances and execute the following 2 commands in a Terminal window?:

Code:
/Applications/NeoOffice\ 2014.app/Contents/MacOS/soffice.bin &
/Applications/NeoOffice\ 2014.app/Contents/MacOS/soffice.bin &


If you end up with two instances of NeoOffice running from the above commands, can you reboot and see retry the same commands?

Patrick
Back to top
James3359
The Merovingian


Joined: Jul 05, 2005
Posts: 685
Location: North West England

PostPosted: Fri Jul 04, 2014 9:42 am    Post subject:

Before I rebooted it would bring up a second instance of NeoOffice 2014. After rebooting, when I enter the second command, there is a brief appearance of a second NeoOffice icon in the dock, but it quickly disappears and a second untitled document is opened in the already open instance of NeoOffice.

James

_________________
MacBook Pro
13-inch, Mid 2012
Processor 2.5 GHz Intel Core i5
Memory 4 GB 1600 MHz DDR3
Graphics Intel HD Graphics 4000 512 MB
OS X 10.9.3 (13D65)
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Fri Jul 04, 2014 10:15 am    Post subject:

James3359 wrote:
Before I rebooted it would bring up a second instance of NeoOffice 2014. After rebooting, when I enter the second command, there is a brief appearance of a second NeoOffice icon in the dock, but it quickly disappears and a second untitled document is opened in the already open instance of NeoOffice.


The behavior after reboot is the normal behavior so I suspect that NeoOffice's "check if another instance is already running" code was failing before the reboot. Where it is most likely to fail is obtaining an interprocess communication channel (aka "port") from OS X so that subsequently NeoOffice instances can find the first instance.

Launching NeoOffice from the Finder or the Dock does not use this code (OS X has its own code for that), but the patch installer and Free Edition main installer do use this code. That doesn't explain why the code was failing, but it if you were installing one of our test patches, it may explain why you didn't see this behavior until now.

Patrick
Back to top
James3359
The Merovingian


Joined: Jul 05, 2005
Posts: 685
Location: North West England

PostPosted: Fri Jul 04, 2014 10:38 am    Post subject:

OK. I don't know if this is connected, but I did get a warning message a while ago - something to the effect "Either another instance of NeoOffice is accessing your personal settings or your personal settings are locked…" but I don't remember exactly what. But this was a day or two ago, and my computer was shut down last night and rebooted this morning, so I don't know if that is relevant (and certainly of not much diagnostic use at this stage.

I don't think I've installed a test patch at all yet on NO 2014, although I tended to do that more on 3.4.1, but following your heads up on 19th June, I've shifted to using NO 2014 as the default.

_________________
MacBook Pro
13-inch, Mid 2012
Processor 2.5 GHz Intel Core i5
Memory 4 GB 1600 MHz DDR3
Graphics Intel HD Graphics 4000 512 MB
OS X 10.9.3 (13D65)
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Fri Jul 04, 2014 11:30 am    Post subject:

James3359 wrote:
OK. I don't know if this is connected, but I did get a warning message a while ago - something to the effect "Either another instance of NeoOffice is accessing your personal settings or your personal settings are locked…" but I don't remember exactly what....


That is actually the result of running two instances of NeoOffice. The second instance detects a "I am running" file created by the first instance and the second instance uses that file as a sign that another instance is already running and using the same NeoOffice user preference files.

This warning also can sometimes occur the first time that you launch NeoOffice after a crash. This happens when the "I am running" file was not deleted as a result of the crash.

James3359 wrote:
....but following your heads up on 19th June, I've shifted to using NO 2014 as the default.


We will do our best to keep NeoOffice 3.4.1 running on Apple's upcoming OS X 10.10 Yosemite release, but we will be focusing all of our development efforts on NeoOffice 2014.

Apple has been tightening security holes on OS X for some time now (which is why they have really made using Java more and more difficult). Instead of ignoring or fighting this trend, we have embraced Apple's emphasis on security and put implementing Apple's Mac App Store security requirements as our highest priority. That is why we put so much effort in the last year to implement the stringent security requirements of Apple's App Sandbox and removing all Java code from NeoOffice.

Sure, many people may not care about security. For those people, OpenOffice or LibreOffice is there as an option. We just don't feel comfortable ignoring where Apple is going so we will continue to focus our development on keeping up with Apple.

Patrick
Back to top
James3359
The Merovingian


Joined: Jul 05, 2005
Posts: 685
Location: North West England

PostPosted: Fri Jul 04, 2014 3:20 pm    Post subject:

I hope the App store proves a good outlet for NO, and I hope it gets the reviews its quality deserves.
_________________
MacBook Pro
13-inch, Mid 2012
Processor 2.5 GHz Intel Core i5
Memory 4 GB 1600 MHz DDR3
Graphics Intel HD Graphics 4000 512 MB
OS X 10.9.3 (13D65)
Back to top
James3359
The Merovingian


Joined: Jul 05, 2005
Posts: 685
Location: North West England

PostPosted: Tue Jul 08, 2014 4:25 am    Post subject:

I have now found what seems to a reliable way of getting this to happen. Close all document windows in NeoOffice and quit. Shut down computer. Start up computer. Launch mail. Double click two documents within Mail to open them. Multiple instances of NeoOffice will then open. Last time I tried this I had six or seven NO icons bouncing in the dock and starting up. It doesn't seem to work a second time once NeoOffice has started up - even if I quit NO first.
_________________
MacBook Pro
13-inch, Mid 2012
Processor 2.5 GHz Intel Core i5
Memory 4 GB 1600 MHz DDR3
Graphics Intel HD Graphics 4000 512 MB
OS X 10.9.3 (13D65)
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Tue Jul 08, 2014 7:24 am    Post subject:

Let me think about this for a while. I have to see if I can come up with a theory as to how Apple's Mail app is getting around our "detect other running instances of NeoOffice" code.

Patrick
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Tue Jul 08, 2014 8:07 am    Post subject:

I am unable to reproduce the behavior that you see.

I configured mail for a Gmail account on OS X 10.9.4 Mavericks, created a draft message with 4 .odt, .ods, and .odp documents, then rebooted.

After rebooting and Mail launched, I selected all 4 attachments in the draft message, right-clicked on the selected attachments, and opened them using the first option in the popup menu that appeared.

I rebooted twice to ensure that Mail was the first app running and that no other applications launched before I could try opening the attachments.

Are you using any steps that are different than mine?

Patrick
Back to top
James3359
The Merovingian


Joined: Jul 05, 2005
Posts: 685
Location: North West England

PostPosted: Tue Jul 08, 2014 8:28 am    Post subject:

On this occasion I shut down without quitting down Mail. On starting up I double-clicked the two files I could see them on screen. Mail was visible but unresponsive at this point. I double clicked the two files a couple of times more until I saw the zoom animation which shows that a file is being opened. At this point I then found two instances of NO were opening.

If I wait during status until the system has had a few minutes to settle down and fully start up, then the two instances thing doesn't seem to happen. It appears to happen when I try and hurry it by double-clicking as soon as I see the file icons in the email, but before everything becomes properly responsive.

_________________
MacBook Pro
13-inch, Mid 2012
Processor 2.5 GHz Intel Core i5
Memory 4 GB 1600 MHz DDR3
Graphics Intel HD Graphics 4000 512 MB
OS X 10.9.3 (13D65)
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Tue Jul 08, 2014 8:40 am    Post subject:

Unfortunately for me, Mail is unresponsive for at least 30 seconds or more after I login so I suspect that OS X is fully operational by the time I am able to double-click on any attachments.

If you open the /Applications/Utilities/Console application and search for "soffice", are there any messages? My only theory at this point is that OS X blocks NeoOffice from opening ports while the login process is finishing.

Patrick
Back to top
James3359
The Merovingian


Joined: Jul 05, 2005
Posts: 685
Location: North West England

PostPosted: Tue Jul 08, 2014 11:56 am    Post subject:

The only message that comes up when I search for soffice is the following
Quote:
08/07/2014 18:18:44.000 kernel[0]: process soffice.bin[652] caught causing excessive wakeups. Observed wakeups rate (per sec): 655; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 45173


I am attaching a file of console messages at the time of startup in case it offers any clues

_________________
MacBook Pro
13-inch, Mid 2012
Processor 2.5 GHz Intel Core i5
Memory 4 GB 1600 MHz DDR3
Graphics Intel HD Graphics 4000 512 MB
OS X 10.9.3 (13D65)
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Releases All times are GMT - 7 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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.