The Wayback Machine - https://web.archive.org/web/20201129151140/https://github.com/libgdx/libgdx/issues/4924
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

Tooltips broken on Android #4924

Open
Dakror opened this issue Oct 12, 2017 · 7 comments
Open

Tooltips broken on Android #4924

Dakror opened this issue Oct 12, 2017 · 7 comments

Comments

@Dakror
Copy link

@Dakror Dakror commented Oct 12, 2017

Issue details

Tooltips broken on Android. They do not show but cause an exception instead.
Also referenced in #4921

Reproduction steps/code

Run the UITest on android (i used a Huawei P8, Android 5)

Version of LibGDX and/or relevant dependencies

1.9.6

Stacktrace

10-12 18:23:17.610 571-761/com.badlogic.gdx.tests.android W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'com.badlogic.gdx.scenes.scene2d.Stage com.badlogic.gdx.scenes.scene2d.Actor.getStage()' on a null object reference
10-12 18:23:17.610 571-761/com.badlogic.gdx.tests.android W/System.err:     at com.badlogic.gdx.scenes.scene2d.ui.TooltipManager$2.run(TooltipManager.java:69)
10-12 18:23:17.610 571-761/com.badlogic.gdx.tests.android W/System.err:     at com.badlogic.gdx.backends.android.AndroidGraphics.onDrawFrame(AndroidGraphics.java:488)
10-12 18:23:17.610 571-761/com.badlogic.gdx.tests.android W/System.err:     at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1531)
10-12 18:23:17.610 571-761/com.badlogic.gdx.tests.android W/System.err:     at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1248)

Please select the affected platforms

  • Android
  • iOS (robovm)
  • iOS (MOE)
  • HTML/GWT
  • Windows
  • Linux
  • MacOS
@Tom-Ski
Copy link
Member

@Tom-Ski Tom-Ski commented Oct 25, 2017

I can't reproduce this on my device. You are running the stock UITest, what are the exact steps to reproduce? What are you hovering over etc?

@Dakror
Copy link
Author

@Dakror Dakror commented Oct 25, 2017

I'm running the stock UITest and when tapping on the Button "Multi Line Toggle" there should be a tooltip popping up, but instead an exception gets thrown. As stated in the PR, using a real Android phone for this.

@Tom-Ski
Copy link
Member

@Tom-Ski Tom-Ski commented Oct 26, 2017

Yeah, I can't reproduce this with your steps. I'll try find another device to test on to see if i can it there. Otherwise, hopefully someone else can reproduce and test.

@Zomby2D
Copy link
Contributor

@Zomby2D Zomby2D commented Nov 23, 2017

I tried various phones and tablets with Android versions ranging from 4.1.2 to 7.1, and I can't reproduce the issue either. The tooltip always pops up correctly for me. (I tried with both USB and Bluetooth mices)

Are there any other steps I might be missing here?

@Dakror
Copy link
Author

@Dakror Dakror commented Nov 23, 2017

No there are no other steps involved. I sadly do not have any other working phone around to pin point the issue to my device specifically. Huawei is involved in all kinds of weird Android bugs though.

Using the Huawei P8 for this.

@JasonMacKeigan
Copy link

@JasonMacKeigan JasonMacKeigan commented May 31, 2018

This same issue is occurring for me as well. Unfortunately I haven't been able to pinpoint the issue either. Tooltips are just simply not showing on Android. I'm using an Android Pixel with API 26.

@mobiuscog
Copy link

@mobiuscog mobiuscog commented Jul 8, 2018

It's likely a race condition as TooltipManager isn't thread-safe - there are no synchronization / guard blocks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants
You can’t perform that action at this time.