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 - Open file dialog appears during save in NeoOffice 2014 previ
Open file dialog appears during save in NeoOffice 2014 previ
 
   NeoOffice Forum Index -> NeoOffice Beta Releases
View previous topic :: View next topic  
Author Message
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Thu May 15, 2014 7:23 am    Post subject: Open file dialog appears during save in NeoOffice 2014 previ

I open a Writer document, change something, then hit cmd-s. About two-thirds into the save process (judging by the bar at the bottom), NeoOffice presents me with a dialog windows that asks for a file to open. I cancel, it appears again, I cancel again. Then it finishes saving.

There doesn't appear to be any loss of data in the document, though I noticed that the document opens at the beginning the next time I open it, while I seem to recall that it would previously open where I left off. Or maybe that is a setting that needs to be activated.

_________________
"What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Thu May 15, 2014 7:34 am    Post subject: Re: Open file dialog appears during save in NeoOffice 2014 p

If you are seeing the open dialog during saving, my first guess is that you had linked (not embedded) images and/or OLE objects in your document. Apple's App Sandbox does not allow files to opened unless the user has opened them from the Finder or in using the Open dialog within NeoOffice. So, if you see an Open dialog, NeoOffice is trying to open a file that you have not already explicitly opened.

To test my theory, open the original, unedited document and scroll through the entire document. NeoOffice's underlying OpenOffice code does not load linked images or OLE objects until they need to be displayed on screen.

If you see the Open dialog appear while scrolling, right-click or Command-click on any images and, in the popup menu that appears, select the Picture option. In the Picture dialog that appears, click on the Picture tab. Is there a path in the Link :: File name text field? If so, that is what is triggering the Open dialog?

Patrick
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Thu May 15, 2014 2:02 pm    Post subject:

I found a simpler way to find out what code is triggering the Open dialog. Can you open the /Applications/Utilities/Console application, search for "soffice.bin", and look for "deny file-read-data" line? If you find any lines with a timestamp around the time you saw the Open dailogs, can you click on that item's paperclick icon and attach the report that appears?

Patrick
Back to top
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Thu May 15, 2014 5:54 pm    Post subject:

Edit: I didn't see any of those at first, but there was one tucked in the noise, see separate post.

There is one linked image that is apparently missing when I scroll through the document because it triggered a file dialog. But that didn't affect the saving: I still got two file open dialogs.

I did get another message in the console afterwards that looks new:
16-05-14 03:51:54,285 soffice.bin[23046]: view service marshal for <NSRemoteView> failed to forget accessibility connection due to Error Domain=NSCocoaErrorDomain Code=4099 "Geen communicatie met een helperprogramma mogelijk." (The connection was invalidated from this process.) UserInfo=0x60000007da80 {NSDebugDescription=The connection was invalidated from this process.}
timestamp: 03:51:54.285 Friday 16 May 2014
process/thread/queue: soffice.bin (23046) / 0x112ccb000 / com.apple.NSXPCConnection.user.endpoint
code: line 2972 of /SourceCache/ViewBridge/ViewBridge-46.2/NSRemoteView.m in __57-[NSRemoteView viewServiceMarshalProxy:withErrorHandler:]_block_invoke
domain: communications-failure

Good luck,
Oscar

_________________
"What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi


Last edited by ovvldc on Thu May 15, 2014 5:57 pm; edited 1 time in total
Back to top
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Thu May 15, 2014 5:57 pm    Post subject:

FYI, I found another instance of the error above. I also noticed dozens of:

16-05-14 03:50:34,011 com.apple.appkit.xpc.openAndSavePanelService[23108]: CGSSetWindowTransformAtPlacement: Failed
16-05-14 03:50:34,011 com.apple.appkit.xpc.openAndSavePanelService[23108]: ERROR: CGSSetWindowTransformAtPlacement() returned 1001
16-05-14 03:50:34,011 WindowServer[110]: CGXSetWindowListAlpha: Operation on a window 0x4b52 requiring rights kCGSWindowRightPresenter by caller com.apple.appkit.xpc.openAndSav
16-05-14 03:50:34,029 WindowServer[110]: CGXSetWindowTransform: Operation on a window 0x4b52 requiring rights kCGSWindowRightPresenter by caller com.apple.appkit.xpc.openAndSav

_________________
"What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi
Back to top
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Thu May 15, 2014 5:58 pm    Post subject:

soffice.bin(23046) deny file-read-data /Users/<snip>

Process: soffice.bin [23046]
Path: /Applications/NeoOffice 2014.app/Contents/MacOS/soffice.bin
Load Address: 0x10bd5d000
Identifier: org.neooffice.NeoOfficeSecureEdition
Version: 2014 Developer Preview (2014 Developer Preview)
Code Type: x86_64 (Native)
Parent Process: launchd [321]

