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 - Checking for updates x2
Checking for updates x2
 
   NeoOffice Forum Index -> NeoOffice Releases
View previous topic :: View next topic  
Author Message
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Wed Jul 22, 2009 3:05 am    Post subject: Checking for updates x2

When I open a doc and NeoOffice (v3.0 patch 5 intel 10.5.7) gets launched as the default app, I get the Checking for Updates dialogue - twice. I close the first one, and then it pops up again.

Fixable? Smile

- padmavyuha
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Wed Jul 22, 2009 8:31 am    Post subject:

That is very strange as the patch update check is triggered by "run again after a certain" date setting in one of the user preference files. There is a single job that runs so to get two jobs running at the same time means something is corrupted in your user preference files.

Here are the two areas where the corrupt might be located:

1. Custom keyboard shortcuts - If you have setup a keyboard shortcut for the Help :: Check for Updates menu and you trigger this keyboard shortcut, you can kick off NeoOffice's underlying OpenOffice.org code's manual patch checking code which allows manual and automatic patch checks to run at the same time.

2. The patch check interval is set too frequently - Try resetting this setting by selecting the Tools :: Options menu. selecting the NeoOffice :: Online Update item, select the "Every Month" radio button, and press the OK button. Then, repeat these steps and set the interval to whatever interval you prefer.

Do either of the above areas sound light what is happening to you?

Patrick
Back to top
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Wed Jul 22, 2009 10:03 am    Post subject:

Basically, I'm getting the Update check every time I launch NeoOffice. I tried changing the period to Monthly, but that hasn't solved the issue.

I don't have a keyboard shortcut pointing at the Check for Updates menu option -I wouldn't know how to do that anyway, since that menu option isn't visible in the Customise::Menu Help menu section.

The only thing I can think of that might be significant is that I'm running NeoOffice in the newest 'launch headless' way, via the

defaults write org.neooffice.NeoOffice DefaultLaunchOptions -nodefault

command. Could that have anything to do with bypassing the 'check/don't check now' code?
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Wed Jul 22, 2009 10:13 am    Post subject:

I cannot reproduce the behavior that you see when I set the new DefaultLaunchOptions preference so that probably is not the cause. So, the next step is to remove the user preference file that the auotmatic update check reads and see if that resets things. Can you try the following steps and tell us if anything changes?:

1. Quit NeoOffice
2. Move or delete the following file. Note: "~" means your Home folder:

~/Library/Preferences/NeoOffice-3.0/user/registry/data/org/openoffice/Office/Jobs.xcu

3. Restart NeoOffice

This should cause the automatic update check to run once, but then only weekly after that.

Patrick
Back to top
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Wed Jul 22, 2009 10:56 am    Post subject:

Nope, didn't fix it, still getting the Update Check on every launch. I don't know whether it's relevant but I'm also getting:

Macintosh soffice.bin[731]: JavaNativeFoundation: GetGlobalVM: JNI_GetCreatedJavaVMs() failed to get any VM.

in system.log when I launch NeoOffice.
Back to top
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Wed Jul 22, 2009 11:01 am    Post subject:

I just ran

defaults write org.neooffice.NeoOffice DefaultLaunchOptions -calc

and then relaunched NeoOffice, and I don't get the Update Check any more when I launch NeoOffice. Then I ran

defaults write org.neooffice.NeoOffice DefaultLaunchOptions -nodefault

again, and I get the Update Check each time I launch.

(the system.log line I quoted above is a red herring, I get it each time Neo is launched regardless)
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Wed Jul 22, 2009 11:11 am    Post subject:

Can you install the following test patch that I posted yesterday? This test patch contains a bug fix for using the -nologo and -invisible launch options and maybe it fixes the problem that you are seeing:

Intel:
http://joe.neooffice.org/test/NeoOffice-3.0-Patch-5-Test-5-Intel.dmg

PowerPC:
http://joe.neooffice.org/test/NeoOffice-3.0-Patch-5-Test-5-PowerPC.dmg

Patrick
Back to top
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Wed Jul 22, 2009 11:33 am    Post subject:

Nope, after installing the patch, I get the same behaviour - except now I get the Update Check twice even when just launching NeoOffice -nodefault without opening a doc Sad.

It's no big deal at the moment, I'll go back to Calc default and see if a future update solves it.
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Wed Jul 22, 2009 11:40 am    Post subject:

Your Jobs.xcu looks correct so that is not the issue. But I did finally reproduce this problem. I had to edit one of the NeoOffice files to make it think I was using Patch 4. Then, when I ran with -nodefault, the update check runs every time I launch NeoOffice even after I change the patch number back to Patch 5.

I will investigate this bug further and post when I have some news to report.

Patrick
Back to top
narf
The Anomaly


Joined: Jan 21, 2007
Posts: 1075

PostPosted: Wed Jul 22, 2009 12:04 pm    Post subject:

pluby wrote:
I will investigate this bug further and post when I have some news to report.

I have opened bug 3503 to track this issue.

--fran
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Thu Jul 23, 2009 6:11 pm    Post subject:

FYI. I think that I have fixed this bug. Can you install the following test patch and tell us if the bug still occurs?:

Intel:
http://joe.neooffice.org/test/NeoOffice-3.0-Patch-5-Test-6-Intel.dmg

PowerPC:
http://joe.neooffice.org/test/NeoOffice-3.0-Patch-5-Test-6-PowerPC.dmg

Patrick
Back to top
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Fri Jul 24, 2009 1:57 am    Post subject:

Nope, sorry; test-6 with -nodefault set, I still get the Update Check every time I launch NeoOffice - but only once now.
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Fri Jul 24, 2009 8:04 am    Post subject:

yoxi wrote:
Nope, sorry; test-6 with -nodefault set, I still get the Update Check every time I launch NeoOffice - but only once now.


Can you quit NeoOffice and attach the Job.xcu file again?

Patrick
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Fri Jul 24, 2009 8:35 am    Post subject:

One more question: do you have an third-party extensions installed in the Tools :: Extension Manager menu's dialog? If so, maybe what you are seeing is the OpenOffice.org code doing an update check for your third-party extensions. I think that the dialogs look very similar but it is a different code.

Patrick
Back to top
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Fri Jul 24, 2009 9:56 am    Post subject:

Well. It wasn't the Extension Updates dialogue I was seeing, it was definitely the Check for Updates dialogue. But I looked at the Extension Updates dialogue in order to compare them - and it offered me an update for the Sun Import PDF extension, so I accepted and installed that, I quit NeoOffice and relaunched it to see again what the Check for Updates dialogue looks like - and now NeoOffice is launching without bringing that up.

I don't know whether it was installing the new extension that fixed this, or if I just needed to relaunch NeoOffice one more time than I had for the new code to stick, or what - but something shifted it along and it's fixed now.

Thanks Smile.
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Releases All times are GMT - 7 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
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.