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

Crash reports on 39a9940 Firmware #103

Open
mrmattallison opened this issue Nov 2, 2024 · 8 comments
Open

Crash reports on 39a9940 Firmware #103

mrmattallison opened this issue Nov 2, 2024 · 8 comments
Labels
bug Something isn't working fixed_in_latest

Comments

@mrmattallison
Copy link

Hi @eh2k,

Off the back of some of the fixes in the latest Firmware I updated after having to flash the bootloader again and am now getting constant crashes.

Screenshot of the message attached, also reboots occasionally and displays “Out of Memory” even without a patch loaded.

IMG_7041

Hope it’s helpful!

@eh2k
Copy link
Owner

eh2k commented Nov 3, 2024

Thanks for reporting.

Unfortunately I can't reproduce this. You have the latest firmware, the checksum is correct (the same on my device).

On a crash report, you can press the right button to proceed without restoring the patch. Are you able to reproduce the crash after that? (You can also press the right button on startup to skip loading the patch). An exact step-by-step instruction would help (which engines are used?).
Are you using USB-Midi?

@mrmattallison
Copy link
Author

Hi @eh2k

Yes, I should have noted that I did the skip loading saved state option, I even deleted the saved presets via the web tool incase there was an issue there.

The crashes persisted. Crashing with that screen report every-time I tried to change Machiene, it would reload and flash an “Out of Memory” screen on boot, and the same issue, everytime I tried to change the Machiene it would freeze, I’d get that crash report and then reload. Endless cycle.

I reverted back to the previous version of the Firmware and the issues resolved themselves. No crashes, no reports and or out of memory issues.

Not sure what would have changed? Incidentally I didn’t need to reflash the bootloader either, just pushed the update (unlike the latest that would stop the upload at various parts of the upload).

@mrmattallison
Copy link
Author

I meant to add, no, I’m not using USB-midi on my device.

@eh2k
Copy link
Owner

eh2k commented Nov 3, 2024

@mrmattallison

The version before my last commit is now listed in the Webflasher. Can you please tell me if you are experiencing the issue with the version (main_432cb0f)?

With regard to out of memory message - there are different ones. Maybe a short video will help me.

If you have reverted to e030c30 - you will probable have to flash the laoder first (see: #66 (comment) )

@eh2k eh2k changed the title Crash reports on latest Firmware Crash reports on latest Firmware - 39a9940 Nov 3, 2024
@mrmattallison
Copy link
Author

Hi @eh2k

I've just reflashed the Teensy with main_432cb0F, the issue of out of ram happened straight away on reboot. It briefly flashed <<<< Out of RAM >>>>. It loads up with the 808ish-BD in Machine slot 1, there are no other machines loaded in Slots 2-4.

If I hold down the button to change the machine on slot one, I get the crash report (images to follow), a click of the button again displays the <<<< Out of RAM >>>> message again (see image).

I cannot add any other machines in slots 2-4 without it causing the same crash and <<<< Out of RAM >>>> message.

I held down the right button on reboot to skip the saved patch recall, this worked.

I added a "Wavesforms" engine in Slot 1, saved a preset, then rebooted. That worked, no crash, no <<<< Out of RAM >>>> message. I added 2 other synth machines to Slots 2 and 3, still good. Saved, rebooted. All good.

I then added the 808ish-BD in Machine slot 4. It loaded, but the moment I try change it, or save the patch, it crashes again with the same crash report.

Skipping the recall saved patch again, then loading up the previous saved patch with the 3 synth machines worked fine. No crashed or <<<< Out of RAM >>>> reports.

I then added different drums engines to machine 4, saving, then rebooting the module. No issues.

I then loaded the 808ish-BD back into Machine slot 4 and tried to save, and received a crash report again.

It seems to be localised to that 808ish-BD machine.

Hope that helps!

@mrmattallison
Copy link
Author

IMG_7051
IMG_7052

@eh2k
Copy link
Owner

eh2k commented Nov 4, 2024

@mrmattallison

Thank you - I can reproduce this too (all versions > e030c30).

  1. Start skipping patch restore (keep right button pressed during Startup)
  2. Load first 808ish-BD in slot 1
  3. Load second 808ish-BD in slot 2 (Crash immediately in the engine menu)

I need to investigate this further - probably a dynamic loader bug.

eh2k added a commit that referenced this issue Nov 6, 2024
@eh2k eh2k changed the title Crash reports on latest Firmware - 39a9940 Crash reports on 39a9940 Firmware Nov 6, 2024
@eh2k
Copy link
Owner

eh2k commented Nov 6, 2024

@mrmattallison - short update on this.

have now investigated this in more detail and tested it more intensively. The crash could also be caused with the CV/EnvGen_ADSR and FX/JU60_Chorus.

I have refactored the sources a bit, the whole thing is a bit tricky (heap corruption?!). In the end it could also be a compiler bug. In any case, the gcc parameter --no-inline seems to solve the issue reliably.

In any case, I could no longer reproduce any crashes in the last version - dc35138.

@eh2k eh2k added bug Something isn't working fixed_in_latest labels Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed_in_latest
Projects
None yet
Development

No branches or pull requests

2 participants