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 - eps graphics
eps graphics
 
   NeoOffice Forum Index -> NeoOffice Releases
View previous topic :: View next topic  
Author Message
djpimley
The Anomaly
(earlier version)


Joined: Jun 11, 2006
Posts: 481
Location: Great Britain

PostPosted: Mon Mar 01, 2010 11:45 am    Post subject:

I should have been clearer, sorry. I thought Darryl might be able to test with a few EPS images from different sources, to make sure it's not something specific to the combination of his particular image(s) and his hardware/software.
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Mon Mar 01, 2010 8:36 pm    Post subject: Re: eps graphics

danmac,

pluby wrote:
Can you attach a sample document that has an EPS image set to contour wrap that we can use to try to reproduce this problem on our machines?


I noticed that you have already attached a sample document earlier in this forum topic. Is there any specific EPS image in that document that will fail to render if I enable contour wrap?

Patrick
Back to top
danmac
Pure-blooded Human


Joined: May 08, 2006
Posts: 33

PostPosted: Tue Mar 02, 2010 4:35 am    Post subject: eps graphics

Hi Patrick,

Yes, the file I previously uploaded has the contour wrap problems. I just downloaded that file to make sure we would be working on the same thing. I opened it, set the 'car' graphic on page 8 to contour wrap, adjusted the top and bottom spacing to 5 mm to make the text flow a little better, then saved and closed the file. When I reopened it, the car was gone with only a bounding box showing above the text.

As a double check, I just downloaded the file to my MacBook and followed the same steps with exactly the same results: no car, just a box above the text.

Not that I wish you bad luck at all, but I sure hope you see the same results.

Cheers,
Darryl
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Tue Mar 02, 2010 8:52 am    Post subject:

I can definitely reproduce your problem by enabling contour wrapping for the image on page 8. When I close and reopen the document, the image is blank and the text to the left of the image draws completely over the image's area. I also noticed that after I reopened the document and turned the image's contour wrap off and on, all changes elsewhere in the document after that first change will not enable the Save toolbar button. The File :: Save menu gets activated, but not the Save toolbar button.

I then tried to reproduce both of the above problems in OpenOffice.org 3.0.1 (the version that NeoOffice 3.0.2 is based on) and OpenOffice.org 3.1.1 (the version that we will be upgrading NeoOffice to in the next few months). While the Save toolbar button problem does not occur in OpenOffice.org, the contour wrapping problem is even worse than in NeoOffice: OpenOffice.org hangs when reopening an .odt file for which you have just saved if an image has contour wrapping enabled.

So really there are two bugs here:

1. The Save toolbar button does not get enabled when you change the contour wrap setting for an image - Since this does not occur in OpenOffice.org 3.0.1, this is clearly a NeoOffice bug and I will start investigating the cause of this bug.

2. Contour wrapped images fail to render - Since OpenOffice.org hangs it appears that NeoOffice's underlying OpenOffice.org code is failing to calculate the contour bounds of the image. While I probably cannot fix that, what I will investigate is if I can detect such failures and in such cases force the OpenOffice.org code to behave as if contour wrapping is turned off.

It will take a few days to investigate these two bugs but when I have more news, I will post an update in this forum topic.

Patrick
Back to top
danmac
Pure-blooded Human


Joined: May 08, 2006
Posts: 33

PostPosted: Tue Mar 02, 2010 3:06 pm    Post subject: eps graphics

Finally. I was beginning to think it was me! I understand that it will take time to find the cause. I can't even imagine the complexities for trying to track down bugs in such a complex program.

As I recall, that file was also the worst for the disappearing eps graphics problem, so maybe they are related.

In any case, I appreciate anything you can do.

Darryl
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Tue Mar 02, 2010 8:46 pm    Post subject:

I think that I have fixed both of these bugs (note: I created bug 3592 and bug 3593 to track these bugs).

Can you install the following test patch and tell us if the fix works for you?:

Intel:
http://joe.neooffice.org/test/NeoOffice-3.0.2-Patch-1-Test-2-Intel.dmg

PowerPC:
http://joe.neooffice.org/test/NeoOffice-3.0.2-Patch-1-Test-2-PowerPC.dmg

Patrick
Back to top
danmac
Pure-blooded Human


Joined: May 08, 2006
Posts: 33

PostPosted: Tue Mar 02, 2010 10:29 pm    Post subject: eps graphics

Well done Patrick!! That was quick.

I'm at work at the moment so I've only been able to test the patch on my MacBook, but the graphics are perfect now. I opened the file that I saved earlier, the one in which the graphic had disappeared, and the graphic was back with perfect contour wrap! I also tried turning contour wrap off, saving, closing, opening, etc with no problems. Thanks so much.

Darryl
Back to top
danmac
Pure-blooded Human


Joined: May 08, 2006
Posts: 33

PostPosted: Wed Mar 03, 2010 4:27 am    Post subject: eps graphics

I'm happy to report that it's the same story on the home front. The patch has fixed the problem on the MacMini, too.

Thanks Patrick
Back to top
danmac
Pure-blooded Human


Joined: May 08, 2006
Posts: 33

PostPosted: Fri Mar 05, 2010 6:42 pm    Post subject: eps graphics disappearing again

Sorry Patrick, it's me again. I'm having the vanishing eps graphics problem again. I managed to get a console log copy this time and there seem to be lots of errors in it.

3/6/10 10:06:53 AM [0x0-0xb90b9].org.neooffice.NeoOffice[5352] Sat Mar 6 10:06:53 darryl-mcgraths-mac-mini.local soffice.bin[5352] <Error>: CGDataConsumerCreateWithFilename: failed to open `/var/folders/3q/3qz1FGOyFOedifyV-5s0xU+++TI/-Tmp-/svn88.tmp/svo20.tmp' for writing: Too many open files.
3/6/10 10:06:53 AM [0x0-0xb90b9].org.neooffice.NeoOffice[5352] deflateEnd: error -3: (null).
3/6/10 10:06:53 AM [0x0-0xb90b9].org.neooffice.NeoOffice[5352] Sat Mar 6 10:06:53 darryl-mcgraths-mac-mini.local soffice.bin[5352] <Error>: CGPDFContextCreate: failed to create PDF context delegate.
3/6/10 10:06:53 AM [0x0-0xb90b9].org.neooffice.NeoOffice[5352] Sat Mar 6 10:06:53 darryl-mcgraths-mac-mini.local soffice.bin[5352] <Error>: CGDataConsumerCreateWithFilename: failed to open `/var/folders/3q/3qz1FGOyFOedifyV-5s0xU+++TI/-Tmp-/svn88.tmp/svo21.tmp' for writing: Too many open files.
3/6/10 10:06:53 AM [0x0-0xb90b9].org.neooffice.NeoOffice[5352] deflateEnd: error -3: (null).
3/6/10 10:06:53 AM [0x0-0xb90b9].org.neooffice.NeoOffice[5352] Sat Mar 6 10:06:53 darryl-mcgraths-mac-mini.local soffice.bin[5352] <Error>: CGPDFContextCreate: failed to create PDF context delegate.
3/6/10 10:06:53 AM [0x0-0xb90b9].org.neooffice.NeoOffice[5352] Sat Mar 6 10:06:53 darryl-mcgraths-mac-mini.local soffice.bin[5352] <Error>: CGDataConsumerCreateWithFilename: failed to open `/var/folders/3q/3qz1FGOyFOedifyV-5s0xU+++TI/-Tmp-/svn88.tmp/svo22.tmp' for writing: Too many open files.
3/6/10 10:06:53 AM [0x0-0xb90b9].org.neooffice.NeoOffice[5352] deflateEnd: error -3: (null).
3/6/10 10:06:53 AM [0x0-0xb90b9].org.neooffice.NeoOffice[5352] Sat Mar 6 10:06:53 darryl-mcgraths-mac-mini.local soffice.bin[5352] <Error>: CGPDFContextCreate: failed to create PDF context delegate.
3/6/10 10:06:53 AM [0x0-0xb90b9].org.neooffice.NeoOffice[5352] Sat Mar 6 10:06:53 darryl-mcgraths-mac-mini.local soffice.bin[5352] <Error>: CGDataConsumerCreateWithFilename: failed to open `/var/folders/3q/3qz1FGOyFOedifyV-5s0xU+++TI/-Tmp-/svn88.tmp/svo23.tmp' for writing: Too many open files.
3/6/10 10:06:53 AM [0x0-0xb90b9].org.neooffice.NeoOffice[5352] deflateEnd: error -3: (null).
3/6/10 10:06:53 AM [0x0-0xb90b9].org.neooffice.NeoOffice[5352] Sat Mar 6 10:06:53 darryl-mcgraths-mac-mini.local soffice.bin[5352] <Error>: CGPDFContextCreate: failed to create PDF context delegate.
3/6/10 10:06:53 AM [0x0-0xb90b9].org.neooffice.NeoOffice[5352] Sat Mar 6 10:06:53 darryl-mcgraths-mac-mini.local soffice.bin[5352] <Error>: CGDataConsumerCreateWithFilename: failed to open `/var/folders/3q/3qz1FGOyFOedifyV-5s0xU+++TI/-Tmp-/svn88.tmp/svo24.tmp' for writing: Too many open files.
3/6/10 10:06:53 AM [0x0-0xb90b9].org.neooffice.NeoOffice[5352] deflateEnd: error -3: (null).
3/6/10 10:06:53 AM [0x0-0xb90b9].org.neooffice.NeoOffice[5352] Sat Mar 6 10:06:53 darryl-mcgraths-mac-mini.local soffice.bin[5352] <Error>: CGPDFContextCreate: failed to create PDF context delegate.
3/6/10 10:06:53 AM [0x0-0xb90b9].org.neooffice.NeoOffice[5352] Sat Mar 6 10:06:53 darryl-mcgraths-mac-mini.local soffice.bin[5352] <Error>: CGDataConsumerCreateWithFilename: failed to open `/var/folders/3q/3qz1FGOyFOedifyV-5s0xU+++TI/-Tmp-/svn88.tmp/svo25.tmp' for writing: Too many open files.
3/6/10 10:06:53 AM [0x0-0xb90b9].org.neooffice.NeoOffice[5352] deflateEnd: error -3: (null).
3/6/10 10:06:53 AM [0x0-0xb90b9].org.neooffice.NeoOffice[5352] Sat Mar 6 10:06:53 darryl-mcgraths-mac-mini.local soffice.bin[5352] <Error>: CGPDFContextCreate: failed to create PDF context delegate.
3/6/10 10:06:53 AM [0x0-0xb90b9].org.neooffice.NeoOffice[5352] Sat Mar 6 10:06:53 darryl-mcgraths-mac-mini.local soffice.bin[5352] <Error>: CGDataConsumerCreateWithFilename: failed to open `/var/folders/3q/3qz1FGOyFOedifyV-5s0xU+++TI/-Tmp-/svn88.tmp/svo26.tmp' for writing: Too many open files.
3/6/10 10:06:53 AM [0x0-0xb90b9].org.neooffice.NeoOffice[5352] deflateEnd: error -3: (null).
3/6/10 10:06:53 AM [0x0-0xb90b9].org.neooffice.NeoOffice[5352] Sat Mar 6 10:06:53 darryl-mcgraths-mac-mini.local soffice.bin[5352] <Error>: CGPDFContextCreate: failed to create PDF context delegate.
3/6/10 10:06:53 AM [0x0-0xb90b9].org.neooffice.NeoOffice[5352] Sat Mar 6 10:06:53 darryl-mcgraths-mac-mini.local soffice.bin[5352] <Error>: CGDataConsumerCreateWithFilename: failed to open `/var/folders/3q/3qz1FGOyFOedifyV-5s0xU+++TI/-Tmp-/svn88.tmp/svo27.tmp' for writing: Too many open files.
3/6/10 10:06:53 AM [0x0-0xb90b9].org.neooffice.NeoOffice[5352] deflateEnd: error -3: (null).
3/6/10 10:06:53 AM [0x0-0xb90b9].org.neooffice.NeoOffice[5352] Sat Mar 6 10:06:53 darryl-mcgraths-mac-mini.local soffice.bin[5352] <Error>: CGPDFContextCreate: failed to create PDF context delegate.
3/6/10 10:07:57 AM [0x0-0xdd0dd].org.neooffice.NeoOffice[6886] objc[6886]: Class AWTFont is implemented in both /Applications/NeoOffice.app/Contents/MacOS/../basis-link/program/libvcljava2.dylib and /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Libraries/libawt.jnilib. One of the two will be used. Which one is undefined.
3/6/10 10:08:02 AM soffice.bin[6886] JavaNativeFoundation: GetGlobalVM: JNI_GetCreatedJavaVMs() failed to get any VM.
3/6/10 10:08:02 AM soffice.bin[6886] Application will become active - Using remote controls
3/6/10 10:26:06 AM Typinator[253] Pasteboard saving state: getting data for com.apple.pict
3/6/10 10:38:22 AM soffice.bin[6886] Application will resign active - Releasing remote controls