Date/Time: 2014-05-16 03:51:52.390 +0300
OS Version: Mac OS X 10.9.2 (13C1021)
Report Version: 8

Thread 0:
0 libsystem_kernel.dylib 0x00007fff8c6e45da __open + 10
1 libucpfile1.dylib 0x0000000115bed54c
2 libucpfile1.dylib 0x0000000115be36d2
3 libucpfile1.dylib 0x0000000115bc018f
4 libucpfile1.dylib 0x0000000115bb74ca
5 libucpfile1.dylib 0x0000000115bb9ab4
6 libucpfile1.dylib 0x0000000115bb9445
7 libucbhelper4gcc3.dylib 0x000000010d305c25
8 libucbhelper4gcc3.dylib 0x000000010d30ca9e ucbhelper::Content::openStream() + 782
9 libcomphelp4gcc3.dylib 0x000000010bfc03fa
10 libcomphelp4gcc3.dylib 0x000000010bfc17a4
11 libcomphelp4gcc3.dylib 0x000000010bfc1ab5 comphelper::MediaDescriptor::addInputStreamOwnLock() + 615
12 libsfxmxi.dylib 0x000000010c53e16d
13 libsfxmxi.dylib 0x000000010c540449 SfxMedium::GetInStream() + 169
14 libsfxmxi.dylib 0x000000010c5404d0 SfxMedium::DownLoad(Link const&) + 40
15 libsvxcoremxi.dylib 0x0000000117953b1e
16 libsvxcoremxi.dylib 0x00000001179540ae
17 libswmxi.dylib 0x0000000116b2b59a
18 libswmxi.dylib 0x00000001168cf487 SwGrfNode::SwapIn(unsigned char) + 175
19 libswmxi.dylib 0x0000000116ac2917
20 libswmxi.dylib 0x0000000116ac242f
21 libswmxi.dylib 0x00000001169abb62
22 libswmxi.dylib 0x00000001169ac736
23 libswmxi.dylib 0x000000011693fa04
24 libswmxi.dylib 0x000000011693e68d
25 libdrawinglayermxi.dylib 0x000000011844068c drawinglayer::primitive2d::BasePrimitive2D::get2DDecomposition(drawinglayer::geometry::ViewInformation2D const&) const + 66
26 libdrawinglayermxi.dylib 0x000000011849407a drawinglayer::processor2d::VclMetafileProcessor2D::processBasePrimitive2D(drawinglayer::primitive2d::BasePrimitive2D const&) + 19604
27 libdrawinglayermxi.dylib 0x0000000118482b7d drawinglayer::processor2d::BaseProcessor2D::process(com::sun::star::uno::Sequence<com::sun::star::uno::Reference<com> > const&) + 151
28 libsvxcoremxi.dylib 0x00000001175d3073
29 libsvxcoremxi.dylib 0x00000001175d32f8
30 libsvxcoremxi.dylib 0x000000011793d151 SdrPageWindow::RedrawLayer(unsigned char const*, sdr::contact::ViewObjectContactRedirector*) const + 409
31 libsvxcoremxi.dylib 0x00000001178b2d97 SdrPageView::DrawLayer(unsigned char, OutputDevice*, sdr::contact::ViewObjectContactRedirector*) const + 331
32 libswmxi.dylib 0x0000000116924763
33 libswmxi.dylib 0x00000001169add05
34 libswmxi.dylib 0x000000011692f07a ViewShell::PrtOle2(SwDoc*, SwViewOption const*, SwPrtOptions&, OutputDevice*, Rectangle const&) + 432
35 libswmxi.dylib 0x0000000116db4c07
36 libsfxmxi.dylib 0x000000010c5f0ea6
37 libsfxmxi.dylib 0x000000010c5f1055 SfxObjectShell::DoDraw(OutputDevice*, Point const&, Size const&, JobSetup const&, unsigned short) + 277
38 libsfxmxi.dylib 0x000000010c58a11b
39 libsfxmxi.dylib 0x000000010c585d13 SfxObjectShell::GetPreviewMetaFile(unsigned char) const + 19
40 libsfxmxi.dylib 0x000000010c56e125 SfxObjectShell::WriteThumbnail(unsigned char, unsigned char, unsigned char, com::sun::star::uno::Reference<com> const&) + 415
41 libsfxmxi.dylib 0x000000010c56e38a SfxObjectShell::GenerateAndStoreThumbnail(unsigned char, unsigned char, unsigned char, com::sun::star::uno::Reference<com> const&) + 226
42 libsfxmxi.dylib 0x000000010c57cc36
43 libsfxmxi.dylib 0x000000010c58356f
44 libsfxmxi.dylib 0x000000010c583a1d
45 libsfxmxi.dylib 0x000000010c5dcf96 SfxBaseModel::storeSelf(com::sun::star::uno::Sequence<com> const&) + 1680
46 libsfxmxi.dylib 0x000000010c5edc42
47 libsfxmxi.dylib 0x000000010c58fb1a
48 libsfxmxi.dylib 0x000000010c65cd49
49 libsfxmxi.dylib 0x000000010c65d20a
50 libsfxmxi.dylib 0x000000010c659fe5
51 libsfxmxi.dylib 0x000000010c685f45
52 libvclmxi.dylib 0x000000010d617f23
53 libvclmxi.dylib 0x000000010d6d9132 JavaSalEvent::dispatch() + 6390
54 libvclmxi.dylib 0x000000010d6da38e JavaSalInstance::Yield(bool, bool) + 406
55 libvclmxi.dylib 0x000000010d447132 Application::Yield(bool) + 78
56 libvclmxi.dylib 0x000000010d447187 Application::Execute() + 47
57 libsofficeapp.dylib 0x000000010bf023bf
58 libvclmxi.dylib 0x000000010d44b496
59 libvclmxi.dylib 0x000000010d44bca2
60 libuno_sal.dylib.3 0x000000010c2cafe9
61 libsystem_pthread.dylib 0x00007fff8246c899 _pthread_body + 138
62 libsystem_pthread.dylib 0x00007fff8246c72a _pthread_struct_init + 0
63 libsystem_pthread.dylib 0x00007fff82470fc9 thread_start + 13

