Posted: 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
Posted: 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?
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?
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
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
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.
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
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?
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 .
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
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.
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
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.
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:
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
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