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

Crash with libGDX 1.9.9 #46

Closed
mattyoung101 opened this issue Jan 13, 2019 · 3 comments · Fixed by #47
Closed

Crash with libGDX 1.9.9 #46

mattyoung101 opened this issue Jan 13, 2019 · 3 comments · Fixed by #47

Comments

@mattyoung101
Copy link

When using the latest libGDX v1.9.9 and the latest libgdx-inGameConsole v1.0.0b-SNAPSHOT, if you create a GUIConsole with the default empty constructor, the app crashes with the following stacktrace:

Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: java.lang.NoSuchMethodError: com.badlogic.gdx.InputMultiplexer.getProcessors()Lcom/badlogic/gdx/utils/Array;
	at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:133)
Caused by: java.lang.NoSuchMethodError: com.badlogic.gdx.InputMultiplexer.getProcessors()Lcom/badlogic/gdx/utils/Array;
	at com.strongjoshua.console.GUIConsole.hasStage(GUIConsole.java:259)
	at com.strongjoshua.console.GUIConsole.resetInputProcessing(GUIConsole.java:233)
	at com.strongjoshua.console.GUIConsole.<init>(GUIConsole.java:152)
	at com.strongjoshua.console.GUIConsole.<init>(GUIConsole.java:127)
	at com.strongjoshua.console.GUIConsole.<init>(GUIConsole.java:113)
	at com.strongjoshua.console.GUIConsole.<init>(GUIConsole.java:86)
	at com.strongjoshua.console.GUIConsole.<init>(GUIConsole.java:73)

It seems to be due to a breaking change introduced to InputMultiplexer in 1.9.9.

@AkashaP
Copy link
Contributor

AkashaP commented Jan 28, 2019

I have fixed the issue on my branch
https://github.com/Draika/libgdx-inGameConsole/

The problem is that in 1.9.9 the GuiConsole has changed the getProcessors method to return a SnapshotArray instead of a normal Array

AkashaP pushed a commit to AkashaP/libgdx-inGameConsole that referenced this issue Jan 28, 2019
@mattyoung101
Copy link
Author

That looks great, thanks for your work! Hopefully @StrongJoshua will merge the PR soon.

@rabbitfr
Copy link

Hi, can you merge the PR ?

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 a pull request may close this issue.

3 participants