Binary Images:
0x10bef8000 - 0x10bf54fe7 libsofficeapp.dylib (0) <a86705c1> /Applications/NeoOffice 2014.app/Contents/basis-link/program/libsofficeapp.dylib
0x10bf73000 - 0x10c07cfe7 libcomphelp4gcc3.dylib (0) <facbf848> /Applications/NeoOffice 2014.app/Contents/basis-link/program/libcomphelp4gcc3.dylib
0x10c2c5000 - 0x10c467fff libuno_sal.dylib.3 (0) <d7d35859> /Applications/NeoOffice 2014.app/Contents/basis-link/ure-link/lib/libuno_sal.dylib.3
0x10c4a0000 - 0x10c850fef libsfxmxi.dylib (0) <6b8fca21> /Applications/NeoOffice 2014.app/Contents/basis-link/program/libsfxmxi.dylib
0x10d304000 - 0x10d365fff libucbhelper4gcc3.dylib (0) <2673a746> /Applications/NeoOffice 2014.app/Contents/basis-link/program/libucbhelper4gcc3.dylib
0x10d43b000 - 0x10d800fef libvclmxi.dylib (0) <85bb8a42> /Applications/NeoOffice 2014.app/Contents/basis-link/program/libvclmxi.dylib
0x115bb0000 - 0x115c07fef libucpfile1.dylib (0) <dae5ba0b> /Applications/NeoOffice 2014.app/Contents/basis-link/program/libucpfile1.dylib
0x11688e000 - 0x11726bfef libswmxi.dylib (0) <6af30a94> /Applications/NeoOffice 2014.app/Contents/basis-link/program/libswmxi.dylib
0x1175b5000 - 0x117d18fef libsvxcoremxi.dylib (0) <9fa7668b> /Applications/NeoOffice 2014.app/Contents/basis-link/program/libsvxcoremxi.dylib
0x11843d000 - 0x1184dafff libdrawinglayermxi.dylib (0) <dfebc1fb> /Applications/NeoOffice 2014.app/Contents/basis-link/program/libdrawinglayermxi.dylib
0x7fff8246b000 - 0x7fff82472ff7 libsystem_pthread.dylib (53.1.4) <ab498556> /usr/lib/system/libsystem_pthread.dylib
0x7fff8c6cf000 - 0x7fff8c6ebff7 libsystem_kernel.dylib (2422.92.1) <3f649963> /usr/lib/system/libsystem_kernel.dylib

_________________
"What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Thu May 15, 2014 9:08 pm    Post subject:

ovvldc wrote:
Edit: I didn't see any of those at first, but there was one tucked in the noise, see separate post.

There is one linked image that is apparently missing when I scroll through the document because it triggered a file dialog. But that didn't affect the saving: I still got two file open dialogs.


OK. The output in your last post confirms also confirms that it was a linked image that triggered the Open dialog.

So note that it is normal to see an Open dialog the first time you access the linked image. What then happens is that if you click the Open button in the dialog, you should not see the Open dialog again for any files or subfolders of the folder that the linked image is in. Even restarting NeoOffice should not cause the Open dialog to display again for the folder.

