commit ccc537d422172539be6b8f29f904f5809c52574d
parent b963a7a9232f618d6529ae89e3388b4be0172c26
Author: t3sserakt <t3ss@posteo.de>
Date: Tue, 19 May 2026 21:58:36 +0200
Add diagnostic logging to sendText AIDL call to trace where it hangs
Diffstat:
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/GNUnetMessenger/app/src/main/java/org/gnunet/gnunetmessenger/service/boundimpl/GnunetChatBoundService.kt b/GNUnetMessenger/app/src/main/java/org/gnunet/gnunetmessenger/service/boundimpl/GnunetChatBoundService.kt
@@ -843,12 +843,20 @@ class GnunetChatBoundService(
Log.d(
TAG,
"sendText[client]: nativeCtxPtr=${dto.nativeContextPointer} " +
- "userPtr=${dto.userPointer} textLen=${text.length}"
+ "userPtr=${dto.userPointer} textLen=${text.length} " +
+ "lastHandle=${lastHandle.pointer}"
)
- runBlocking {
- withReadyRemote(lastHandle) { remote, _ ->
- remote.sendText(dto, text)
+ try {
+ runBlocking {
+ withReadyRemote(lastHandle) { remote, _ ->
+ Log.d(TAG, "sendText[client]: calling AIDL remote.sendText...")
+ remote.sendText(dto, text)
+ Log.d(TAG, "sendText[client]: AIDL remote.sendText returned OK")
+ }
}
+ } catch (t: Throwable) {
+ Log.e(TAG, "sendText[client]: AIDL call FAILED", t)
+ throw t
}
}