mohanson / gameboy

Full featured Cross-platform GameBoy emulator by Rust. Forever boys!.
MIT License
1.36k stars 79 forks source link

Segfault on start, I believe I know the problem #18

Closed Phate6660 closed 4 years ago

Phate6660 commented 4 years ago

I'm currently running bspwm, and everything is set to tiling.

I believe the issue is that gameboy is trying to launch with specific geometry size, but since it can't due to tiling, it segfaults.

If I'm right, I can fix this by setting bspwm to float that window.

The problem though, is that I can't obtain the wm_class since the window instantly closes.

So could you tell me what the wm_class is?

mohanson commented 4 years ago

I haven't used bspwm so it is difficult for me to really understand your problem, but commenting out these lines may be useful, probably a problem with the GUI library minifb.

https://github.com/mohanson/gameboy/blob/master/src/main.rs#L31-L37

Phate6660 commented 4 years ago

Simply changing option.resize to false did the trick.

Thanks for the help.