You are here

[Fixed] Cannot eject USB stick after running LibreOffice 3.5.4 from it

10 posts / 0 new
Last post
strawbeard
Offline
Last seen: 10 years 5 months ago
Joined: 2012-06-06 20:19
[Fixed] Cannot eject USB stick after running LibreOffice 3.5.4 from it

Hi,

1) I ran LibreOffice Portable 3.5.4 from PortableApps Platform on a USB stick.

2) After terminating the application and the platform, I tried to eject ("deactivate") the USB stick. OS (Windows 2000) denied the request; obviously, some data object on the stick was still in use.

3) Analysis with Process Explorer (by Sysinternals) showed that file "G:\PortableApps\LibreOfficePortable\App\libreoffice\Basis\share\fonts\truetype\__DO_NOT_ADD_FONTS_HERE!.txt" was assigned to the system process CSRSS.EXE (Client/Server Runtime). There was no way to cause CSRSS.EXE to release the file. I had to reboot.

Shouldn't the portability layer remove such remnants from the host system?

Ken Herbert
Ken Herbert's picture
Offline
Last seen: 2 hours 2 min ago
DeveloperModerator
Joined: 2010-05-25 18:19
Processes holding open

Processes holding open handles are not reliable and can't really be predetermined except to try and release handles for every file in an install, which is excessive and would waste time and effort for practically no return.

While a file handle may be open on one run, on another run it might be a different handle that is held open, on another run, no handles open.

Also, if you were unable to release the handle there is no reason to think that a programmatic solution could also release the handle.

depp.jones
Offline
Last seen: 6 hours 45 min ago
DeveloperTranslator
Joined: 2010-06-05 17:19
Different problem but maybe

Different problem but maybe related.

I had to uninstall/reinstall LO a few times lately because of removed languages beeing reinstalled after upgrading. I found that the uninstall cancels evertime because that specific file was locked. Unlocker found no handle but was able to delete it.

-edit-
A scan with Process Explorer revealed, that it was assigned to csrss.exe on my machine, too.

John T. Haller
John T. Haller's picture
Online
Last seen: 49 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Delete That File

It's a LibreOffice bug in its font handling that wasn't properly addressed. You can solve that for now by deleting that folder.

Sometimes, the impossible can become possible, if you're awesome!

depp.jones
Offline
Last seen: 6 hours 45 min ago
DeveloperTranslator
Joined: 2010-06-05 17:19
That was my problem, but

That was my problem, but Unlocker solved this. This happened with LO 3.5.3 als well (just checked).

John T. Haller
John T. Haller's picture
Online
Last seen: 49 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Report

If I'd had even a single report of it in 3.5.3, it'd been solved in 3.5.4. As it is it seems LO accidentally locks non-font files in its font directory. So, I've got it moved and fixed for the next release or revision.

Sometimes, the impossible can become possible, if you're awesome!

depp.jones
Offline
Last seen: 6 hours 45 min ago
DeveloperTranslator
Joined: 2010-06-05 17:19
I just found out it locked my

I just found out it locked my drive after I read the original post - and did a cross check with 3.5.3 half an hour ago.
I did not use LO from my flash drive recently since I installed it locally on every computer at our school. And my local drive does not get ejected. Wink
And since Unlocker did not find an open handle I supected a file system error.

John T. Haller
John T. Haller's picture
Online
Last seen: 49 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Not You

I wasn't accusing you of hoarding bug reports Smile Just lamenting that it wasn't reported earlier.

Sometimes, the impossible can become possible, if you're awesome!

strawbeard
Offline
Last seen: 10 years 5 months ago
Joined: 2012-06-06 20:19
Thank you for this workaround

USB stick is no longer locked Smile

Since this file only contains advisory text, its deletion doesn't affect the application - the ideal workaround Wink

John T. Haller
John T. Haller's picture
Online
Last seen: 49 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Fixed in 3.5.5

The files have been moved and will no longer lock a drive on exit nor require manually removing the file in LibreOffice Portable 3.5.5.

Sometimes, the impossible can become possible, if you're awesome!

Log in or register to post comments