You are not logged in.

#1 2021-07-10 02:39:46

sexynsmartjenny
Member
From: Boston, MA
Registered: 2016-07-17
Posts: 157

google-chrome freezes after mounting external hard drive

Hi dear friend:

This is a very strange twitch that I noticed. So, whenever while my google chrome web browser is open, and then I mount an external drive, then chrome freezes and I have to restart the google chrome.

It doesn't happen with firefox or opera, just with google chrome.

Does any one know why?

Offline

#2 2021-07-10 11:58:28

twoion
一期一会
Registered: 2015-08-10
Posts: 3,399

Re: google-chrome freezes after mounting external hard drive

As to why, you'd need to debug the Chrome process for that.

As to how to solve it, I'd do:

- copy the .desktop used to launch Chrome to ~/.local/share/applications/
- install firejail
- edit the Exec= line in the copied desktop file by prefixing the command simply with "firejail", for example Exec=firejail google-chrome %u
- launch google-chrome using the new desktop file, ideally the application menu updates itself to use the new .desktop file

Firejail sandboxes the Google Chrome process and prevents it from accessing any personal data folder except ~/Downloads by default. So this experiment would servce to confirm that the behaviour is because Chrome tries to do something.

Worst case this is something to do with GTK with which Chrome integrates to access the file system etc.

Offline

#3 2021-07-17 10:00:11

sexynsmartjenny
Member
From: Boston, MA
Registered: 2016-07-17
Posts: 157

Re: google-chrome freezes after mounting external hard drive

@twoion

Before I do that I just want to make sure this process is not going to cause any harm, right? My pc won't be completely frozen or anything, right?

And also, I don't have a .desktop icon that opens google chrome. I just right click and select "Web Browser" ...

Offline

#4 2021-07-23 12:15:02

ohnonot
...again
Registered: 2015-09-29
Posts: 5,568

Re: google-chrome freezes after mounting external hard drive

^ so, did it help? Curious minds want to know...


Give to COVAX! Here or here. (explanation)
My Repos: notabug | framagit

Offline

#5 2021-07-24 14:57:14

sexynsmartjenny
Member
From: Boston, MA
Registered: 2016-07-17
Posts: 157

Re: google-chrome freezes after mounting external hard drive

@twoion

desktop used to launch Chrome

where do I find the desktop icon used to launch Chrome?

Offline

#6 2021-07-24 21:33:25

beaker
Unverified Muppet
Registered: 2016-03-06
Posts: 174

Re: google-chrome freezes after mounting external hard drive

/usr/share/applications

Offline

#7 2021-07-31 23:58:28

sexynsmartjenny
Member
From: Boston, MA
Registered: 2016-07-17
Posts: 157

Re: google-chrome freezes after mounting external hard drive

okay, so I did that, and my exec line is "Exec=firejail /usr/bin/google-chrome-stable --incognito"

Let's hope it works. And just btw, I usually launch my google chrome by left click and hit "browser." And this method automatically updates the "browser" button in my left click, right?

Offline

#8 2021-08-08 12:56:21

sexynsmartjenny
Member
From: Boston, MA
Registered: 2016-07-17
Posts: 157

Re: google-chrome freezes after mounting external hard drive

it didn't work sad

google chrome still freezes when the external hard drive is turned on for the first time.

Offline

#9 2021-08-08 14:34:14

rbh
Moderator
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 1,304

Re: google-chrome freezes after mounting external hard drive

sexynsmartjenny wrote:

it didn't work sad

google chrome still freezes when the external hard drive is turned on for the first time.

Does chrome freeze when you turn on the external drive, or as you stated before, when you mount the extrnal drive?

"turned on for the first time", does that mean that if you unmount the drive, turn it off and then again turn it on (and mount), chrome does not hang?

Does all other applications work ok? Have you run "glances" and checked cpu, disk io etc?


// Regards rbh

Please read before requesting help: Guide to getting help,
Introduction to the Bunsenlabs Lithium Desktop and other help topics under "Help Resources" on the BunsenLabs menu

Online

#10 2021-08-08 14:35:07

rbh
Moderator
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 1,304

Re: google-chrome freezes after mounting external hard drive

Is it the same behaviour for Chromium?


// Regards rbh

Please read before requesting help: Guide to getting help,
Introduction to the Bunsenlabs Lithium Desktop and other help topics under "Help Resources" on the BunsenLabs menu

Online

#11 2021-08-08 21:49:47

sexynsmartjenny
Member
From: Boston, MA
Registered: 2016-07-17
Posts: 157

Re: google-chrome freezes after mounting external hard drive

rbh wrote:

Is it the same behaviour for Chromium?

I think Chromium doesn't have this issue. Of course, I can always doubt check.

Offline

Board footer

Powered by FluxBB