Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Random freezes with 1.0.4 #23

Open
schleinzer opened this issue May 10, 2020 · 11 comments
Open

Random freezes with 1.0.4 #23

schleinzer opened this issue May 10, 2020 · 11 comments

Comments

@schleinzer
Copy link

First of all: thanks a lot for your great work, really like the lib!

During my testing I encounter frequent freezes ("application not responding") on Windows. Sometimes the app "unfreezes" after about 30 seconds, sometimes when I stop it using the debugger and resume, but often the freeze persists.

I don't yet have a real clue what's the cause, but I can tell there are no freezes with 1.0.3.

So I post this issue in case other users are looking for the same symptoms and one can see if something's wrong at my side or there is some more serious problem :-)

Thanks again - stay healthy!

@electronstudio
Copy link
Owner

electronstudio commented May 10, 2020

The changes between 1.0.3 and 1.0.4 in order of magnitude:

  • SDL version 2.0.9 to 2.0.12
  • Enable hidapi when compiling SDL
  • Include Jimbly patches by default (because they have now been included in SDL 2.0.13 anyway)
  • Build in release rather than debug mode

So to debug this, I would undo each of these changes one at a time until it works again. Also might be worth trying to use SDL 2.0.10 and SDL 2.0.13.

However I would need a way of reproducing the problem to know if it had been fixed!

One thing you could try is using sdl2gdx release version 1.0.3-jimblyfrom maven. This is 1.0.3 (which apparently works) plus the Jimbly patches. So if this fails to work then it would show the problem is with the patches.

@schleinzer
Copy link
Author

schleinzer commented May 10, 2020

Thanks a lot for getting back to me so quickly and your very helpful answer :-)

I did a quick test, using 1.0.3-jimbly instead of 1.0.3 and the freezes are back!

Reverting to 1.0.3 and the freezes are gone again :-)

So, it seems, there is a problem with the patches (on my setup)...

@icefill
Copy link

icefill commented Jun 6, 2020

1.0.4 Freezes when the game window is unfocused in my case. Does not occur in 1.0.3

@electronstudio
Copy link
Owner

I have seen that, but for me it unfreezes after a few seconds when I switch back to the window.

I think the thing to do is put out a v1.0.5 release that is based on the vanilla SDL 2.0.12. See if that works for everyone. If so, then do a v1.0.5-jimbly release that includes the latest patches for those like me that need more than 4 player support.

@schleinzer
Copy link
Author

That would be awesome, thanks for your efforts! (Ever thought about enabling github sponsorship for this project ;-) ?)

@electronstudio
Copy link
Owner

2.0.14 is out and includes the raw support from jimbly and is (i assume) stable, so hopefully we can now do a release based on that which will please everyone.

@morvael
Copy link

morvael commented Aug 30, 2021

Any news about new release?

@MrStahlfelge
Copy link

@morvael Check if official gdx-controllers solve your problems. If not, open an issue there.

@morvael
Copy link

morvael commented Aug 30, 2021

My project is not using LibGDX (not directly at least). So the version pulled from dependencies is 1.9.9, quite a bit behind the version on the linked page.

@electronstudio
Copy link
Owner

Basially the GDX people took an old, inferior version of this project, forked it without telling me, and incorporated into gdx-controllers. After that I lost motivation to work on this entirely for the benefit of other people for free. Will probably return to it if I need it for myself for eventually. Until then you may as well use gdx-controllers.

@morvael
Copy link

morvael commented Aug 30, 2021

Meanwhile I got completely lost between JInput, 2 versions of Jamepad, sdl2gdx, and gdx-controllers with or without the rest of gdx...

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants