Skip to content

Commit

Permalink
Exceptions occurring on Runnable tasks no longer swallowed (libgdx#7384)
Browse files Browse the repository at this point in the history
* Exceptions occurring on Runnable tasks no longer swallowed on Android and iOS

* Generate MobiVM MetalANGLE backend

---------

Co-authored-by: GitHub Action <[email protected]>
  • Loading branch information
obigu and actions-user authored Apr 19, 2024
1 parent 942b821 commit 8a2504f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 15 deletions.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[1.12.2-SNAPSHOT]
- [BREAKING CHANGE] GWT: Updated to 2.10.0. `com.google.jsinterop:jsinterop-annotations:2.0.2:sources` must be added as a dependency to your html project dependencies.
- [BREAKING CHANGE] Android: Minimum API level is now level 19 (Android 4.4)
- [BREAKING CHANGE] Android, iOS: Exceptions occurring in Runnable tasks scheduled through Gdx.app.postRunnable() are no longer swallowed and will crash the app (add a protection if required).
- iOS: The iOS backend now implements AudioDevice. It can be configured through IOSApplicationConfiguration with audioDeviceBufferSize/audioDeviceBufferCount
- Fixed GlyphLayout for fixed width glyph offsets at the start and end of lines.
- Fixed scene2d.ui layout for fractional positions and sizes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -494,11 +494,7 @@ public void onDrawFrame (javax.microedition.khronos.opengles.GL10 gl) {
}

for (int i = 0; i < app.getExecutedRunnables().size; i++) {
try {
app.getExecutedRunnables().get(i).run();
} catch (Throwable t) {
t.printStackTrace();
}
app.getExecutedRunnables().get(i).run();
}
app.getInput().processEvents();
frameId++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,11 +394,7 @@ public void processRunnables () {
runnables.clear();
}
for (int i = 0; i < executedRunnables.size; i++) {
try {
executedRunnables.get(i).run();
} catch (Throwable t) {
t.printStackTrace();
}
executedRunnables.get(i).run();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,11 +413,7 @@ public void processRunnables () {
runnables.clear();
}
for (int i = 0; i < executedRunnables.size; i++) {
try {
executedRunnables.get(i).run();
} catch (Throwable t) {
t.printStackTrace();
}
executedRunnables.get(i).run();
}
}

Expand Down

0 comments on commit 8a2504f

Please sign in to comment.