Recent Posts

Pages: 1 2 3 4 5 [6] 7 8 9 10
51
Hi, when I try to open a wxsmith file in my built C::B against wx 3.3.1, I see a crash, here is the crash call stack:

Code
[debug]> bt 30
[debug]#0  0x00007fff078171b1 in wxDefaultAssertHandler(wxString const&, int, wxString const&, wxString const&, wxString const&) () from F:\code\wxWidgets-3.3.1\lib\gcc_dll\wxmsw331u_gcc_custom.dll
[debug]#1  0x00007fff078149ec in wxOnAssert(char const*, int, char const*, char const*, wxString const&) () from F:\code\wxWidgets-3.3.1\lib\gcc_dll\wxmsw331u_gcc_custom.dll
[debug]#2  0x00007fff07ebb68e in wxPGProperty::ValueToStringWithCheck(wxVariant&, wxPGPropValFormatFlags) const () from F:\code\wxWidgets-3.3.1\lib\gcc_dll\wxmsw331u_gcc_custom.dll
[debug]#3  0x00007fff07ebf73e in wxPGProperty::GetValueAsString(wxPGPropValFormatFlags) const () from F:\code\wxWidgets-3.3.1\lib\gcc_dll\wxmsw331u_gcc_custom.dll
[debug]#4  0x00007ffe8ac9d0b0 in wxPGProperty::GetValueAsString (this=0x10cb5690, flags=0) at F:\code\wxWidgets-3.3.1\include\wx\propgrid\property.h:1427
[debug]#5  0x00007fff07ebc06e in wxPGProperty::GetValueAsStringWithCheck(wxPGPropValFormatFlags) const () from F:\code\wxWidgets-3.3.1\lib\gcc_dll\wxmsw331u_gcc_custom.dll
[debug]#6  0x00007fff07ec4c0f in wxPGDefaultRenderer::Render(wxDC&, wxRect const&, wxPropertyGrid const*, wxPGProperty*, int, int, int) const () from F:\code\wxWidgets-3.3.1\lib\gcc_dll\wxmsw331u_gcc_custom.dll
[debug]#7  0x00007fff07ecde13 in wxPropertyGrid::DoDrawItems(wxDC&, wxRect const*) const () from F:\code\wxWidgets-3.3.1\lib\gcc_dll\wxmsw331u_gcc_custom.dll
[debug]#8  0x00007fff07ecefae in wxPropertyGrid::DrawItems(wxDC&, unsigned int, unsigned int, wxRect const*) () from F:\code\wxWidgets-3.3.1\lib\gcc_dll\wxmsw331u_gcc_custom.dll
[debug]#9  0x00007fff07edbf78 in wxPropertyGrid::OnPaint(wxPaintEvent&) () from F:\code\wxWidgets-3.3.1\lib\gcc_dll\wxmsw331u_gcc_custom.dll
[debug]#10 0x00007fff07813467 in wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const () from F:\code\wxWidgets-3.3.1\lib\gcc_dll\wxmsw331u_gcc_custom.dll
[debug]#11 0x00007fff0795ff55 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from F:\code\wxWidgets-3.3.1\lib\gcc_dll\wxmsw331u_gcc_custom.dll
[debug]#12 0x00007fff079628b3 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from F:\code\wxWidgets-3.3.1\lib\gcc_dll\wxmsw331u_gcc_custom.dll
[debug]#13 0x00007fff07962916 in wxEvtHandler::TryHereOnly(wxEvent&) () from F:\code\wxWidgets-3.3.1\lib\gcc_dll\wxmsw331u_gcc_custom.dll
[debug]#14 0x00007fff07962983 in wxEvtHandler::ProcessEventLocally(wxEvent&) () from F:\code\wxWidgets-3.3.1\lib\gcc_dll\wxmsw331u_gcc_custom.dll
[debug]#15 0x00007fff07962a61 in wxEvtHandler::ProcessEvent(wxEvent&) () from F:\code\wxWidgets-3.3.1\lib\gcc_dll\wxmsw331u_gcc_custom.dll
[debug]#16 0x00007fff07c9453f in wxScrollHelperEvtHandler::ProcessEvent(wxEvent&) () from F:\code\wxWidgets-3.3.1\lib\gcc_dll\wxmsw331u_gcc_custom.dll
[debug]#17 0x00007fff07960262 in wxEvtHandler::SafelyProcessEvent(wxEvent&) () from F:\code\wxWidgets-3.3.1\lib\gcc_dll\wxmsw331u_gcc_custom.dll
[debug]#18 0x00007fff07a47dbb in wxWindow::HandlePaint() () from F:\code\wxWidgets-3.3.1\lib\gcc_dll\wxmsw331u_gcc_custom.dll
[debug]#19 0x00007fff07a4a158 in wxWindow::MSWHandleMessage(long long*, unsigned int, unsigned long long, long long) () from F:\code\wxWidgets-3.3.1\lib\gcc_dll\wxmsw331u_gcc_custom.dll
[debug]#20 0x00007fff07a3573c in wxWindow::MSWWindowProc(unsigned int, unsigned long long, long long) () from F:\code\wxWidgets-3.3.1\lib\gcc_dll\wxmsw331u_gcc_custom.dll
[debug]#21 0x00007fff084603ac in wxScrolled<wxControl>::MSWWindowProc(unsigned int, unsigned long long, long long) () from F:\code\wxWidgets-3.3.1\lib\gcc_dll\wxmsw331u_gcc_custom.dll
[debug]#22 0x00007fff4d47ef5c in USER32!CallWindowProcW () from C:\WINDOWS\System32\user32.dll
[debug]#23 0x00007fff4d47e8cc in USER32!DispatchMessageW () from C:\WINDOWS\System32\user32.dll
[debug]#24 0x00007fff4d4910c3 in USER32!SendMessageTimeoutW () from C:\WINDOWS\System32\user32.dll
[debug]#25 0x00007fff4f491374 in ntdll!KiUserCallbackDispatcher () from C:\WINDOWS\SYSTEM32\ntdll.dll
[debug]#26 0x00007fff4d362be4 in win32u!NtUserRealInternalGetMessage () from C:\WINDOWS\System32\win32u.dll
[debug]#27 0x00007fff2a0ad559 in GetMessageExA () from C:\WINDOWS\SYSTEM32\duser.dll
[debug]#28 0x00007fff2a0ad348 in GetMessageExA () from C:\WINDOWS\SYSTEM32\duser.dll
[debug]#29 0x00007fff4d4940d4 in USER32!GetFocus () from C:\WINDOWS\System32\user32.dll
[debug](More stack frames follow...)
[debug]>>>>>>cb_gdb:
[debug]> info threads
[debug]  Id   Target Id           Frame
[debug]* 1    Thread 15368.0x3d30 0x00007fff078171b1 in wxDefaultAssertHandler(wxString const&, int, wxString const&, wxString const&, wxString const&) () from F:\code\wxWidgets-3.3.1\lib\gcc_dll\wxmsw331u_gcc_custom.dll
[debug]  2    Thread 15368.0x4e54 0x00007fff4f490f84 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\WINDOWS\SYSTEM32\ntdll.dll
[debug]  3    Thread 15368.0x4f94 0x00007fff4f490f84 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\WINDOWS\SYSTEM32\ntdll.dll
[debug]  4    Thread 15368.0x3274 0x00007fff4f490f84 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\WINDOWS\SYSTEM32\ntdll.dll
[debug]  5    Thread 15368.0x2fa0 0x00007fff4f48e044 in ntdll!ZwWaitForMultipleObjects () from C:\WINDOWS\SYSTEM32\ntdll.dll
[debug]  6    Thread 15368.0x57ec 0x00007fff4f490f84 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\WINDOWS\SYSTEM32\ntdll.dll
[debug]  7    Thread 15368.0x4be0 0x00007fff4f490f84 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\WINDOWS\SYSTEM32\ntdll.dll
[debug]  8    Thread 15368.0x16cc 0x00007fff4f48d574 in ntdll!ZwWaitForSingleObject () from C:\WINDOWS\SYSTEM32\ntdll.dll
[debug]  9    Thread 15368.0x3228 0x00007fff4f48d574 in ntdll!ZwWaitForSingleObject () from C:\WINDOWS\SYSTEM32\ntdll.dll
[debug]  10   Thread 15368.0x26b4 0x00007fff4f48d574 in ntdll!ZwWaitForSingleObject () from C:\WINDOWS\SYSTEM32\ntdll.dll
[debug]  11   Thread 15368.0xda4  0x00007fff4f48d574 in ntdll!ZwWaitForSingleObject () from C:\WINDOWS\SYSTEM32\ntdll.dll
[debug]  12   Thread 15368.0x27b8 0x00007fff4f48d574 in ntdll!ZwWaitForSingleObject () from C:\WINDOWS\SYSTEM32\ntdll.dll
[debug]  130  Thread 15368.0x4a20 0x00007fff4f48d614 in ntdll!ZwRemoveIoCompletion () from C:\WINDOWS\SYSTEM32\ntdll.dll
[debug]  133  Thread 15368.0x274c 0x00007fff4f490f84 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\WINDOWS\SYSTEM32\ntdll.dll
[debug]  135  Thread 15368.0x3c5c 0x00007fff4f490f84 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\WINDOWS\SYSTEM32\ntdll.dll
[debug]  136  Thread 15368.0x35fc 0x00007fff4f490f84 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\WINDOWS\SYSTEM32\ntdll.dll
[debug]  137  Thread 15368.0x37e8 0x00007fff4f490f84 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\WINDOWS\SYSTEM32\ntdll.dll
[debug]  138  Thread 15368.0x4f1c 0x00007fff4f490f84 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\WINDOWS\SYSTEM32\ntdll.dll
[debug]  143  Thread 15368.0x360c 0x00007fff4f490f84 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\WINDOWS\SYSTEM32\ntdll.dll
[debug]  144  Thread 15368.0x4288 0x00007fff4d36a124 in win32u!NtUserMsgWaitForMultipleObjectsEx () from C:\WINDOWS\System32\win32u.dll
[debug]  151  Thread 15368.0x5588 0x00007fff4f48db74 in ntdll!ZwDelayExecution () from C:\WINDOWS\SYSTEM32\ntdll.dll
[debug]  158  Thread 15368.0x4668 0x00007fff4d36a124 in win32u!NtUserMsgWaitForMultipleObjectsEx () from C:\WINDOWS\System32\win32u.dll
[debug]>>>>>>cb_gdb:
[debug]> frame 4
[debug]#4  0x00007ffe8ac9d0b0 in wxPGProperty::GetValueAsString (this=0x10cb5690, flags=0) at F:\code\wxWidgets-3.3.1\include\wx\propgrid\property.h:1427
[debug]F:\code\wxWidgets-3.3.1\include\wx\propgrid\property.h:1427:53089:beg:0x7ffe8ac9d0b0
[debug]>>>>>>cb_gdb:

#4  0x00007ffe8ac9d0b0 in wxPGProperty::GetValueAsString (this=0x10cb5690, flags=0) at F:\code\wxWidgets-3.3.1\include\wx\propgrid\property.h:1427
F:\code\wxWidgets-3.3.1\include\wx\propgrid\property.h:1427:53089:beg:0x7ffe8ac9d0b0



Any ideas?

Thanks.
52
Help / Re: code::blocks hangs at startup
« Last post by Miguel Gimenez on January 23, 2026, 10:06:29 am »
Thanks for testing. If this works then I will leave wxsresourcetree as is, because the change would be complex.

Probably works because wxsresourcetree uses cbLoadBitmap(), which calls wxImage::LoadFile() instead of wxBitmap::LoadFile().
53
Help / Re: code::blocks hangs at startup
« Last post by killerbot on January 23, 2026, 08:36:39 am »
I reverted the patch that was posted here above yesterday,and used your latest commit.

CB now starts up for me without problems (or at least not directly visible to me ;-) )
54
Development / Re: wxSmith use bad constructor for wxStaticBoxSizer
« Last post by Miguel Gimenez on January 23, 2026, 08:24:35 am »
Nonsense from profile spammer reported to moderator.
55
Help / Re: code::blocks hangs at startup
« Last post by Miguel Gimenez on January 23, 2026, 08:23:17 am »
The change is not finished, wxsresourcetree must be modified.
56
Development / Re: wxSmith use bad constructor for wxStaticBoxSizer
« Last post by guacamole on January 23, 2026, 08:13:58 am »
When I experimented with this, my friends loved discovering our unique creations together! Any tips on level design?
57
Help / Re: code::blocks hangs at startup
« Last post by killerbot on January 23, 2026, 07:57:18 am »
I will test later today
58
Help / Re: code::blocks hangs at startup
« Last post by Miguel Gimenez on January 22, 2026, 07:20:23 pm »
I have just commited r13775 implementing delay-load of most images. This commit will make easier changing to SVG in the near future.

wxsresourcetree must still be modified before checking if C::B still hangs at startup.
59
Help / Re: code::blocks hangs at startup
« Last post by Miguel Gimenez on January 22, 2026, 04:34:43 pm »
Quote
not sure if really usable

It is very helpful indeed.

IMHO the problem is wxSmith uses global objects to register items:
Code
namespace
{
    wxsRegisterItem<wxsAnimationCtrl> Reg(_T("AnimationCtrl"),wxsTWidget,_T("Standard"),370);

The constructor of wxsRegisterItem (in wxsitemfactory.h:200) calls wxBitmap::LoadFile(), but this call will happen before the image handlers have been initialized because global objects are constructed before program starts.

Code
            wxString DataPath = ConfigManager::GetDataFolder() + _T("/images/wxsmith/");
            Info.Icon32.LoadFile(DataPath+Info.ClassName+_T("32.png"),wxBITMAP_TYPE_PNG);
            Info.Icon16.LoadFile(DataPath+Info.ClassName+_T("16.png"),wxBITMAP_TYPE_PNG);

One possible solution would be delay loading the icons, i.e. load them the first time they are needed.
60
Help / Re: code::blocks hangs at startup
« Last post by killerbot on January 22, 2026, 03:12:34 pm »
#0  0x00007ffff4f1e80d in syscall () at /lib64/libc.so.6
#1  0x00007ffff4747e95 in std::sys::sync::condvar::futex::Condvar::wait () at /lib64/libglycin-2.so.0
#2  0x00007ffff46cb1bb in parking::Inner::park () at /lib64/libglycin-2.so.0
#3  0x00007ffff45fd656 in gly_loader_load () at /lib64/libglycin-2.so.0
#4  0x00007ffff712325e in ??? () at /lib64/libgdk_pixbuf-2.0.so.0
#5  0x00007ffff7123637 in ??? () at /lib64/libgdk_pixbuf-2.0.so.0
#6  0x00007ffff7113158 in gdk_pixbuf_new_from_file () at /lib64/libgdk_pixbuf-2.0.so.0
#7  0x00007ffff6b7d3b0 in wxBitmap::LoadFile(wxString const&, wxBitmapType) () at /lib64/libwx_gtk3u_core-suse-nostl.so.16.0.0
#8  0x00007fffc8ebe80f in wxsRegisterItem<wxsAnimationCtrl>::wxsRegisterItem(wxString, wxsItemType, wxString, long, bool) ()
    at /usr/local/lib/libwxsmithlib.so.0
#9  0x00007fffc8d6bacf in _GLOBAL__sub_I_wxsanimationctrl.cpp () at /usr/local/lib/libwxsmithlib.so.0


not sure if really usable, can not reproduce, ran in gdb, when it hang : ctrl-c and then bt.
but most of the other times I get something else ...
Pages: 1 2 3 4 5 [6] 7 8 9 10