Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/tmp filling with hundreds of gm-temp directories #2017

Closed
liujed opened this issue Sep 7, 2014 · 8 comments
Closed

/tmp filling with hundreds of gm-temp directories #2017

liujed opened this issue Sep 7, 2014 · 8 comments
Milestone

Comments

@liujed
Copy link

liujed commented Sep 7, 2014

I have Greasemonkey 2.2 installed on Firefox 31 on Linux. As I browse the web, over time, my /tmp directory fills with hundreds of gm-temp directories (e.g., gm-temp, gm-temp-1, gm-temp-2, ...), each with a zero-byte gm_script file. During my current browsing session, I have observed six of these directories being created, even as my browser sits idle.

@janekptacijarabaci
Copy link
Contributor

The cause is different, but the result is almost the same (contains all downloaded files - non-zero byte files):

Temporary directory is not deleted when showing the source code:
modules/remoteScript.js
RemoteScript.prototype.showSource()

...when the user closes the tab.

Ventero added a commit to Ventero/greasemonkey that referenced this issue Sep 7, 2014
@Ventero
Copy link
Contributor

Ventero commented Sep 7, 2014

Ventero@f78a790 ensures that RemoteScript#cleanup is called when the tab is closed (unless it's closed by the script installation process).

@arantius arantius added this to the 2.3 milestone Sep 7, 2014
@arantius
Copy link
Collaborator

arantius commented Oct 2, 2014

I can confirm that view source on the script can cause this. But it's not just that. I also can see dozens of gm-temp directories created in a session where I never use view source.

arantius pushed a commit to arantius/greasemonkey that referenced this issue Oct 2, 2014
@arantius
Copy link
Collaborator

arantius commented Oct 2, 2014

I lost a big carefully documented comment. Oh well, the short version: I see Sync support doing this; every 10 minutes I get 4 empty gm-temp directories and the error from #2014 logged. @liujed do you have Firefox Sync enabled?

If so I think #2014 might obsolete (the rest of) this.

@intgr
Copy link

intgr commented Oct 2, 2014

I get hundreds of /tmp/gm-temp-X directories and I haven't used the "view source" in GreaseMonkey. I have Firefox Sync enabled.

@liujed
Copy link
Author

liujed commented Oct 2, 2014

@arantius I do indeed have FF Sync enabled.

@arantius
Copy link
Collaborator

It appears that Fixing #2014 obsoleted this.

@arantius
Copy link
Collaborator

(At least, along with Ventero's fix above.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants