wxStatusBar Crashes MacOS Big Sur

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
Bartvanstiphout
Earned a small fee
Earned a small fee
Posts: 12
Joined: Thu Mar 26, 2009 9:03 pm

wxStatusBar Crashes MacOS Big Sur

Post by Bartvanstiphout »

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
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7449
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: wxStatusBar Crashes MacOS Big Sur

Post by ONEEYEMAN »

Hi,
Can you run the statbar sample?
How did you configure the library?

Thank you.
Tomasz
In need of some credit
In need of some credit
Posts: 2
Joined: Thu Mar 11, 2021 4:11 pm

Re: wxStatusBar Crashes MacOS Big Sur

Post by Tomasz »

If you comment the line with the dc.GradientFillLinear() call in \src\osx\carbon\statbrma.cpp
it will stop crashing.

Code: Select all

    if ( tlw == keyWindow )
    {
        //dc.GradientFillLinear(dc.GetSize(), m_bgActiveFrom, m_bgActiveTo, wxBOTTOM);
		...
    }
I haven't investigated yet why it happens.
Bartvanstiphout
Earned a small fee
Earned a small fee
Posts: 12
Joined: Thu Mar 26, 2009 9:03 pm

Re: wxStatusBar Crashes MacOS Big Sur

Post by Bartvanstiphout »

That indeed fixes it..

The sample also crashes, so this is definitely something that needs to be fixed!

Thanks Tomasz!
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7449
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: wxStatusBar Crashes MacOS Big Sur

Post by ONEEYEMAN »

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.
Bartvanstiphout
Earned a small fee
Earned a small fee
Posts: 12
Joined: Thu Mar 26, 2009 9:03 pm

Re: wxStatusBar Crashes MacOS Big Sur

Post by Bartvanstiphout »

Tomasz
In need of some credit
In need of some credit
Posts: 2
Joined: Thu Mar 11, 2021 4:11 pm

Re: wxStatusBar Crashes MacOS Big Sur

Post by Tomasz »

I checked the wxStatusBarMac code briefly and I think the crash happens in the gradient, because the colors are not properly initialized for BigSur.
Post Reply