Discussion:
Crash using wxWidgets 2.8.12 on x64 Windows 8.1
Stefan Battmer
2014-06-13 07:48:00 UTC
Permalink
Hi,

I tried to register on trac but was rejected by some machine as Spam :-(

If someone could help me with registering I will happily create a proper
ticket.

I recently run into trouble with the 64-bit Windows build of wxWidgets
2.8.12. When calling the method wxToolbar::Realize I get a crash (access
violation)

This is the stacktrace

KernelBase.dll!00007ff985667893() Unknown
comctl32.dll!00007ff982ddc525() Unknown
comctl32.dll!00007ff982daddbc() Unknown
comctl32.dll!00007ff982d30a39() Unknown
comctl32.dll!00007ff982d26f82() Unknown
user32.dll!00007ff987352434() Unknown
user32.dll!00007ff9873aea8c() Unknown
user32.dll!00007ff9873ae9a7() Unknown
wxPropView.exe!wxWindow::MSWDefWindowProc(unsigned int nMsg=1044,
unsigned __int64 wParam=15, __int64 lParam=213384238560) Line 2240 C++
wxPropView.exe!wxWindow::MSWWindowProc(unsigned int message=1044,
unsigned __int64 wParam=15, __int64 lParam=213384238560) Line 3427 C++
wxPropView.exe!wxToolBar::MSWWindowProc(unsigned int nMsg=1044,
unsigned __int64 wParam=15, __int64 lParam=213384238560) Line 1792 C++
wxPropView.exe!wxWndProc(HWND__ * hWnd=0x0000000000020212,
unsigned int message=1044, unsigned __int64 wParam=15, __int64
lParam=213384238560) Line 2618 C++
user32.dll!00007ff987352434() Unknown
user32.dll!00007ff98737422f() Unknown
user32.dll!00007ff98735a079() Unknown
wxPropView.exe!wxToolBar::Realize() Line 988 C++ // Here '
Snippet ::SendMessage' with 'TB_ADDBUTTONS' is called
wxPropView.exe!PropViewFrame::CreateUpperToolBar() Line 1763 C++
wxPropView.exe!PropViewFrame::PropViewFrame(const wxString &
title={...}, const wxPoint & pos={...}, const wxSize & size={...}, int
argc=1, char * * argv=0x00000031aeab6c60) Line 747 C++
wxPropView.exe!MyApp::OnInit() Line 212 C++
wxPropView.exe!wxAppConsole::CallOnInit() Line 76 C++
wxPropView.exe!wxEntryReal(int & argc=1, char * *
argv=0x00000031aeab6c60) Line 432 C++
wxPropView.exe!wxEntry(int & argc=1, char * *
argv=0x00000031aeab6c60) Line 209 C++
wxPropView.exe!wxEntry(HINSTANCE__ * hInstance=0x00007ff70af10000,
HINSTANCE__ * __formal=0x0000000000000000, char *
__formal=0x00000031aea72d55, int nCmdShow=10) Line 386 C++
wxPropView.exe!WinMain(HINSTANCE__ * hInstance=0x00007ff70af10000,
HINSTANCE__ * hPrevInstance=0x0000000000000000, char *
lpCmdLine=0x00000031aea72d55, int nCmdShow=10) Line 219 C++
wxPropView.exe!__tmainCRTStartup() Line 251 C
wxPropView.exe!WinMainCRTStartup() Line 165 C
kernel32.dll!00007ff987db16ad() Unknown
ntdll.dll!00007ff987f634a5() Unknown

This is happening under Windows 8.1 in 64-bit only. Everything else is
working fine (I tested W7 32 and 64 bit and W8.1 32-bit (even on the
same machine)) and this is happening since I did migrate from VS 2005 to
VS 2013 (I installed the latest update 2 for VS 2013)

I saw a couple of open trac tickets related to x64 crashes in connection
with VS 2013 but as far as I saw none did relate to this issue.

Any help is appreciated. If there is any additional information I can
provide I will happily provide it.

Regards,

Stefan


MATRIX VISION GmbH, Talstrasse 16, DE-71570 Oppenweiler
Registergericht: Amtsgericht Stuttgart, HRB 271090
Geschaeftsfuehrer: Uwe Furtner, Erhard Meier
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Vadim Zeitlin
2014-06-13 17:29:55 UTC
Permalink
On Fri, 13 Jun 2014 09:48:00 +0200 Stefan Battmer wrote:

SB> I tried to register on trac but was rejected by some machine as Spam :-(

Hi,

Sorry about this, I have no idea what's going on: according to Spam logs
StopForumSpam web site detected you as a spammer but Trac submitted
"username [80.63]" to it which I just don't understand. Did you really use
"80.63" as your user name?

SB> If someone could help me with registering I will happily create a proper
SB> ticket.

Please try again, I'm not sure if it works but I relaxed the checks, so
hopefully it does.

SB> I recently run into trouble with the 64-bit Windows build of wxWidgets
SB> 2.8.12.

The first thing I can say is that 2.8 is unfortunately not maintained any
more, so your best bet is to retry with 3.0.0 (or the upcoming 3.0.1).
Chances are the bug could have been fixed there.

SB> When calling the method wxToolbar::Realize I get a crash (access
SB> violation)

I've never heard about this problem, so we need to find out more about it.
First, does it happen in the toolbar sample included in wxWidgets? If it
doesn't, what is the difference with your program? Please try to reproduce
the crash in the sample with as few changes as possible.

And, in any case, I strongly advise you to test with 3.0 first.

Good luck,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Stefan Battmer
2014-06-16 08:11:15 UTC
Permalink
Hi Vadim,

I could register now (Thanks!). And I did NOT try "80.63" as a user name ;-)

I checked with wxWidgets 3.0 (Bug has been fixed! Thanks again!).

I provided a patch for 2.8.12 (by 'diffing' the 3.0 version with 2.8.12)
with a proper description under trac ticket 16332. There have been some
'bad' casts that weren't 64-bit compatible hidden in the code.

So for a third time: Thanks for giving the right hint in the right
moment and for the quick response!

All the best,

Stefan


-------- Original Message --------
Subject: Re: Crash using wxWidgets 2.8.12 on x64 Windows 8.1
From: Vadim Zeitlin <***@wxwidgets.org>
To: wx-***@googlegroups.com
Date: 13.06.2014 19:29
Post by Vadim Zeitlin
SB> I tried to register on trac but was rejected by some machine as Spam :-(
Hi,
Sorry about this, I have no idea what's going on: according to Spam logs
StopForumSpam web site detected you as a spammer but Trac submitted
"username [80.63]" to it which I just don't understand. Did you really use
"80.63" as your user name?
SB> If someone could help me with registering I will happily create a proper
SB> ticket.
Please try again, I'm not sure if it works but I relaxed the checks, so
hopefully it does.
SB> I recently run into trouble with the 64-bit Windows build of wxWidgets
SB> 2.8.12.
The first thing I can say is that 2.8 is unfortunately not maintained any
more, so your best bet is to retry with 3.0.0 (or the upcoming 3.0.1).
Chances are the bug could have been fixed there.
SB> When calling the method wxToolbar::Realize I get a crash (access
SB> violation)
I've never heard about this problem, so we need to find out more about it.
First, does it happen in the toolbar sample included in wxWidgets? If it
doesn't, what is the difference with your program? Please try to reproduce
the crash in the sample with as few changes as possible.
And, in any case, I strongly advise you to test with 3.0 first.
Good luck,
VZ
MATRIX VISION GmbH, Talstrasse 16, DE-71570 Oppenweiler
Registergericht: Amtsgericht Stuttgart, HRB 271090
Geschaeftsfuehrer: Uwe Furtner, Erhard Meier
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Vadim Zeitlin
2014-06-16 14:59:43 UTC
Permalink
On Mon, 16 Jun 2014 10:11:15 +0200 Stefan Battmer wrote:

SB> I could register now (Thanks!). And I did NOT try "80.63" as a user name ;-)
SB>
SB> I checked with wxWidgets 3.0 (Bug has been fixed! Thanks again!).
SB>
SB> I provided a patch for 2.8.12 (by 'diffing' the 3.0 version with 2.8.12)
SB> with a proper description under trac ticket 16332. There have been some
SB> 'bad' casts that weren't 64-bit compatible hidden in the code.
SB>
SB> So for a third time: Thanks for giving the right hint in the right
SB> moment and for the quick response!

I'm glad you could fix the problem and thanks for the patch!

I still think you should try updating to 3.0 as soon as possible, as I'm
afraid it's not the last problem which risks happening under Windows 8.1
with the old versions and we only are going to be able to fix them in 3.0.
And, in spite of the change of the major version number, upgrade really
shouldn't be that difficult -- try it out!

Good luck,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Loading...