bambulab / BambuStudio

PC Software for BambuLab and other 3D printers
GNU Affero General Public License v3.0
1.88k stars 262 forks source link

Crash when changing speed to Sport mode #4612

Open theosib opened 1 month ago

theosib commented 1 month ago

Bambu Studio Version

1.

Where is the application from?

Bambu Lab Official website

OS version

macOS Sonoma 14.5

Additional system information

MacBook Pro M2 Pro

Printer

X1C

How to reproduce

Send print job Change speed to sport

Actual results

Crashed

Expected results

Should not crash

Project file & Debug log uploads

log.zip ams riser 3-left front combo002.3mf.zip bambu crash 2.txt.zip

Checklist of files to include

theosib commented 1 month ago

Bambu Studio has been crashing a lot lately, so this bug could be a duplicate of https://github.com/bambulab/BambuStudio/issues/4600, although I'm not sure. This time it didn't crash when sending the job to the printer but rather when I tried to change the print speed.

iCMDdev commented 1 month ago

Out of curiosity (perhaps because, when I read the title, I thought your issue might be related to one I recently opened), I've looked at both (this issue and the other one you mentioned) your crash reports generated by macOS, as well as other apps' similar crash reports I found on the web, and it seems related to wxWidgets (and GUI stuff) used by Bambu Studio.

This particular issue seems to finally end up crashing somewhere in this function at one of the pointer dereferences.

Your other issue seems like an over-release (releasing an already freed object) or some other use-after-free kind of issues (there's a variety of possibilities, in order to exactly find the cause one should do some further analysis at runtime).

My guess is that both these could be caused due to some GUI race condition bug.

walterwongbbl commented 2 weeks ago

@iCMDdev Actually, we haven't made any changes here. We found that M2 Mac computers seem to be more prone to such problems.

iCMDdev commented 2 weeks ago

@walterwongbbl

Actually, we haven't made any changes here.

Perhaps it is a problem within wxWidgets as you suggested in the other issue's thread.

We found that M2 Mac computers seem to be more prone to such problems.

I recently experienced a similar crash on an M1 Pro device (#4696), though the device was on a Developer Beta build of macOS Sequoia, so that could've caused it.

I also noticed a Windows bug report (#4683) seems a bit similar at a first glance. Do you think it could be related to this?