#StackBounty: #windows-10 #command-line #freeze #threads Console program randomly freezes

Bounty: 50

On my Windows10 laptop, I run a simple USB camera snapshot program, commandcam.exe (from https://batchloaf.wordpress.com/commandcam/), in a console .cmd script, which has one line:

FOR /l %%i in (1,1,1000000) DO FOR /F "usebackq delims==" %%G IN (`c:systoolsdate "+%%Y%%m%%d-%%H%%M%%S"`) DO commandcam /devnum 2 /filename %%G.bmp /quiet & sleep 55

where date.exe and sleep.exe in my c:systools were downloaded from http://unxutils.sourceforge.net Basically, the commandcam program creates files like 20210911-113214.bmp and sleeps 55 seconds and repeats. But once every few hours to a few days, my script freezes, with a blinking cursor. (This is absolutely unrelated to the problem that you accidentally click somewhere in the console to put it in text select mode. Note: my cursor always blinks)

I extensively checked all messages in the event viewer corresponding to the time it started to freeze. Found none relevant. Checked all processes with a start time corresponding to that time with a sysinternals tool pslist. Found only one, which is a new cmd.exe shown below (pid 22264 here):

cmd.exe (pid 16364)
  conhost.exe
  cmd.exe (pid 22264) <-- this one started when my cmd script froze

I notice when my script works, the parent cmd (16364) spawns commandcam, which takes a camera shot and exits, then the cmd spawns sleep; there will not be a new cmd process. When I see this new cmd, the script freezes. In case it helps, here’s more info about this new cmd process:

pslist v1.28 - Sysinternals PsList
Copyright ⌐ 2000-2004 Mark Russinovich
Sysinternals

Process and thread information for <my laptop>:

Name                Pid Pri Thd  Hnd   Priv        CPU Time    Elapsed Time
cmd               22264   8   1  136  83040     0:00:00.046     4:24:07.933
                      VM      WS    Priv Priv Pk   Faults NonP Page
                 4194303    6856   83040   84512     2561   11  133
 Tid Pri    Cswtch            State     User Time   Kernel Time   Elapsed Time
19500   9        94     Wait:UserReq  0:00:00.000   0:00:00.031    4:24:07.933

I notice that its private memory is kind of high (83040 KB). So I checked with Task Manager, which shows:

Mem active private ws 12K; private ws 12K; shared ws 6776K; Paged pool: 133K; NP pool: 11K; Handles: 136

There’s great difference between pslist and Windows’ Task Manager (only 12 KB). I think it’s because pslist shows virtual private memory while Task Manager shows working set.

I don’t know what else I can check. The "Wait:UserReq" process state is normal. By the way, I find that if I use Process Explorer and try to examine the thread call stack of this new cmd process, this process will be gone and commandcam will start, followed by sleep 55 seconds, … i.e. everything will be back to normal. I don’t know why. It’s like checking the thread stack triggers something and it breaks the hang.


Get this bounty!!!

#StackBounty: #linux-mint #macintosh #shutdown #freeze #kernel-panic MacBook 4,1 running Linux Mint Freezes on shutdown

Bounty: 100

enter image description hereenter image description hereI recently installed Linux Mint on a 2008 MacBook 4,1. It mostly works well but the shutdown process sometimes gets stuck right at the end.
I have searched around for a solution and have so far increased the default shutdown limit from 10s to 100s and also blacklisted the USB2 drivers (USB ports still work fine using the USB3 drivers). The problem happens about half the time. I dual boot with Mac OS X 10.7.5 and use ReFind as a boot manager although I can also boot from Grub.
From neofetch:

OS: Linux Mint 20.2 x86_64
Host: MacBook4,1 1.0
Kernel: 5.4.0-81-generic
Packages: 2371 (dpkg), 5 (flatpak)
Shell: bash 5.0.17
Resolution: 1280x800
DE: Xfce
WM: Xfwm4
WM Theme: Mint-Y
Theme: Mint-Y [GTK2/3]
Icons: Mint-Y [GTK2/3]
Terminal: xfce4-terminal
Terminal Font: Monospace 12
CPU: Intel Core 2 Duo T8300 (2) @ 2.4 GHz
GPU: Intel Mobile GM965/GL960
Memory: 1431MiB / 3916MiB

I took a photo of the screen after it froze which might show what I need to do to fix it. I hope I posted in the right section.
Thanks in advance for any tips.

If not a fix for this particular problem, are there any configuration changes that would force the MacBook to shut down once the "Reached target power off" is posted. The second picture shows a kernel panic left as the last message before it froze.


Get this bounty!!!

#StackBounty: #macos #keyboard #terminal #freeze Mac freezes for a split-second, whenever I'm pressing CapsLock (Escape). How to re…

Bounty: 50

TL;DR: How do I reboot my keyboard input device? Or reload the drivers? Obviously, a permanent solution to this would be awesome. But I’m trying to find a way to get past this, without having to restart my computer.


On my Mac from 2019, I have mapped CapsLock to Escape (in System Settings >> Keyboard >> Modifier Keys). And I’m using it quite a lot, since I’m using Vim a lot (lots of ‘Escape’s).

But there is this wierd bug, where if I press CapsLock, then the whole system freezes for half a second.
What’s super-wierd is, that the bug isn’t there if I just press the regular Esc-key – it’s only the CapsLock-key that triggers the freeze.

It’s super-annoying, since when in my IDE (with Vim-mode), when I press CapsLock j j j (wanting to escape input-mode and go down 3 lines, then it jumps and then skips down 3 lines in one go.

I thought that it was just my IDE being wierd, but I noticed that if I put on a video on another screen, then it does that same same little ‘jump’, every time I press CapsLock (Escape).

A simple reboot of my computer does the job. I also tried reseting the NVRAM (restart and hold down CMD Option P and R), and that also fixes it (then). But it comes back on a regular basis. It started occuring 10 days ago, and has happend 4 times now.

Can I somehow restart / reset my input device, without having to restart my entire computer?
Or can I output somehow, what application/process ‘locks’/’freezes’ my computer on a certain point in time?


Other info + solution attempts

  • It occurs both on my external keyboard and on the built-in one (exactly same bug).
  • I have two offices, and it has happend on both external keyboards (in either office), so it must be some system-wide stuff.
  • I have tried quitting all applications, so it was only my IDE and my browser being open, and it still happens.
  • OS-version: 11.5.1 (Big Sur)
  • If I’m in a browser an simply scroll down. And while the browser is in motion, press the CapsLock-key, then it jerks for a second as well. This doesn’t happen if I simply click the escape-button.


Get this bounty!!!

#StackBounty: #macos #keyboard #terminal #freeze Mac freezes for a split-second, whenever I'm pressing CapsLock (Escape). How to re…

Bounty: 50

TL;DR: How do I reboot my keyboard input device? Or reload the drivers? Obviously, a permanent solution to this would be awesome. But I’m trying to find a way to get past this, without having to restart my computer.


On my Mac from 2019, I have mapped CapsLock to Escape (in System Settings >> Keyboard >> Modifier Keys). And I’m using it quite a lot, since I’m using Vim a lot (lots of ‘Escape’s).

But there is this wierd bug, where if I press CapsLock, then the whole system freezes for half a second.
What’s super-wierd is, that the bug isn’t there if I just press the regular Esc-key – it’s only the CapsLock-key that triggers the freeze.

It’s super-annoying, since when in my IDE (with Vim-mode), when I press CapsLock j j j (wanting to escape input-mode and go down 3 lines, then it jumps and then skips down 3 lines in one go.

I thought that it was just my IDE being wierd, but I noticed that if I put on a video on another screen, then it does that same same little ‘jump’, every time I press CapsLock (Escape).

A simple reboot of my computer does the job. I also tried reseting the NVRAM (restart and hold down CMD Option P and R), and that also fixes it (then). But it comes back on a regular basis. It started occuring 10 days ago, and has happend 4 times now.

Can I somehow restart / reset my input device, without having to restart my entire computer?
Or can I output somehow, what application/process ‘locks’/’freezes’ my computer on a certain point in time?


Other info + solution attempts

  • It occurs both on my external keyboard and on the built-in one (exactly same bug).
  • I have two offices, and it has happend on both external keyboards (in either office), so it must be some system-wide stuff.
  • I have tried quitting all applications, so it was only my IDE and my browser being open, and it still happens.
  • OS-version: 11.5.1 (Big Sur)
  • If I’m in a browser an simply scroll down. And while the browser is in motion, press the CapsLock-key, then it jerks for a second as well. This doesn’t happen if I simply click the escape-button.


Get this bounty!!!

#StackBounty: #macos #keyboard #terminal #freeze Mac freezes for a split-second, whenever I'm pressing CapsLock (Escape). How to re…

Bounty: 50

TL;DR: How do I reboot my keyboard input device? Or reload the drivers? Obviously, a permanent solution to this would be awesome. But I’m trying to find a way to get past this, without having to restart my computer.


On my Mac from 2019, I have mapped CapsLock to Escape (in System Settings >> Keyboard >> Modifier Keys). And I’m using it quite a lot, since I’m using Vim a lot (lots of ‘Escape’s).

But there is this wierd bug, where if I press CapsLock, then the whole system freezes for half a second.
What’s super-wierd is, that the bug isn’t there if I just press the regular Esc-key – it’s only the CapsLock-key that triggers the freeze.

It’s super-annoying, since when in my IDE (with Vim-mode), when I press CapsLock j j j (wanting to escape input-mode and go down 3 lines, then it jumps and then skips down 3 lines in one go.

I thought that it was just my IDE being wierd, but I noticed that if I put on a video on another screen, then it does that same same little ‘jump’, every time I press CapsLock (Escape).

A simple reboot of my computer does the job. I also tried reseting the NVRAM (restart and hold down CMD Option P and R), and that also fixes it (then). But it comes back on a regular basis. It started occuring 10 days ago, and has happend 4 times now.

Can I somehow restart / reset my input device, without having to restart my entire computer?
Or can I output somehow, what application/process ‘locks’/’freezes’ my computer on a certain point in time?


Other info + solution attempts

  • It occurs both on my external keyboard and on the built-in one (exactly same bug).
  • I have two offices, and it has happend on both external keyboards (in either office), so it must be some system-wide stuff.
  • I have tried quitting all applications, so it was only my IDE and my browser being open, and it still happens.
  • OS-version: 11.5.1 (Big Sur)
  • If I’m in a browser an simply scroll down. And while the browser is in motion, press the CapsLock-key, then it jerks for a second as well. This doesn’t happen if I simply click the escape-button.


Get this bounty!!!

#StackBounty: #macos #keyboard #terminal #freeze Mac freezes for a split-second, whenever I'm pressing CapsLock (Escape). How to re…

Bounty: 50

TL;DR: How do I reboot my keyboard input device? Or reload the drivers? Obviously, a permanent solution to this would be awesome. But I’m trying to find a way to get past this, without having to restart my computer.


On my Mac from 2019, I have mapped CapsLock to Escape (in System Settings >> Keyboard >> Modifier Keys). And I’m using it quite a lot, since I’m using Vim a lot (lots of ‘Escape’s).

But there is this wierd bug, where if I press CapsLock, then the whole system freezes for half a second.
What’s super-wierd is, that the bug isn’t there if I just press the regular Esc-key – it’s only the CapsLock-key that triggers the freeze.

It’s super-annoying, since when in my IDE (with Vim-mode), when I press CapsLock j j j (wanting to escape input-mode and go down 3 lines, then it jumps and then skips down 3 lines in one go.

I thought that it was just my IDE being wierd, but I noticed that if I put on a video on another screen, then it does that same same little ‘jump’, every time I press CapsLock (Escape).

A simple reboot of my computer does the job. I also tried reseting the NVRAM (restart and hold down CMD Option P and R), and that also fixes it (then). But it comes back on a regular basis. It started occuring 10 days ago, and has happend 4 times now.

Can I somehow restart / reset my input device, without having to restart my entire computer?
Or can I output somehow, what application/process ‘locks’/’freezes’ my computer on a certain point in time?


Other info + solution attempts

  • It occurs both on my external keyboard and on the built-in one (exactly same bug).
  • I have two offices, and it has happend on both external keyboards (in either office), so it must be some system-wide stuff.
  • I have tried quitting all applications, so it was only my IDE and my browser being open, and it still happens.
  • OS-version: 11.5.1 (Big Sur)
  • If I’m in a browser an simply scroll down. And while the browser is in motion, press the CapsLock-key, then it jerks for a second as well. This doesn’t happen if I simply click the escape-button.


Get this bounty!!!

#StackBounty: #macos #keyboard #terminal #freeze Mac freezes for a split-second, whenever I'm pressing CapsLock (Escape). How to re…

Bounty: 50

TL;DR: How do I reboot my keyboard input device? Or reload the drivers? Obviously, a permanent solution to this would be awesome. But I’m trying to find a way to get past this, without having to restart my computer.


On my Mac from 2019, I have mapped CapsLock to Escape (in System Settings >> Keyboard >> Modifier Keys). And I’m using it quite a lot, since I’m using Vim a lot (lots of ‘Escape’s).

But there is this wierd bug, where if I press CapsLock, then the whole system freezes for half a second.
What’s super-wierd is, that the bug isn’t there if I just press the regular Esc-key – it’s only the CapsLock-key that triggers the freeze.

It’s super-annoying, since when in my IDE (with Vim-mode), when I press CapsLock j j j (wanting to escape input-mode and go down 3 lines, then it jumps and then skips down 3 lines in one go.

I thought that it was just my IDE being wierd, but I noticed that if I put on a video on another screen, then it does that same same little ‘jump’, every time I press CapsLock (Escape).

A simple reboot of my computer does the job. I also tried reseting the NVRAM (restart and hold down CMD Option P and R), and that also fixes it (then). But it comes back on a regular basis. It started occuring 10 days ago, and has happend 4 times now.

Can I somehow restart / reset my input device, without having to restart my entire computer?
Or can I output somehow, what application/process ‘locks’/’freezes’ my computer on a certain point in time?


Other info + solution attempts

  • It occurs both on my external keyboard and on the built-in one (exactly same bug).
  • I have two offices, and it has happend on both external keyboards (in either office), so it must be some system-wide stuff.
  • I have tried quitting all applications, so it was only my IDE and my browser being open, and it still happens.
  • OS-version: 11.5.1 (Big Sur)
  • If I’m in a browser an simply scroll down. And while the browser is in motion, press the CapsLock-key, then it jerks for a second as well. This doesn’t happen if I simply click the escape-button.


Get this bounty!!!

#StackBounty: #macos #keyboard #terminal #freeze Mac freezes for a split-second, whenever I'm pressing CapsLock (Escape). How to re…

Bounty: 50

TL;DR: How do I reboot my keyboard input device? Or reload the drivers? Obviously, a permanent solution to this would be awesome. But I’m trying to find a way to get past this, without having to restart my computer.


On my Mac from 2019, I have mapped CapsLock to Escape (in System Settings >> Keyboard >> Modifier Keys). And I’m using it quite a lot, since I’m using Vim a lot (lots of ‘Escape’s).

But there is this wierd bug, where if I press CapsLock, then the whole system freezes for half a second.
What’s super-wierd is, that the bug isn’t there if I just press the regular Esc-key – it’s only the CapsLock-key that triggers the freeze.

It’s super-annoying, since when in my IDE (with Vim-mode), when I press CapsLock j j j (wanting to escape input-mode and go down 3 lines, then it jumps and then skips down 3 lines in one go.

I thought that it was just my IDE being wierd, but I noticed that if I put on a video on another screen, then it does that same same little ‘jump’, every time I press CapsLock (Escape).

A simple reboot of my computer does the job. I also tried reseting the NVRAM (restart and hold down CMD Option P and R), and that also fixes it (then). But it comes back on a regular basis. It started occuring 10 days ago, and has happend 4 times now.

Can I somehow restart / reset my input device, without having to restart my entire computer?
Or can I output somehow, what application/process ‘locks’/’freezes’ my computer on a certain point in time?


Other info + solution attempts

  • It occurs both on my external keyboard and on the built-in one (exactly same bug).
  • I have two offices, and it has happend on both external keyboards (in either office), so it must be some system-wide stuff.
  • I have tried quitting all applications, so it was only my IDE and my browser being open, and it still happens.
  • OS-version: 11.5.1 (Big Sur)
  • If I’m in a browser an simply scroll down. And while the browser is in motion, press the CapsLock-key, then it jerks for a second as well. This doesn’t happen if I simply click the escape-button.


Get this bounty!!!

#StackBounty: #macos #keyboard #terminal #freeze Mac freezes for a split-second, whenever I'm pressing CapsLock (Escape). How to re…

Bounty: 50

TL;DR: How do I reboot my keyboard input device? Or reload the drivers? Obviously, a permanent solution to this would be awesome. But I’m trying to find a way to get past this, without having to restart my computer.


On my Mac from 2019, I have mapped CapsLock to Escape (in System Settings >> Keyboard >> Modifier Keys). And I’m using it quite a lot, since I’m using Vim a lot (lots of ‘Escape’s).

But there is this wierd bug, where if I press CapsLock, then the whole system freezes for half a second.
What’s super-wierd is, that the bug isn’t there if I just press the regular Esc-key – it’s only the CapsLock-key that triggers the freeze.

It’s super-annoying, since when in my IDE (with Vim-mode), when I press CapsLock j j j (wanting to escape input-mode and go down 3 lines, then it jumps and then skips down 3 lines in one go.

I thought that it was just my IDE being wierd, but I noticed that if I put on a video on another screen, then it does that same same little ‘jump’, every time I press CapsLock (Escape).

A simple reboot of my computer does the job. I also tried reseting the NVRAM (restart and hold down CMD Option P and R), and that also fixes it (then). But it comes back on a regular basis. It started occuring 10 days ago, and has happend 4 times now.

Can I somehow restart / reset my input device, without having to restart my entire computer?
Or can I output somehow, what application/process ‘locks’/’freezes’ my computer on a certain point in time?


Other info + solution attempts

  • It occurs both on my external keyboard and on the built-in one (exactly same bug).
  • I have two offices, and it has happend on both external keyboards (in either office), so it must be some system-wide stuff.
  • I have tried quitting all applications, so it was only my IDE and my browser being open, and it still happens.
  • OS-version: 11.5.1 (Big Sur)
  • If I’m in a browser an simply scroll down. And while the browser is in motion, press the CapsLock-key, then it jerks for a second as well. This doesn’t happen if I simply click the escape-button.


Get this bounty!!!

#StackBounty: #windows #laptop #freeze Dell Laptop partially freezes sometimes, audio and double key press stops working

Bounty: 50

As the title suggests, the laptop partially freezes randomly. By partially freezes, I mean that some functionality stops or glitches. The glitches I have identified so far are:

  1. audio stops working
  2. most importantly, multiple key-presses do not work. i.e. if I press any key twice, only one of them is registered, the next keypress is ignored. Other keys would respond, but the same key does not.
  3. on trying to shut it down, it goes to the purple shutdown page (the standard ubuntu shutdown screen), and is stuck there indefinitely.
  4. On unplugging my charger, the system stops and powers down immediately. (My battery is very poor, so I have to leave my laptop plugged in always, battery lasts for about 5-10 mins max)

The system continues working in this glitchy manner until I unplug the charger.

I’m not entirely convinced that this is an OS issue, since I have encountered this on Windows and Ubuntu, and occasionally even on the grub menu on powering on (multiple down arrow to navigate to a different OS does not work sometimes)

Also, completely formatted my hard drive recently, installing only windows. Encountered this problem in the fresh setup as well.

There is no fixed time period after which this glitch occurs, it is completely random, and I cannot really identify any trigger as well.

Is this a fairly common problem, has anyone come across this? Any solutions? Not entirely sure, but it seems to be a hardware issue. But don’t know which hardware is causing this issue, if it is a hardware one. How can I diagnose this issue further?


Get this bounty!!!