Skip to content

Commit

Permalink
feat: add deadlock detection support (#1277)
Browse files Browse the repository at this point in the history
  • Loading branch information
HashEngineering authored Apr 8, 2024
1 parent 03c6f5c commit 3b24d8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ buildscript {
kotlin_version = '1.8.22'
coroutinesVersion = '1.6.4'
ok_http_version = '4.9.1'
dashjVersion = '20.0.3'
dashjVersion = '20.0.4-SNAPSHOT'
hiltVersion = '2.45'
hiltWorkVersion = '1.0.0'
workRuntimeVersion='2.7.1'
Expand Down
3 changes: 3 additions & 0 deletions wallet/src/de/schildbach/wallet/WalletApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ protected void onStoppedLast() {
}

CrashReporter.init(getCacheDir());
// enable deadlock warnings to try to catch the cause of the stuck at "Syncing 31%"
Threading.setUseDefaultAndroidPolicy(false);
Threading.warnOnLockCycles();

Threading.uncaughtExceptionHandler = (thread, throwable) -> {
log.info("dashj uncaught exception", throwable);
Expand Down

0 comments on commit 3b24d8d

Please sign in to comment.