-
Notifications
You must be signed in to change notification settings - Fork 60
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 when executing QEMU (QEMU-178) #89
Comments
This issue has been fixed in 53e8f0a. |
This fix wasn't pushed to the latest official SDK tools. I had to download the latest artifact and replaced my Qemu binaries with them. https://github.com/espressif/qemu/actions/runs/7178958612 I'm still getting the same error. |
That's interesting... are you sure you are running the new QEMU binary you have downloaded and not the one installed by the SDK? To check, could you please try running |
QEMU emulator version 8.1.3 (g53e8f0a9) |
Just for your information, I discovered the undocumented idf.py qemu command. It logs to the terminal without displaying the virtual LCD windows. I copied its command-line echo and removed the -nographic flag, which opens up the virtual LCD and crashes. Is it possible the code sample program may be the culprit? Could it be that it wasn't intended to display graphics, hence the addition of the -nographic flag? I can't see why anyone would want to run the example without any graphics. |
The command is in fact documented here, however the merge request for graphics support in that command ( I am running the same example program but unfortunately can't reproduce the issue you are seeing. I am running macOS 13.5.1, which version do you have? Could you please try the same example, but for the esp32 target? Use If that doesn't help, the only other idea I have is to try building QEMU with |
I'm running sonoma version 14. Let me try the esp32. |
I was able to successfully run the QEMU emulation with graphics. There are two issues. First, idf detects the qemu binaries as not matching the current release and doesn't add them to the path. Second, while running QEMU, I haven't been able to quit the emulator without terminating the terminal. It doesn't respond to any of the keystrokes. It also causes side-effects such as stuck menus and disappearing cursors. |
I see, I didn't realize you were overwriting the version downloaded by IDF with a different one. Yeah, that won't work. Typically when testing a different build of QEMU I have it in a different directory, and simply prepend this directory to PATH in the terminal where I am testing it. You can run
If you are running Alternatively, you can run |
I tried to follow the instruction for QEMU RGB Panel and I successfully built the project and image. When I tried to execute it using QEMU, a window flashed briefly on the screen followed by an crash report on MacOS:
I typed the following command according to the tutorial:
After the crash report was displayed, the following was displayed on the console:
The text was updated successfully, but these errors were encountered: