Windows crash on suspend/hibernate with TCMD active

Jun 26, 2008
38
1
Windows 7 Home Premium 64-bit, TCMD 11x64.

I've been using Windows 7 for about three months, and in that time I've had quite a few Windows crashes on hibernate or, less often, on suspend. The thing all have in common is that TCMD was running at the time of the suspend/hibernate. If TCMD is not running, the crash never happens.

That does not mean that every suspend/hibernate with TCMD running crashes Windows; I'm not sure, and I don't like the idea of purposefully crashing Windows to test it.
 

rconn

Administrator
Staff member
May 14, 2008
12,345
150
> Windows 7 Home Premium 64-bit, TCMD 11x64.
>
> I've been using Windows 7 for about three months, and in that time I've
> had quite a few Windows crashes on hibernate or, less often, on
> suspend. The thing all have in common is that TCMD was running at the
> time of the suspend/hibernate. If TCMD is not running, the crash never
> happens.
>
> That does not mean that every suspend/hibernate with TCMD running
> crashes Windows; I'm not sure, and I don't like the idea of
> purposefully crashing Windows to test it.

There's no way that TCMD could be responsible for that. (Unless Microsoft
has reverted to MS-DOS and somehow removed all distinctions between kernel
and user mode!)

TCMD has no kernel mode components, and is thus incapable of causing a
Windows crash.

Rex Conn
JP Software
 
Jun 26, 2008
38
1
TCMD has no kernel mode components, and is thus incapable of causing a Windows crash.

I cannot know whether TCMD is triggering a Windows bug; likely. But what I've reported is my direct experience. Perhaps you can figure it out and work around it, as you've done for many other Windows bugs.
 

rconn

Administrator
Staff member
May 14, 2008
12,345
150
> ---Quote (Originally by rconn)---
> TCMD has no kernel mode components, and is thus incapable of causing a
> Windows crash.
> ---End Quote---
> I cannot know whether TCMD is triggering a Windows bug; likely. But
> what I've reported is my direct experience. Perhaps you can figure it
> out and work around it, as you've done for many other Windows bugs.

I wouldn't get your hopes up. Both the hardware and Windows make it
impossible for TCMD to be doing this or even involved in any way. If there
were a catastrophic Windows 7 & Intel hardware bug that allowed a user-mode
app to crash the kernel, it's unlikely that no other TCMD users would have
reported it.

You'd be better off spending your time looking for the real culprit, which
is most likely a device driver (probably your video driver; that's what
causes most crashes when waking from hibernation).

Rex Conn
JP Software
 
Jun 26, 2008
38
1
Both the hardware and Windows make it
impossible for TCMD to be doing this or even involved in any way. If there
were a catastrophic Windows 7 & Intel hardware bug that allowed a user-mode
app to crash the kernel, it's unlikely that no other TCMD users would have
reported it.

There's no need for a hardware bug. Even if what crashes is a driver (I suppose so, yes), some user-mode code could be calling a system-level API in an unusual (but correct) way that invokes a low used code path. There's a difference between saying "the user code cannot bring the system down" and "the user code cannot ask for something reasonable and just trigger a bug in system-land".

You'd be better off spending your time looking for the real culprit, which is most likely a device driver (probably your video driver; that's what causes most crashes when waking from hibernation).
Well, my crash is on suspending, not waking. And there's the inescapable fact that it only seems to happen when TCMD is running.
 

rconn

Administrator
Staff member
May 14, 2008
12,345
150
> Well, my crash is on suspending, not waking. And there's the
> inescapable fact that it only seems to happen when TCMD is running.

But you have to contrast your "seems to happen" with the inescapable fact
that it's absolutely impossible (both hardware + OS) for TCMD to be
involved, and the fact that you're apparently the only one suffering the
problem. You should be looking at your system configuration & device
drivers, and any apps you're running that have kernel-mode components (like
antivirus apps or screen managers).

Google shows a couple hundred thousand matches for Windows 7 crashes when
sleeping or hibernating (none of them mentioning TCMD).

Rex Conn
JP Software
 
Nov 13, 2008
255
3
www.thedave.me
On Fri, 01 Jan 2010 04:59:39 -0600, Juanma Barranquero
<> was claimed to have wrote:


>---Quote (Originally by rconn)---
>the inescapable fact
>that it's absolutely impossible (both hardware + OS) for TCMD to be
>involved
>---End Quote---
>No, sorry, it's not absolutely impossible.

With all due respect, it is impossible for TCMD to be the cause of the
crash. Bluescreens and similar can only happen due to bad or buggy
hardware or kernel mode processes.

Although a user mode process might be involved, the bug is always in the
kernel or code running in kernel mode, the kernel simply isn't allowed
to allow a user mode process to interfere at the system level.

Display drivers are responsible for some huge percentage of bluescreens
so they're always a good place to start looking. It's possible that
your display driver crashes due to the way TCMD creates toolbars, or due
to some attribute set on the window class or similar, but ultimately,
that's a buggy driver and must be addressed there.

Address the underlying crash and the problem will go away, anything else
is a Band-Aid.
 
Jun 26, 2008
38
1
With all due respect, it is impossible for TCMD to be the cause of the crash. Bluescreens and similar can only happen due to bad or buggy hardware or kernel mode processes.

