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

Fixing emulator bug #391 #392

Merged

Conversation

lukolszewski
Copy link
Contributor

The emulator would crash for me. This is either because SDL was not initialised before SDL_WaitEvent was called, or more likely because anothe thread was trying to use SDL at the same time. This fixes both by initialising SDL earlier and by setting up a mutex that locks access to SDL when the input thread works.

This affects the emulator only, it has no impact on running on the goggles

src/core/input_device.c Outdated Show resolved Hide resolved
src/core/main.c Outdated Show resolved Hide resolved
src/core/main.c Outdated Show resolved Hide resolved
src/ui/ui_porting.c Outdated Show resolved Hide resolved
@lukolszewski
Copy link
Contributor Author

Thanks for the review, all changes were added..

@ligenxxxx
Copy link
Member

@lukolszewski Build firmware failed. Please fix this.

@SumolX
Copy link
Contributor

SumolX commented Jun 18, 2024

@lukolszewski Is the PR abandoned? If not please do update the branch and we can get it merged into main. Thank You.

@eliasrenman
Copy link
Contributor

eliasrenman commented Jul 3, 2024

I went ahead and fixed this over at #428 so please have a look there 😀

@ligenxxxx ligenxxxx merged commit c000f66 into hd-zero:main Jul 27, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants