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: 10
Joined: Thu Mar 26, 2009 9:03 pm

wxStatusBar Crashes MacOS Big Sur

Post by Bartvanstiphout » Tue Mar 09, 2021 8:16 pm

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: 5154
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: wxStatusBar Crashes MacOS Big Sur

Post by ONEEYEMAN » Tue Mar 09, 2021 10:48 pm

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 » Thu Mar 11, 2021 5:53 pm

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: 10
Joined: Thu Mar 26, 2009 9:03 pm

Re: wxStatusBar Crashes MacOS Big Sur

Post by Bartvanstiphout » Sat Mar 13, 2021 2:27 pm

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: 5154
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: wxStatusBar Crashes MacOS Big Sur

Post by ONEEYEMAN » Sat Mar 13, 2021 3:14 pm

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: 10
Joined: Thu Mar 26, 2009 9:03 pm

Re: wxStatusBar Crashes MacOS Big Sur

Post by Bartvanstiphout » Sat Mar 13, 2021 7:13 pm


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 » Sun Mar 14, 2021 9:42 am

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