question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Drawing example image crashes on Android 2.3.3

See original GitHub issue

Please ensure you have given all the following requested information in your report.

Issue details

Pretty much the title. With the example script gdx-setup.jar produces, if batch.draw(img, 0, 0); is commented out, the app does not crash.

Reproduction steps/code

Import the example produced by gdx-setup.jar into Android Studio and run the app on a device with Android Froyo or Gingerbread. The issue is specifically occurring on the GT-S5830 with the latest stock ROM (rooted but otherwise unmodified). This issue does not occur using the same device with Android 4.2.2 (custom ROM).

Version of LibGDX and/or relevant dependencies

  • LibGDX 1.9.10
  • Android Studio 3.4.2
  • Gradle 5.4.1
  • SDK 29.0.2

Stacktrace

09-09 15:19:55.649 2301-2309/my.app E/AndroidRuntime: FATAL EXCEPTION: GLThread 10
    java.lang.UnsupportedOperationException: glBlendFuncSeparate
        at android.opengl.GLES20.glBlendFuncSeparate(Native Method)
        at com.badlogic.gdx.backends.android.AndroidGL20.glBlendFuncSeparate(AndroidGL20.java:76)
        at com.badlogic.gdx.graphics.g2d.SpriteBatch.flush(SpriteBatch.java:970)
        at com.badlogic.gdx.graphics.g2d.SpriteBatch.end(SpriteBatch.java:185)
        at my.app.MyApp.render(MyApp.java:27)
        at com.badlogic.gdx.backends.android.AndroidGraphics.onDrawFrame(AndroidGraphics.java:494)
        at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1388)
        at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1138)
09-09 15:19:59.849 2301-2301/my.app E/AndroidGraphics: waiting for pause synchronization took too long; assuming deadlock and killing

Please select the affected platforms

  • Android
  • iOS (robovm)
  • iOS (MOE)
  • HTML/GWT
  • Windows
  • Linux
  • MacOS

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

8reactions
MobiDevelopcommented, Aug 12, 2019

The minimum minimum for modern Android should be 14, so we should probably at least bump to that.

0reactions
noblemastercommented, Nov 15, 2019

The https://github.com/libgdx/libgdx/pull/5787 pull request updates the minSDK to 14 as proposed here. Let’s consider this closed. Thanks everyone for feedback! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android app crashes as soon as i download image
i got a little problem with downloading images from the web to my android project. Everytime i try to connect to the internet...
Read more >
Managing Bitmap Memory - Android Developers
On Android 2.3.3 (API level 10) and lower, the backing pixel data for a bitmap is stored in native memory. It is separate...
Read more >
Top 10 Most Common Mistakes That Android Developers Make
Here's a quick list of examples: Use gradle as a build system. Use Retrofit / Volley for network calls. Use Picasso for image...
Read more >
Keyboard keeps crashing/breaking - Nexus One [36926367]
I have to manually crash the keyboard. I had no issues like this with the old keyboard. Nexus One Android 2.3.3. Build GRI40 ......
Read more >
Bug listing with status RESOLVED with resolution TEST ...
... Bug:35604 - "app-doc/mkdoxy-1.0.0.ebuild (New Package)" status:RESOLVED ... from uncommon size pictures for gensplash crashes kernel" status:RESOLVED ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found