FD or stream not closed with tab Topic is solved

The place to report Pale Moon specific bugs on Linux and other operating systems.

Moderators: Indalecio, satrow

vingtzwanzig
Moongazer
Moongazer
Posts: 8
Joined: Thu Apr 20, 2017 9:25 pm
Contact:

FD or stream not closed with tab

Postby vingtzwanzig » Sat Jul 08, 2017 8:03 pm

I'm using Pale Moon 27.3.0 Linux 32 bit bzipped download in Void XFCE:
Mount a drive, use Pale Moon to open an HTML file on it that has .html and filedir/ (e.g. saved as webpage complete). Open another file in another tab.
Close the tab showing the file from the drive (CD or USB) and try to unmount the drive.
$ sudo umount /mnt
umount: /mnt: target is busy.
It can't be unmounted now until Pale Moon is fully shutdown. Doesn't do this with a simple HTML file with no filesdir/.
Probably it's not doing a proper cleanup of streams or file descriptors or something, and could even be related to the multi tab crashing issues.

Also:
If you upload some files to Yandex disk and open the directory with Thunar from the XFCE panel file dropdown selector while the upload popup is still showing 2 Thunars open, one after another, I had something similar while uploading photos for eBay listings too. That might be a wider desktop issue (to whatever extent) though.
Pretty funny to see though. :D

User avatar
adesh
Fanatic
Fanatic
Posts: 215
Joined: Tue Jun 06, 2017 7:38 am

Re: FD or stream not closed with tab

Postby adesh » Sat Jul 08, 2017 8:26 pm

vingtzwanzig wrote:Probably it's not doing a proper cleanup of streams or file descriptors or something, and could even be related to the multi tab crashing issues.

Closing a tab does not mean that all the resources used by the tab will be immediately freed. The browser might hold a few references to objects in order to speed things up (undo close tab?).
All the tabs run inside a single palemoon process and I think no guarantees can be made when a resource will be freed. Obviously everything is freed once the process exits.

vingtzwanzig
Moongazer
Moongazer
Posts: 8
Joined: Thu Apr 20, 2017 9:25 pm
Contact:

Re: FD or stream not closed with tab

Postby vingtzwanzig » Sun Jul 09, 2017 1:42 pm

OK, I see. Usually opening and closing files is inconsequential for performance unless it was in a fast running loop, but I suppose if you had to look up the file location then it might help to leave them open, perhaps one of the peculiarities of interfacing with the web. (Although if you were going to cache the data then you probably could still clean up the references to the original locations.) And you could possibly check if the page address was a local file or online, but whether it's even worthwhile for such a rarely encountered case is another matter.
Lucky I found a spare bug then! I don't know if Pale Moon is triggering some bug elsewhere or if it is doing something itself though, when two Thunar's turn up at once instead of one. It sounds DBUS related I think.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 19438
Joined: Sun Aug 28, 2011 5:27 pm
Location: 58.5°N 15.5°E
Contact:

Re: FD or stream not closed with tab  Topic is solved

Postby Moonchild » Sun Jul 09, 2017 1:56 pm

File locking when opening is handled by the O.S.
For various reasons, Pale Moon handles document element access through resource pools (essential for performance when reading from the web) that are not directly tied to individual tabs or documents. Closing a tab doesn't necessarily mean you are releasing the resources of elements in that document as well. There are various time-outs involved for releasing resources, and it can therefore take a while (or until end of session) for an O.S. to release its lock on a resource file that has been opened as part of a document in the browser.
Improving Mozilla code: You know you're on the right track with code changes when you spend the majority of your time deleting code.
Image

vingtzwanzig
Moongazer
Moongazer
Posts: 8
Joined: Thu Apr 20, 2017 9:25 pm
Contact:

Re: FD or stream not closed with tab

Postby vingtzwanzig » Sat Jul 15, 2017 8:11 pm

I have since found I could get the 2 Thunars opening a directory from the menu while copying photos to the directory from a USB device in the terminal at the same time, so that definitely isn't a Pale Moon issue.


Return to “Bug reports (Linux & other)”

Who is online

Users browsing this forum: No registered users and 1 guest