Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BFW-5757] [BUG] Prusa XL crashs/reboots when playing sound from file #4050

Closed
foorschtbar opened this issue Jun 22, 2024 · 3 comments
Closed
Assignees
Labels
BSOD Firmware crashed. bug Something isn't working.

Comments

@foorschtbar
Copy link
Contributor

Printer model

XL 5T

Firmware version

6.0.1

Upgrades and modifications

No response

Printing from...

Octoprint

Describe the bug

When "printing" the attached gcode (list of M300 commands), my XL crashes and reboots to a "blue screen".

I tried the fix in #1075 (comment)

IMG_4868

How to reproduce

No response

Expected behavior

No response

Files

scooter.zip

Crash dump can provided if needed.

@foorschtbar foorschtbar added the bug Something isn't working. label Jun 22, 2024
@danopernis danopernis self-assigned this Jun 26, 2024
@danopernis
Copy link
Member

Thanks for the report @foorschtbar

No need to provide crash dump, it is 100% reproducible. I have created internal ticket for investigation. Seems like MK4 and MINI are not affected (although it doesn't correctly apply tone durations, because the fix was not picked for the patch versions)

@danopernis danopernis added the known issue Our developers are aware of the issue. They will eventually work on it. label Jun 26, 2024
@danopernis danopernis changed the title [BUG] Prusa XL crashs/reboots when playing sound from file [BFW-5757] [BUG] Prusa XL crashs/reboots when playing sound from file Jun 26, 2024
@danopernis
Copy link
Member

@foorschtbar The crash is caused by dividing by zero. Fix is scheduled for next patch release.

Note that even after the fix, your Scooter tune (which is really nice by the way 🙂) won't play correctly. We would like to eventually fix that as well, but the fix is more involved, so we are not pushing it for the patch release.

To add more context, this boils down to the same underlying issue as #3875 XL uses software PWM at 1kHz for managing its beeper, which is simply too slow to handle some frequencies and also dependent on actual CPU utilization.

@danopernis danopernis added scheduled We are working on it or we have scheduled it for one of the next releases. BSOD Firmware crashed. and removed known issue Our developers are aware of the issue. They will eventually work on it. labels Jun 27, 2024
@danopernis
Copy link
Member

@foorschtbar New firmware v6.0.4 was just released which should fix the crash. Note that sound frequencies will unfortunately still be wrong.

@danopernis danopernis removed the scheduled We are working on it or we have scheduled it for one of the next releases. label Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BSOD Firmware crashed. bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

2 participants