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

[BUG] SD image can't be loaded after pressing "Generate Empty Image" in the simulator. #25602

Closed
1 task done
mriscoc opened this issue Mar 30, 2023 · 6 comments · Fixed by #25648
Closed
1 task done
Assignees
Labels
Bug: Confirmed ! T: Development Makefiles, PlatformIO, Python scripts, etc.

Comments

@mriscoc
Copy link
Contributor

mriscoc commented Mar 30, 2023

Did you test the latest bugfix-2.1.x code?

Yes, and the problem still exists.

Bug Description

The simulator allows you to test some Marlin functions without having a physical printer. It is possible to simulate a SD memory card by loading an image file, the simulator itself can create an empty image by pressing Generate Empty Image button:
image
But, after the image is created and loaded an error is shown in the console: "Error: volume, init failed"
image

Simulator compiled and running under Windows 10 with the example configuration files from the configuration repository.

The image is generated correctly, it was tested with third-party software.
image

Bug Timeline

There are no previous notices about it

Expected behavior

SD image must be loaded by the simulator without errors.

Actual behavior

SD images can't be loaded by the simulator.

The image was then formatted to FAT32 with the same error.

Steps to Reproduce

Download latest bugfix
Install simulator dependencies
Download simulator configuration files
Compile simulator
Run simulator
Pressing "Generate Empty Image" button:
image
The image is created but an error is shown in the console: "Error: volume, init failed"
image

Version of Marlin Firmware

Latest Marlin Bugfix

Printer model

Simulator

Electronics

Simulator

Add-ons

None

Bed Leveling

None

Your Slicer

None

Host Software

None

Don't forget to include

  • A ZIP file containing your Configuration.h and Configuration_adv.h.

Additional information & file uploads

No response

@EvilGremlin
Copy link
Contributor

Probably better to file up in actual sim repo https://github.com/p3p/MarlinSimUI
Tried it in linux yet?

@thinkyhead thinkyhead added the T: Development Makefiles, PlatformIO, Python scripts, etc. label Apr 3, 2023
@p3p
Copy link
Member

p3p commented Apr 3, 2023

Unable to replicate at the moment will need to try on Windows though, make sure you are using the most recent version, delete both .pio in Marlin, and .cache that should be in .platformio in your home folder.

@p3p
Copy link
Member

p3p commented Apr 7, 2023

p3p/MarlinSimUI#22

Turns out the issue was in Marlin and not the sim after all, although can't really blame it for the compiler on Windows messing up the bit packing.

@mriscoc
Copy link
Contributor Author

mriscoc commented Apr 7, 2023

@p3p thanks!

@thisiskeithb
Copy link
Member

Closing since there’s now a PR.

@github-actions
Copy link

github-actions bot commented Jun 7, 2023

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug: Confirmed ! T: Development Makefiles, PlatformIO, Python scripts, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants