Cinnamon freezing with Cjs error in Firefox

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
miragon
Level 1
Level 1
Posts: 16
Joined: Mon Apr 19, 2021 8:21 am

Cinnamon freezing with Cjs error in Firefox

Post by miragon »

Hey all,

I've stumbled across this problem in cinnamon a couple of times now: I'm browsing in Firefox and at some point, my mouse begins lagging and the windows become unresponsive. Weirdly enough, my mouse usually is fine after some moments, but I can't interact with anything.
Sadly I'm not sure what triggers this, my only solution as of now is to quit the session with Ctrl+Alt+Backspace and log into a new one which is kind of a pain.
I looked into the .xsession-error logs and this is bursting with the following:

Code: Select all

(cinnamon:4733): Cjs-CRITICAL **: 12:41:26.566: JS ERROR: Error: second argument to Lang.bind() must be a functio       n, not undefined
    15 bind@resource:///org/gnome/gjs/modules/script/lang.js:75:15                     
    14 _sendNotification@/usr/share/cinnamon/js/ui/placesManager.js:169:61             
    13 _removeFinish@/usr/share/cinnamon/js/ui/placesManager.js:293:14
This easily filled 220k+ lines in the file in <3 minutes and I assume that either the error itself causes the freezing or the actual writing to the SSD.
Any hints would be appreciated, I'm personally at a loss...

System:

Code: Select all

System:    Host: Lenovo-Mint Kernel: 5.4.0-72-generic x86_64 bits: 64 Desktop: Cinnamon 4.8.6 
           Distro: Linux Mint 20.1 Ulyssa 
Machine:   Type: Convertible System: LENOVO product: 80V4 v: Lenovo YOGA 710-14IKB serial: <superuser/root required> 
           Mobo: LENOVO model: LNVNB161216 v: SDK0J40709 WIN serial: <superuser/root required> UEFI: LENOVO 
           v: 2XCN38WW(V2.12) date: 07/10/2018 
Battery:   ID-1: BAT1 charge: 27.1 Wh condition: 45.5/53.0 Wh (86%) 
CPU:       Topology: Dual Core model: Intel Core i5-7200U bits: 64 type: MT MCP L2 cache: 3072 KiB 
           Speed: 600 MHz min/max: 400/3100 MHz Core speeds (MHz): 1: 600 2: 600 3: 600 4: 600 
Graphics:  Device-1: Intel HD Graphics 620 driver: i915 v: kernel 
           Display: x11 server: X.Org 1.20.9 driver: modesetting unloaded: fbdev,vesa 
           resolution: 1920x1080~60Hz, 1920x1080~60Hz 
           OpenGL: renderer: Mesa Intel HD Graphics 620 (KBL GT2) v: 4.6 Mesa 20.2.6 
Audio:     Device-1: Intel Sunrise Point-LP HD Audio driver: snd_hda_intel 
           Device-2: Microsoft LifeCam HD-3000 type: USB driver: snd-usb-audio,uvcvideo 
           Sound Server: ALSA v: k5.4.0-72-generic 
Network:   Device-1: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter driver: ath10k_pci 
           IF: wlp1s0 state: up mac: 58:00:e3:de:ac:cf 
           Device-2: Qualcomm Atheros type: USB driver: btusb 
           IF-ID-1: tun0 state: unknown speed: 10 Mbps duplex: full mac: N/A 
Drives:    Local Storage: total: 238.47 GiB used: 208.70 GiB (87.5%) 
           ID-1: /dev/sda vendor: LITE-ON model: CV3-8D256 size: 238.47 GiB 
Partition: ID-1: / size: 233.24 GiB used: 88.41 GiB (37.9%) fs: ext4 dev: /dev/sda2 
Sensors:   System Temperatures: cpu: 34.5 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Info:      Processes: 236 Uptime: 4h 40m Memory: 7.50 GiB used: 2.11 GiB (28.1%) Shell: zsh inxi: 3.0.38
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
SMG
Level 25
Level 25
Posts: 31304
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Cinnamon freezing with Cjs error in Firefox

Post by SMG »

miragon wrote: Thu May 06, 2021 7:24 amI've stumbled across this problem in cinnamon a couple of times now: I'm browsing in Firefox and at some point, my mouse begins lagging and the windows become unresponsive. Weirdly enough, my mouse usually is fine after some moments, but I can't interact with anything.
Have you noticed if memory usage is high?
miragon wrote: Thu May 06, 2021 7:24 amISadly I'm not sure what triggers this, my only solution as of now is to quit the session with Ctrl+Alt+Backspace and log into a new one which is kind of a pain.
That restarts the X Server (graphics). It's my understanding you can restart Cinnamon with Ctl-Alt-Escape.
miragon wrote: Thu May 06, 2021 7:24 am I looked into the .xsession-error logs and this is bursting with the following:

Code: Select all

(cinnamon:4733): Cjs-CRITICAL **: 12:41:26.566: JS ERROR: Error: second argument to Lang.bind() must be a functio       n, not undefined
    15 bind@resource:///org/gnome/gjs/modules/script/lang.js:75:15                     
    14 _sendNotification@/usr/share/cinnamon/js/ui/placesManager.js:169:61             
    13 _removeFinish@/usr/share/cinnamon/js/ui/placesManager.js:293:14
This easily filled 220k+ lines in the file in <3 minutes and I assume that either the error itself causes the freezing or the actual writing to the SSD.
Any hints would be appreciated, I'm personally at a loss...
This looks to be the same issue as in this thread cinnamon runaway memory problem.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
miragon
Level 1
Level 1
Posts: 16
Joined: Mon Apr 19, 2021 8:21 am

Re: Cinnamon freezing with Cjs error in Firefox

Post by miragon »

Looks very similar!
I'll try Ctrl+Alt+Esc next time around, thanks for the tip :)
I can't say anything about the memory usage, as the whole machine freezes up so badly that I can't even bring up a terminal for htop :o
gittiest personITW
Level 12
Level 12
Posts: 4289
Joined: Tue May 28, 2019 4:27 pm

Re: Cinnamon freezing with Cjs error in Firefox

Post by gittiest personITW »

Well you did say you were browsing in FF when the problem happens - so lets start from there.



1) How many tabs are open in FF when the problem happens - and are you doing anything like streaming movies etc?
2) try a restarting FF with addons disabled - menu/help/Restart with addons disabled.2)
3)Try a different browser and see if the same thing happens - it is very easy to install/remove software using Software Manager so don't worry about that.
miragon
Level 1
Level 1
Posts: 16
Joined: Mon Apr 19, 2021 8:21 am

Re: Cinnamon freezing with Cjs error in Firefox

Post by miragon »

Hey, I realized that it is not strictly connected to FF, also happened while just looking at a PDF in okular... I think the thread SMG pointed to has it right, it also references a blogpost (https://blog.linuxmint.com/?p=4037) so I guess I'll go with that and see what it leads to :)
-Michel-

Re: Cinnamon freezing with Cjs error in Firefox

Post by -Michel- »

Back in 2014 with Linux Mint 17.0 - 17.3 Cinnamon i had alot of freezes too. Maybe it has something to do with your videocard ???

viewtopic.php?f=59&p=963852#p960488 and viewtopic.php?p=963852#p963852
miragon
Level 1
Level 1
Posts: 16
Joined: Mon Apr 19, 2021 8:21 am

Re: Cinnamon freezing with Cjs error in Firefox

Post by miragon »

Might be a reason for some freezes but does not apply to my machine as I only have the integrated graphics chip from intel and nothing by Nvidia..
Thanks anyways!
Locked

Return to “Cinnamon”