I hope that helps you to track down this annoying problem.

Cheers,
Darryl
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Fri Mar 05, 2010 7:57 pm    Post subject: Re: eps graphics disappearing again

danmac wrote:
3/6/10 10:06:53 AM [0x0-0xb90b9].org.neooffice.NeoOffice[5352] Sat Mar 6 10:06:53 darryl-mcgraths-mac-mini.local soffice.bin[5352] <Error>: CGDataConsumerCreateWithFilename: failed to open `/var/folders/3q/3qz1FGOyFOedifyV-5s0xU+++TI/-Tmp-/svn88.tmp/svo20.tmp' for writing: Too many open files.


Thank you for the Console log. The above message is a key message: you are running into the Mac OS X "maximum files open at one time" limit like thboyd was running into earlier in this forum topic.

Mac OS X limits the number of files that you can can open at any one time and when NeoOffice tries to open a file, Mac OS X won't let it because you are at the limit.

Can you launch the /Applications/Utilities/Terminal application, paste the following commands into the Terminal window, press the Return key, and copy the output into this forum topic? These command will tell us what the maximum number of files that Mac OS X allows to be open at one time and it will also tell us how many files each running application has open:

Code:
/bin/bash -c "ulimit -Ha"
sysctl -a | grep file
lsof | awk '{print $1}' | sort | uniq -c


Patrick
Back to top
danmac
Pure-blooded Human


Joined: May 08, 2006
Posts: 33

PostPosted: Fri Mar 05, 2010 8:17 pm    Post subject: eps graphics disappearing again

Sorry, I should have remembered to do that. Here's the output. Basically, the computer is in the same state as it was when the problem occurred.

darryl-mcgraths-mac-mini:~ darryl$ /bin/bash -c "ulimit -Ha"
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) unlimited
pipe size (512 bytes, -p) 1
stack size (kbytes, -s) 65532
cpu time (seconds, -t) unlimited
max user processes (-u) 532
virtual memory (kbytes, -v) unlimited
darryl-mcgraths-mac-mini:~ darryl$ sysctl -a | grep file
kern.maxfiles = 12288
kern.maxfilesperproc = 10240
kern.corefile = /cores/core.%P
kern.maxfiles: 12288
kern.maxfilesperproc: 10240
kern.ipc.sendfileuiobufs: 64
kern.corefile: /cores/core.%P
kern.hibernatefile:
kern.num_files: 944
security.mac.file_enforce: 0
appleprofile.allow_new_clients: 1
appleprofile.enable_profiling: 0
appleprofile.max_special_alloc: 469395456
appleprofile.current_special_alloc: 0
appleprofile.actions.registered_actions: 6
appleprofile.actions.callstack.default_continuous_buffer_size: 2097152
appleprofile.actions.callstack.max_memory: 33554432
appleprofile.actions.kevent.default_continuous_buffer_size: 5242880
appleprofile.actions.kevent.max_memory: 268435456
appleprofile.actions.register_state.default_continuous_buffer_size: 2097152
appleprofile.actions.register_state.max_memory: 33554432
appleprofile.actions.threadinfo.default_continuous_buffer_size: 1048576
appleprofile.actions.threadinfo.max_memory: 88080384
appleprofile.actions.timestamp.default_continuous_buffer_size: 524288
appleprofile.actions.timestamp.max_memory: 33554432
appleprofile.pmcs.cur_sys_reservations: 0
appleprofile.pmcs.max_sys_reservations: 20
appleprofile.pmcs.cur_task_reservations: 0
appleprofile.pmcs.max_task_reservations: 20
appleprofile.pmcs.cur_thread_reservations: 0
appleprofile.pmcs.max_thread_reservations: 20
darryl-mcgraths-mac-mini:~ darryl$ lsof | awk '{print $1}' | sort | uniq -c
13 AirPort
34 AppleSpel
30 BetterTou
1 COMMAND
32 Dock
116 Dropbox
27 FileSyncA
53 Finder
10 Firewall
44 GraphicCo
35 GrowlHelp
14 Image\x20
24 Inkscape
20 MIDIServe
51 SystemUIS
16 TISwitche
26 Terminal
33 Typinator
25 UserEvent
52 X11.bin
14 Xquartz
41 aosnotify
7 awk
15 bash
13 cvmsComp_
19 diskimage
144 firefox-b
28 fontd
17 iTunesHel
113 inkscape-
62 launchd
23 loginwind
9 lsof
19 mdworker
16 mdworker3
10 pboard
21 quartz-wm
11 sh
276 soffice.b
7 sort
14 xinit

Darryl
Back to top
danmac
Pure-blooded Human


Joined: May 08, 2006
Posts: 33

PostPosted: Fri Mar 05, 2010 8:21 pm    Post subject: eps graphics disappearing again

Just an afterthought: I wasn't trying to open any files when the problem occurred. It was when I saved the file that the problem occurred. The first time it happened this morning, I was repositioning one of the graphics (I forgot to get the console log that time).

Hope that helps.

Darryl
Back to top
danmac
Pure-blooded Human


Joined: May 08, 2006
Posts: 33

PostPosted: Fri Mar 05, 2010 8:54 pm    Post subject: eps graphics disappearing again

Sorry to keep bombarding you with this problem, but this time, I copy and pasted a section of text containing a small eps graphic into another open document when the eps graphics went missing. This time there was nothing in the console log. The following two lines were all that were relevant to the episode. All other entries were way too early to be significant.

3/6/10 12:45:42 PM soffice.bin[7512] Application will become active - Using remote controls
3/6/10 12:51:10 PM soffice.bin[7512] Application will resign active - Releasing remote controls

You're going to get sick of seeing my name!

Cheers,
Darryl
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Fri Mar 05, 2010 8:59 pm    Post subject: Re: eps graphics disappearing again

danmac wrote:
Just an afterthought: I wasn't trying to open any files when the problem occurred. It was when I saved the file that the problem occurred. The first time it happened this morning, I was repositioning one of the graphics (I forgot to get the console log that time).


You are confusing "editing a document" with having a file open. File from Mac OS X's perspective is a file on disk and nearly everything in Mac OS X is stored in a file. Having a file open means any application reading a preference file, connecting to a server, saving a file, etc.

What I do notice is that you have a very high number of applications running on your machine at once. All of those applications are competing for the same fixed pool of open files. I suspect that you are running pretty close to the Mac OS X limit and when any application suddenly needs to open a lot of files at once (like when NeoOffice saves a file and writes to not only your document file but also its various preference files), you hit the limit.

Mac OS X applications like NeoOffice cannot override this maximum number of open files limit so you really only have two options:

1. Run far fewer applications at the same time so that you have much more unused capacity

2. Increase the Mac OS X limit

You can increase the limit as it is a tunable Mac OS X operating system setting, but it requires superuser access to your machine and any error while doing that can make your machine unbootable. If you really need to run so many applications and increase the limit, I would highly recommend you search the web on the subject to fully understand any ramifications of changing these operating system settings before you try doing it.

Patrick
Back to top
danmac
Pure-blooded Human


Joined: May 08, 2006
Posts: 33

PostPosted: Fri Mar 05, 2010 9:21 pm    Post subject: eps graphics disappearing again

Thanks for the update and the explanation, Patrick. I must admit that I am pretty ignorant when it comes to 'under the hood' OS X. I'll go through the list and see if I can't prune it a little.

I assume that means that the eps problem is not a bug, but just many processes going at once?

I appreciate all the help you've given me.

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

 
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.