-
Notifications
You must be signed in to change notification settings - Fork 45
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
Bus error with release version #114
Comments
Could you upload the "release" binary? |
Ah and second thing, try compile in debug with flags: |
Please find release attached
I'll check debug now... |
Debug crashed too with
|
Hmm, I used your binary and completed one race on R-Pi 4 without problems. What should I do to reproduce? Any settings, gamepads, wheels? |
Completed another race with gamepad. |
Also tried on very old HTC Sensation Android phone - runs stable. |
If you can crash |
I see. I'm running this on a device called RGB30, which is based on a RK3566 SoC and running an OS called JELOS This port is installed through a tool called PortMaster There might all sorts of issues, my cpu/gpu acting weird, or buggy lib32 libs. Thanks for your help on testing this so far, and at least we were able set a baseline with rpi4 and verified this was a problem on my end. I'll try the gdb method you suggested and let you know of my findings. |
Ok, I see. |
When do you have crash? Just after loading a race? |
If I use the binary provided by Portmaster as is, I get a crash during the game, not on startup - after 30-40sec e.g the first downhill in Mediterranean track. If I use the latest from the master and compile myself, as I posted the binaries above - the crash just happens on game startup - just black screen, and then nothing. Referring to a previous issue I was able to run it, but getting a crash in the game during a race. Again using an older version of your game.
|
Ok, I'll check if I can align floats/doubles, but tomorrow! |
I'm not sure if this information is useful, but every bit might help. @edemirkan is using a Rockchip BSP 4.19 kernel plus Mali GPU drivers and KMS/DRM with their Powkiddy RGB30 on JELOS. I am using a 6.7 mainline Linux kernel plus Panfrost GPU drivers and Weston / Wayland with my Odroid Go Ultra on JELOS. Using the same binary (older version plus texturing and GLES2 renderer fix cherry-picked) here: #112 (comment) I do not have any crashes, runs perfectly, while @edemirkan gets crashes in-race. |
@edemirkan @porschemad911 Could you check |
I'll check your branch shortly. This following was what I got from debug
|
Bus error in Edit: I removed |
|
So you have bus error on Edit: Maybe I shouldn't use |
The bus error comes from (compile with int main()
{
char data[16] = {}; // address of `data` is dividible at least by `4` on stach (compiler must ensure it)
auto &f = *(float *)&data[1]; // `f` is a reference, address of `f` is not dividible by `4` which is needed here
f = 123.0f; // bus error
return 0;
} |
Attached binary recompiled from Log:
@edemirkan how is it for you? |
@porschemad911 Nice! |
Good news on my end too. I was able to do a full 4 laps on Mediterranean track, and no crashes. Thank you so much for your help.
I'll continue testing, and update this issue if anything changes. Have a wonderful night! |
@zaps166 As an aside, I notice you've removed the
I then assigned these d-pad buttons to keyboard arrow keys via the gptokeyb keyboard mapper. This just made it easy to navigate menus with the d-pad but use the analogue stick for steering via in-game axis mapping. The stick does work fine for menu navigation, but it's a bit clunky vs the d-pad. Not a big deal of course, just wondering ... and thank you for all your work! |
I removed it when introduced 32 buttons fix (see #104). I thought it's no longer needed to map buttons, because 32 is enough, but I forgot it might be used to disable buttons 😅 I can restore it as Good to hear, thanks for testing! |
@zaps166 Something like |
@porschemad911 Added as |
Hi,
Following up your advice here I compiled using latest code from master for my
arm32v7
platform but getting the following error on startup;Debug does not crash, runs - I haven't played much but looks stable, however super slow..
The only difference I see between release and debug is optimization flags and binary stripping.
Any ideas what might be the issue ? Any suggestions what can I check further?
More info on my build environment;
I also attached a readelf dump of the release binary I compiled.
readelf.txt
The text was updated successfully, but these errors were encountered: