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
[git][SDL2]Dosbox-X crashes on start if I set machine to amstrad. #2677
Comments
Tried with SDL1, another crash. Here is the backtrace I got from the coredump:
Hope it helps! |
Done some research: you have to go back to dosbox-x 0.83.13 to get a starting dosbox-x version with machine=amstrad. |
I'm unable to do this myself for the moment, but a |
I just have to found how to get a specific commit on github. I cannot get this to work. Will try later this week. |
Evidently some bitrot has set in, if Amstrad is crashing like that. @FredBezies You have a local copy you made with "git clone", correct? Use "git log" to get a list of each commit. You can then do a "git checkout" followed by the commit number to get a snapshot of the files at that commit. You can also git checkout by tag name. |
First feedback. Looks like this regression happened on May 21st, 2021. I got a working build based on commit af95e80 (pushed on May 2nd, 2021). When I tested a build based on commit f8c5092 (the last one pushed on May 21st, 2021), I got a crash. I will test every commit pushed on May 21st, 2021 and report ASAP. |
I am checking this too. The issue appears to only happen on non-Windows platforms (no crash on Windows) with non-TTF outputs. You may also avoid the crash on Linux with
|
Got the guilty commit. It is commit 2f68df5 I have to say I don't know why this commit breaks machine=amstrad value in dosbox-x |
@FredBezies The said commit only changed the Config Tool and is supposed to have absolutely nothing to do with amstrad. Are you sure if it is this commit? |
Well... Looks like I stepped on a bug which get fixed a little later. Still searching. Looks like I lost myself in all these commits. I will retry from "scratch" all commits of may 2021. It will be a long afternoon... |
So, I started my git bissecting from scratch. I knew that Dosbox-X 0.83.13 was OK, but not 0.84.14. I browse each backward, starting by May 31st, and going back one day each time to find the last working day. I used last commit of every day. After 2 hours (each day testing took me around 5 to 10 minutes), I found the last working day was May 14th, 2021, commit 4d51ffd. Well, I think I found the real guilty here: It is commit 5860652. As soon as I built Dosbox-X using git checkout 5860652 and build script, the executable crashes. When I tried May 15th last commit 4d51ffd, it was broken. I will look at which commit is guilty now. And of course, -fastlaunch works too :) |
@FredBezies Can you test out PR #2681 and see if it fixes your crash? |
Tried your branch, without luck. Maybe trying directly on main code will work better? Edit: I made a debug build and got a stacktrace. Here is the output:
|
With the code in PR #2681 it works for me too (thanks @cimarronm). Perhaps @FredBezies can test it again once it is merged. |
Finding the cause of this error is not so easy. Because the effects are different for surface and opengl as well as SDL1 and SDL2. I narrowed my search to SDL2 and the opengl output only. |
You find the same commit I reported earlier. See PR #2681. And yes, it was long and hard to find this commit. |
I still have a problem with that. Same binary running under Archlinux Linux 5.13.1 Surprisingly not obvious. |
@grapeli: both surface and opengl works for me on start. Could it be related to your hardware? I'm using a Ryzen3 2200G (which integrates a GPU) without any crash on start on my three and half years old Archlinux installation. |
It was related to the MESA version (opengl) I was using. With the current one, it starts up flawlessly. I don't know why the surface output is failing under GCP. I don't think there is any point in investigating, because this commit definitely fixes this unfortunate error. |
Ok. So let's close this bug now. |
Describe the bug
Hello.
Using a Dosbox-X based on commit 5e41a63, I noticed it crashes right after I set machine to amstrad.
It crashes without logging anything when launched from terminal :(
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Dosbox-X not crashing.
Environment (please complete the following information):
Here is the coredump backtrace I got:
The text was updated successfully, but these errors were encountered: