Hello everyone,
I'm experiencing crashes with the wxStatusBar in MacOS Big Sur. Can anyone confirm that this is stil working? There is not a useful stack trace, other than that it crashes at something with wxMacCoreGraphicsPenBrushDataBase::CalculateShadingValues.
I'm using wxWidgets version 3.1.3.
Thanks,
Bart
wxStatusBar Crashes MacOS Big Sur
-
- Earned a small fee
- Posts: 12
- Joined: Thu Mar 26, 2009 9:03 pm
Re: wxStatusBar Crashes MacOS Big Sur
Hi,
Can you run the statbar sample?
How did you configure the library?
Thank you.
Can you run the statbar sample?
How did you configure the library?
Thank you.
Re: wxStatusBar Crashes MacOS Big Sur
If you comment the line with the dc.GradientFillLinear() call in \src\osx\carbon\statbrma.cpp
it will stop crashing.
I haven't investigated yet why it happens.
it will stop crashing.
Code: Select all
if ( tlw == keyWindow )
{
//dc.GradientFillLinear(dc.GetSize(), m_bgActiveFrom, m_bgActiveTo, wxBOTTOM);
...
}
-
- Earned a small fee
- Posts: 12
- Joined: Thu Mar 26, 2009 9:03 pm
Re: wxStatusBar Crashes MacOS Big Sur
That indeed fixes it..
The sample also crashes, so this is definitely something that needs to be fixed!
Thanks Tomasz!
The sample also crashes, so this is definitely something that needs to be fixed!
Thanks Tomasz!
Re: wxStatusBar Crashes MacOS Big Sur
Hi,
You should file a bug at trac.wxwidgets.org and attach you changes there.
It would be nice to verify that it is happening/not happening in previous versions of OSX.
Thank you.
You should file a bug at trac.wxwidgets.org and attach you changes there.
It would be nice to verify that it is happening/not happening in previous versions of OSX.
Thank you.
-
- Earned a small fee
- Posts: 12
- Joined: Thu Mar 26, 2009 9:03 pm
Re: wxStatusBar Crashes MacOS Big Sur
I checked the wxStatusBarMac code briefly and I think the crash happens in the gradient, because the colors are not properly initialized for BigSur.