However, if you click the Cancel button, you will see an Open dialog for the linked file every time NeoOffice tries to read the linked file. You see two Open dialogs in a row because the OpenOffice code retries reading the file if the first try fails.

If you can get the Open dialog to appear with that document, does clicking the Open button do the following?:

- Display the linked image
- Stop the Open dialog from appearing when you relaunch NeoOffice and open the same document

BTW, all of the "CG..." messages in the Console are from the Open and Save dialogs. When running in Apple's App Sandbox, Apple uses a completely different architecture to display Open and Save dialogs to limit breaking out of their App Sandbox. Unfortunately, Apple's App Sandbox dialog code generates all of those verbose "CG..." messages.

Patrick
Back to top
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Thu May 15, 2014 10:32 pm    Post subject:

Yes. Just clicking 'Open' will display the image and make the dialogs go away during save..

The only suspicious thing now is that it goes into spinning beach ball mode for a few seconds (5-10 or so) and then it all goes normally.

_________________
"What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Thu May 15, 2014 10:44 pm    Post subject:

ovvldc wrote:
The only suspicious thing now is that it goes into spinning beach ball mode for a few seconds (5-10 or so) and then it all goes normally.


Does that only happen after you see the Open dialog? Or does it occur when the linked image is loaded after relaunching NeoOffice and opening the document again?

In either case, is the linked image an EPS image?

Patrick
Back to top
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Fri May 16, 2014 4:58 am    Post subject:

Now that I opened the image and it showed up, the temporary beach ball no longer happens. But it happened the last time that I saved it even after I selected open and got the image to show.

The image was a PNG, so that was not it.

I tried closing NeoOffice 2014 Preview and restarting it, and that gave no different results except for a twenty second hang when I closed the document. It tried to spindump but the condition went away when I was collecting data Sad.

The only thing I have is from the console log, but that is probably from the very simple Calc document I also had open:
16-05-14 14:54:34,209 soffice.bin[27649]: dynamic_cast error 2: One or more of the following type_info's has hidden visibility. They should all have public visibility. N3com3sun4star3uno10XInterfaceE, 9ScCellObj, 16ScCellRangesBase.

I also found this one, but that is probably part of the update process:
16-05-14 14:53:07,000 kernel[0]: Sandbox: appleeventsd(80) deny file-read-metadata /Library

_________________
"What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Fri May 16, 2014 8:48 am    Post subject:

ovvldc wrote:
Now that I opened the image and it showed up, the temporary beach ball no longer happens. But it happened the last time that I saved it even after I selected open and got the image to show.


You are correct that .png files should not cause hanging (they are process on a secondary thread, not the main thread) so I am really interested to see where the hanging is occurring.

Would it be possible to open the /Applications/Utilities/Activity Monitor application running in the background after you open NeoOffice and then double click on the NeoOffice entry in that app? That will display a dialog with a Sample button. Then, when you save or quit and the beach ball first appears, you can quickly switch to the Activity Monitor application and press the Sample button.

Patrick
Back to top
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Fri May 16, 2014 9:24 am    Post subject:

I will try but the hang is not 100% repeatable.
_________________
"What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Fri May 16, 2014 9:38 am    Post subject:

ovvldc wrote:
I will try but the hang is not 100% repeatable.


Thanks for trying. If it does happen again, after you press the Sample button, you might want to see if any processes are using greater than 25% of CPU. It could be that what you are seeing is another process hogging the CPU.

Patrick
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Mon May 26, 2014 9:25 pm    Post subject:

I can now reproduce the slow saving behavior repeatedly by doing the following steps and I have a fix for this specific case in the following test patch:

1. Open a .csv file that has 10,000+ rows in Calc
2. Change a cell
3. Select the NeoOffice :: Quit menu and in the dialog that appears, press the Save button
4. In the next dialog that appears, press the "Save in ODF Format" button

When doing the above steps, saving will be many times slower in NeoOffice 2014 Developer Preview than in NeoOffice 3.4.1 or 2013.4.

Can you install the following test patch and tell us if the slow saving problem still occurs? Note: you will need to install NeoOffice 2014 Developer Preview 2 from the link in this NeoWiki article before you can install the test patch:

NeoOffice 2014 Developer Preview 2:
http://nick.neooffice.org/test/NeoOffice-2014_Developer_Preview_2-Test-2-Intel.dmg

Patrick
Back to top
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Tue May 27, 2014 6:20 am    Post subject:

Thanks. I couldn't get anything reliable earlier, but I will install and test the patch.
_________________
"What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Beta Releases All times are GMT - 7 Hours
Goto page 1, 2  Next
Page 1 of 2

 
You can post new topics in this forum
You can 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.