Although a user mode process might be involved, the bug is always in the
kernel or code running in kernel mode, the kernel simply isn't allowed
to allow a user mode process to interfere at the system level.

With all due respect, that's why I wrote that it is not impossible at all for TCMD to be involved; I said nothing about it being the cause, on the contrary, I said that I think it is just triggering the bug.

It's possible that your display driver crashes due to the way TCMD creates toolbars, or due to some attribute set on the window class or similar, but ultimately, that's a buggy driver and must be addressed there.
I'm glad we agree.
 
Windows 7 Home Premium 64-bit, TCMD 11x64.

I've been using Windows 7 for about three months, and in that time I've had quite a few Windows crashes on hibernate or, less often, on suspend. The thing all have in common is that TCMD was running at the time of the suspend/hibernate. If TCMD is not running, the crash never happens.

That does not mean that every suspend/hibernate with TCMD running crashes Windows; I'm not sure, and I don't like the idea of purposefully crashing Windows to test it.

Hi,
While I use XP, you may want to create a batch file using the ON RESUME and ON SUSPEND commands in a detached batch file to see what is going on. You could use TASKLIST.EXE to capture what is running when the system goes to sleep or hibernates, and when the system resumes from sleep or hibernate.

Normally you would use the internal TASKLIST provided by TCC, but if I remember correctly from another post, Rex said that the /L option does not work in 64-bit Vista and above. As I do not have Vista or above, not sure if TASKLIST.EXE is still available in those OSes.

TASKLIST.EXE /SVC will provide you with a list of what processes are running.

I had a problem similar to yours, and it turned out to be one of the processes for my HP Printer. I upgraded the printer drivers, and have not had the problem since then.

Joe
 
Jun 26, 2008
38
1
you may want to create a batch file using the ON RESUME and ON SUSPEND commands in a detached batch file to see what is going on. You could use TASKLIST.EXE to capture what is running when the system goes to sleep or hibernates, and when the system resumes from sleep or hibernate.

I'll do that, thanks for the suggestion.

if I remember correctly from another post, Rex said that the /L option does not work in 64-bit Vista and above.
I also remember him saying that, but "tasklist /L" seems to work as expected on 64-bit Windows 7.
 
Similar threads
Thread starter Title Forum Replies Date
dcantor TCMD crash after upgrading to Windows 10 Support 26
7 TCC startup crash in Windows 8 Pro x64 Support 20
J Crash in 12.00.27: Running any git command from Git for Windows Support 10
Juanma Barranquero Several nitpicks and a crash in TCMD 11 x64 / Windows 7 Support 17
thorntonpg windows 11 Support 12
vefatica Windows 10 themes Support 0
J Take command does not start on Windows 10 Support 3
D How to? Windows Key-Left and Windows Key-Right Support 9
Joe Caverly PYTHON from Microsoft Windows Store Support 2
D Open Windows 10 Photos app from command line Support 11
vefatica Windows Terminal ... Pop-up location Support 1
Joe Caverly Windows Terminal and @SELECT Support 13
vefatica Console popup windows don't work correctly Support 0
D Layout debugger windows Support 2
L LIST's pop-up search loses focus in a Windows Terminal window Support 15
nickles ANSI Colors Windows 7 no longer working Support 6
S Windows Server version not being detected correctly in TCMD 26RC2 Support 9
D Which is the latest version for Windows XP? Support 2
rconn News Windows 7 Support Support 0
Joe Caverly Windows Size is 80x0 Support 2
rconn Dropping Windows 7 support in Take Command / TCC v26 Support 8
G Taskbar Windows 10 Support 7
T Windows Terminal Support 2
Joe Caverly Windows Sensor Support 5
vefatica Windows 10 and line wrapping selection? Support 6
fishman@panix.com New Problem with later Windows 10 Support 10
CWBillow Upgrade Windows 10's effect on TCMD and TCC Support 3
T Take Command v21 on Windows Server Support 1
Bill de Haan "Sensitive Privilege Use" in Windows security auditing Support 7
Joe Caverly Create Windows Jobs and optionally attach processes to a job Support 17
Joe Caverly What version and Windows OS are you using? Support 3
A Windows 10 This app can't run on your PC Support 2
G 4NT on Windows 10 Support 3
vefatica Undesired scrolling in Windows 10 enhanced console. Support 2
vefatica Windows 10 version number? Support 6
vefatica How do I see Windows 10's ANSI in action? Support 3
A List windows with titles matching given pattern? Support 2
M New "pinned" attribute (since Windows 10 1709) Support 6
Emilio III TCMD Tab titles on Insider Windows Support 2
kb6ojs Want to start TCMD v20 with every Windows 10 bootup Support 3
E Cannot paste dollar sign into TCC on Windows 10 1803 Support 7
M TCC incorrect dir output since Windows 1803 Support 6
G Version 20.11 installed on Windows 10 problems Support 9
fishman@panix.com TCC v22 & the Windows 10 Console Support 5
Per TCC/LE 14 64-bit won't start on Windows 10 Insider Preview 17063 (171213) Support 12
I tcmd versus tcc in Windows 10 Support 2
Dick Johnson DrawBox now broken in Windows 10? Support 6
CWBillow Editing in the root directory of windows 10 Support 6
CWBillow Clearing out the Windows Temp folder Support 2
H New command not working well in Windows 7 Support 4

Similar threads