[10.50b] A Crash popup when Ctrl-Q while using CudaLister

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

User avatar
thomasmolover
Member
Member
Posts: 160
Joined: 2016-12-12, 01:32 UTC

[10.50b] A Crash popup when Ctrl-Q while using CudaLister

Post by *thomasmolover »

sometime when I use Ctrl-Q to preview some file, TC popup a warninig windows and crash.

It happen seem to be random and I can't catch it a same serial operations

this is the error windows

https://imgur.com/a/HAU3akQ

Windows 11
TC 10.5b6 x64
cudalist wlx
User avatar
thomasmolover
Member
Member
Posts: 160
Joined: 2016-12-12, 01:32 UTC

Re: [10.50b] A Crash popup when Ctrl-Q

Post by *thomasmolover »

maybe it is NOT TC bug, how to catch its info???
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: [10.50b] A Crash popup when Ctrl-Q

Post by *Horst.Epp »

Preview what type of file ?
Is CudaLister actual (current is 1.7.6.1)
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
thomasmolover
Member
Member
Posts: 160
Joined: 2016-12-12, 01:32 UTC

Re: [10.50b] A Crash popup when Ctrl-Q

Post by *thomasmolover »

cudalist is 1.7.6.1

Follow the download URi

http://totalcmd.net/plugring/CudaLister.html
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: [10.50b] A Crash popup when Ctrl-Q

Post by *Horst.Epp »

thomasmolover wrote: 2022-05-21, 20:15 UTC cudalist is 1.7.6.1
I know the actual version as you can see in my post.
The 1st question is still open ?
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
thomasmolover
Member
Member
Posts: 160
Joined: 2016-12-12, 01:32 UTC

Re: [10.50b] A Crash popup when Ctrl-Q

Post by *thomasmolover »

It happened on random files if its a text-type could be view by cudalist, I could not consider what plugins cause it, I'd put the cudalist first top of all the plugins and wait for the crash.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [10.50b] A Crash popup when Ctrl-Q

Post by *ghisler(Author) »

TC doesn't have a function CheckSynchronize, so it must be a plugin.
Try opening a text file with F3 and then cycle through all plugins which can show text files with option '4' in the options menu (some editors will use the '4' as text input, so you need to use the menu). One of these plugins must be causing the error.
Author of Total Commander
https://www.ghisler.com
User avatar
AntonyD
Power Member
Power Member
Posts: 1231
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: [10.50b] A Crash popup when Ctrl-Q

Post by *AntonyD »

ghisler(Author) wrote: 2022-05-22, 09:05 UTC TC doesn't have a function CheckSynchronize, so it must be a plugin.
Try opening a text file with F3 and then cycle through all plugins which can show text files with option '4' in the options menu (some editors will use the '4' as text input, so you need to use the menu). One of these plugins must be causing the error.
https://forum.lazarus.freepascal.org/index.php?topic=25053.0
https://www.freepascal.org/docs-html/rtl/classes/checksynchronize.html

this is means that this func is a part of Core Lazarus/Pascal engine.
Last edited by AntonyD on 2022-05-23, 10:06 UTC, edited 1 time in total.
#146217 personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [10.50b] A Crash popup when Ctrl-Q

Post by *ghisler(Author) »

Currently only the built-in media player uses threads in Lister. Maybe a plugin written in Lazarus?
Author of Total Commander
https://www.ghisler.com
User avatar
Elwin_Ransom
Junior Member
Junior Member
Posts: 38
Joined: 2022-07-31, 18:14 UTC
Location: Perelandra

Re: [10.50b] A Crash popup when Ctrl-Q

Post by *Elwin_Ransom »

Mr. Ghisler, the author of the plugin replied in relation to this problem:
I found CheckSynchronize call in win32 widgets, in the handler of WM_NULL msg. maybe this msg is used by TotalCmd? my plugin don't.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [10.50b] A Crash popup when Ctrl-Q while using CudaLister

Post by *ghisler(Author) »

I found this in the Lazarus sources:

Code: Select all

    WM_NULL:
      if (Window = Win32WidgetSet.AppHandle) then
      begin
        CheckSynchronize;
        TWin32Widgetset(Widgetset).CheckPipeEvents;
      end;
Lazarus seems to post WM_NULL to itself to wake up the UI thread. But why would this be caused by CudaLister? Does CudaLister use Lazarus? If yes, does it call any LCL functions from a background thread?
Author of Total Commander
https://www.ghisler.com
User avatar
Elwin_Ransom
Junior Member
Junior Member
Posts: 38
Joined: 2022-07-31, 18:14 UTC
Location: Perelandra

Re: [10.50b] A Crash popup when Ctrl-Q while using CudaLister

Post by *Elwin_Ransom »

Response from plugin author:
does it call any LCL functions from a background thread?
It must not do it, IDK it yet.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [10.50b] A Crash popup when Ctrl-Q while using CudaLister

Post by *ghisler(Author) »

There seems to be just one function sending WM_NULL, located in win32object.inc:
procedure TWin32WidgetSet.HandleWakeMainThread(Sender: TObject);
If you can debug your plugin, put a breakpoint on it.
Author of Total Commander
https://www.ghisler.com
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: [10.50b] A Crash popup when Ctrl-Q while using CudaLister

Post by *Horst.Epp »

Since the original report we had several new version.
I never had any such a crash.
Would be fine to know about the status of the post starter.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
Elwin_Ransom
Junior Member
Junior Member
Posts: 38
Joined: 2022-07-31, 18:14 UTC
Location: Perelandra

Re: [10.50b] A Crash popup when Ctrl-Q while using CudaLister

Post by *Elwin_Ransom »

@Horst.Epp
Since the original report we had several new version
Do you mean the new versions of the plugin? I have the latest version of CudaLister installed: 1.8.1.0 (Win 10, TC 10.52). Crashes happen regularly and steadily, 5-6 times a day. Details here.
Post Reply