Author Topic: Crash on test script binding on windows  (Read 1372 times)

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3264
Crash on test script binding on windows
« on: April 15, 2022, 05:50:08 pm »
Hi,
i used the squirrel test scripts and got a wired crash on windows but not on linux. It seems to be some kind of race condition.
Can someone try to reproduce this? Steps:
1) Start codeblocks
2) Open scripting console: View->Scripting console
3) Load squirrel test plugin found in src/scripts/tests/script_test_plugin.script via the load file button in the scripting console
4) Run the sdk test with Plugins->Test scripting->Test sdk

Code
#0 ??	wxsResourceTree::InvalidateItemData (this=0x0, ItemData=0x24a10ed4bd0) ( \codeblocks_svn\src\plugins\contrib\wxSmith\wxsresourcetree.cpp:212)
#1 0x7ffb1ece3b90 wxsResourceTreeItemData::~wxsResourceTreeItemData(this=this@entry=0x24a10ed4bd0, __in_chrg=<optimized out>) ( \codeblocks_svn\src\plugins\contrib\wxSmith\wxsresourcetreeitemdata.cpp:32)
#2 0x7ffb1ece2508 (anonymous namespace)::wxsResourceTreeProjectData::~wxsResourceTreeProjectData(this=0x24a10ed4bd0, __in_chrg=<optimized out>) ( \codeblocks_svn\src\plugins\contrib\wxSmith\wxsresourcetree.cpp:40)
#3 ?? (anonymous namespace)::wxsResourceTreeProjectData::~wxsResourceTreeProjectData (this=0x24a10ed4bd0, __in_chrg=<optimized out>) ( \codeblocks_svn\src\plugins\contrib\wxSmith\wxsresourcetree.cpp:40)
#4 0x7ffb2f7997a6 wxTreeItemParam::~wxTreeItemParam(this=0x24a10e43210, __in_chrg=<optimized out>) ( wxWidgets-3.1.5_msys2\src\msw\treectrl.cpp:433)
#5 0x7ffb2f799755 wxTreeItemParam::~wxTreeItemParam(this=0x24a10e43210, __in_chrg=<optimized out>) ( wxWidgets-3.1.5_msys2\src\msw\treectrl.cpp:433)
#6 0x7ffb2f0be967 wxTreeCtrl::MSWOnNotify(this=0x24a0dd842d0, idCtrl=-31262, lParam=624844330880, result=0x917b9fcec8) ( wxWidgets-3.1.5_msys2\src\msw\treectrl.cpp:3774)
#7 0x7ffb2f00c212 wxWindow::HandleNotify(this=0x24a0ff586b0, idCtrl=-31262, lParam=624844330880, result=0x917b9fcec8) ( wxWidgets-3.1.5_msys2\src\msw\window.cpp:4082)
#8 0x7ffb2f009a55 wxWindow::MSWHandleMessage(this=0x24a0ff586b0, result=0x917b9fd358, message=78, wParam=18446744073709520354, lParam=624844330880) ( wxWidgets-3.1.5_msys2\src\msw\window.cpp:3195)
#9 0x7ffb2f00b6f3 wxWindow::MSWWindowProc(this=0x24a0ff586b0, message=78, wParam=18446744073709520354, lParam=624844330880) ( wxWidgets-3.1.5_msys2\src\msw\window.cpp:3883)
#10 0x7ffb2f009060 wxWndProc(hWnd=0xf1722, message=78, wParam=18446744073709520354, lParam=624844330880) ( wxWidgets-3.1.5_msys2\src\msw\window.cpp:2924)
#11 0x7ffc43c0e7e8 USER32!CallWindowProcW() (C:\Windows\System32\user32.dll:??)
#12 0x7ffc43c0ddab USER32!SendMessageW() (C:\Windows\System32\user32.dll:??)
#13 0x7ffc43c0d61a USER32!SendMessageW() (C:\Windows\System32\user32.dll:??)
#14 0x7ffc2b6d31dd COMCTL32!CCSetScrollInfo() (C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.1110_none_60b5254171f9507e\comctl32.dll:??)
#15 0x7ffc2b67a19b ImageList_GetBkColor() (C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.1110_none_60b5254171f9507e\comctl32.dll:??)
#16 0x7ffc2b67a2ec ImageList_GetBkColor() (C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.1110_none_60b5254171f9507e\comctl32.dll:??)
#17 0x7ffc2b67a2ec ImageList_GetBkColor() (C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.1110_none_60b5254171f9507e\comctl32.dll:??)
#18 0x7ffc2b679c8c ImageList_GetBkColor() (C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.1110_none_60b5254171f9507e\comctl32.dll:??)
#19 0x7ffc2b677282 ImageList_AddMasked() (C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.1110_none_60b5254171f9507e\comctl32.dll:??)
#20 0x7ffc43c0e7e8 USER32!CallWindowProcW() (C:\Windows\System32\user32.dll:??)
#21 0x7ffc43c0e47e USER32!CallWindowProcW() (C:\Windows\System32\user32.dll:??)
#22 0x7ffb2f00863d wxWindow::MSWDefWindowProc(this=0x24a0dd842d0, nMsg=4353, wParam=0, lParam=-65536) ( wxWidgets-3.1.5_msys2\src\msw\window.cpp:2464)
#23 0x7ffb2f0bd66b wxTreeCtrl::MSWDefWindowProc(this=0x24a0dd842d0, nMsg=4353, wParam=0, lParam=-65536) ( wxWidgets-3.1.5_msys2\src\msw\treectrl.cpp:3297)
#24 0x7ffb2f00b724 wxWindow::MSWWindowProc(this=0x24a0dd842d0, message=4353, wParam=0, lParam=-65536) ( wxWidgets-3.1.5_msys2\src\msw\window.cpp:3889)
#25 0x7ffb2f0bd1c7 wxTreeCtrl::MSWWindowProc(this=0x24a0dd842d0, nMsg=4353, wParam=0, lParam=-65536) ( wxWidgets-3.1.5_msys2\src\msw\treectrl.cpp:3260)
#26 0x7ffb2f009060 wxWndProc(hWnd=0x8ba1950, message=4353, wParam=0, lParam=-65536) ( wxWidgets-3.1.5_msys2\src\msw\window.cpp:2924)
#27 0x7ffc43c0e7e8 USER32!CallWindowProcW() (C:\Windows\System32\user32.dll:??)
#28 0x7ffc43c0ddab USER32!SendMessageW() (C:\Windows\System32\user32.dll:??)
#29 0x7ffc43c0d61a USER32!SendMessageW() (C:\Windows\System32\user32.dll:??)

beside this crash there is also a problem with saving the selection from the script security dialog....