zoff99 / ToxAndroidRefImpl

Tox Reference implementation for Android
GNU General Public License v3.0
270 stars 53 forks source link

Crash on login when Emoticon is used as status message #118

Closed mawis closed 4 years ago

mawis commented 4 years ago

Your system information:

TRIfA Version: 1.0.26

App from: F-Droid

Android OS Version: 9 PKQ1.190118.001 MIUI Global 11.0.3 Stable 11.0.3.0(PDEMIXM)

Device: XiaoMi Mi MIX 2 (chiron)

Please describe your issue in as much detail as possible:

TRIfA crashes after starting the app, entering the Password and pressing the Unlock button. I get the contact list for a very short time, then the orange screen “TRIfA crashed press to restart TRIfA send Crashreport after restart on the 'About Page'“ appears.

Steps for reproducing this issue:

Not sure if this is a reproducable issue, but I try to summarize what I did:

I cannot send the crash report from the about page, because the crash always happens before I'm able to open any page. What I could do is capture the Android log using adb. The log starts after entering the password but before pressing the UNLOCK button.

12-17 20:39:46.854  1540  1990 I chatty  : uid=1000(system) MiuiGestureCont identical 16 lines
12-17 20:39:47.472  1540  1990 W MiuiGesturePointerEventListener: onActionDown end: mGestureStatus = 0
12-17 20:39:53.758   937  1084 E storaged: getDiskStats failed with result NOT_SUPPORTED and size 0
12-17 20:39:51.292 13079 13087 I chatty  : uid=10306(ohi.andre.consolelauncher) FinalizerDaemon identical 4 lines
12-17 20:39:51.292 13079 13087 W System  : A resource failed to call close. 
12-17 20:39:53.847   734  2982 E ANDR-PERF-MPCTL: poll() has timed out for /sys/module/msm_performance/events/cpu_hotplug
12-17 20:39:53.847   734  2982 E ANDR-PERF-MPCTL: Block on poll()
12-17 20:39:53.924  1540  1990 W MiuiGesturePointerEventListener: onActionDown end: mGestureStatus = 0
12-17 20:39:53.953  8627  8627 I trifa.CheckPasswordActy: attemptUnlock
12-17 20:39:53.966  8627  9014 I trifa.CheckPasswordActy: db:path=/data/user/0/com.zoffcc.applications.trifa/app_dbs/main.db
12-17 20:39:54.168  2044  2230 D NetworkController.MobileSignalController(1): 4G level = 3
12-17 20:39:54.266  8627  9014 I trifa.CheckPasswordActy: db:open=OK:path=/data/user/0/com.zoffcc.applications.trifa/app_dbs/main.db
12-17 20:39:54.268  8627  8627 I Timeline: Timeline: Activity_launch_request time:896757756
12-17 20:39:54.276 32025  8792 E zeus-AndroidUtils-[pool-7-thread-12]: top : com.zoffcc.applications.trifa
12-17 20:39:54.277 32025  8792 E AD-PLUGIN-SplashController: This package is fore ground , skip splash : com.zoffcc.applications.trifa
12-17 20:39:54.277  1540  2353 I ActivityManager: START u0 {cmp=com.zoffcc.applications.trifa/.MainActivity} from uid 10325
12-17 20:39:54.287  1540  2353 D CompatibilityInfo: mCompatibilityFlags - 0
12-17 20:39:54.287  1540  2353 D CompatibilityInfo: applicationDensity - 440
12-17 20:39:54.287  1540  2353 D CompatibilityInfo: applicationScale - 1.0
12-17 20:39:54.293  1540  2353 D ActivityTrigger: ActivityTrigger activityPauseTrigger 
12-17 20:39:54.307  1540  3602 D CompatibilityInfo: mCompatibilityFlags - 0
12-17 20:39:54.307  1540  3602 D CompatibilityInfo: applicationDensity - 440
12-17 20:39:54.307  1540  3602 D CompatibilityInfo: applicationScale - 1.0
12-17 20:39:54.310  1540  3602 I Timeline: Timeline: App_transition_ready time:896757799
12-17 20:39:54.311  8627  8627 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@396c691
12-17 20:39:54.313  8627  8627 I trifa.MainActivity: onCreate
12-17 20:39:54.338  8627  8627 I AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
12-17 20:39:54.352  8627  8627 I trifa.FriendListFrgnt: onAttach(Context)
12-17 20:39:54.352  8627  8627 I trifa.FriendListFrgnt: onAttach(Activity)
12-17 20:39:54.352  8627  8627 I trifa.FriendListFrgnt: onCreateView
12-17 20:39:54.358  8627  8627 I trifa.FriendListFrgnt: onCreateView:view1=android.widget.RelativeLayout{b761b65 V.E...... ......I. 0,0-0,0}
12-17 20:39:54.359  8627  8627 I trifa.FriendlistAdapter: FriendlistAdapter
12-17 20:39:54.359  8627  8627 I trifa.FriendListFrgnt: onCreateView:adapter=com.zoffcc.applications.trifa.FriendlistAdapter@2c0a03a
12-17 20:39:54.359  8627  8627 I trifa.FriendListFrgnt: onCreateView:listingsView=com.l4digital.fastscroll.FastScrollRecyclerView{3b214eb VFED..... ......I. 0,0-0,0 #7f09014a app:id/rv_list}
12-17 20:39:54.359  8627  8627 I trifa.FriendListFrgnt: onViewCreated
12-17 20:39:54.366  8627  8627 I trifa.MainActivity: SD_CARD_FILES_EXPORT_DIR:/storage/emulated/0/Android/data/com.zoffcc.applications.trifa/files/vfs_export/
12-17 20:39:54.367  8627  8627 I trifa.MainActivity: java.library.path:/system/lib:/system/vendor/lib
12-17 20:39:54.372  8627  8627 I trifa.MainActivity: waiting_for_orbot_info:F5
12-17 20:39:54.372  8627  8627 I trifa.MainActivity: PREF__UV_reversed:2=true
12-17 20:39:54.372  8627  8627 I trifa.MainActivity: PREF__notification_sound:2=true
12-17 20:39:54.372  8627  8627 I trifa.MainActivity: PREF__notification_vibrate:2=true
12-17 20:39:54.408  8627  8627 I trifa.MainActivity: loaded:c-toxcore:v0.2.10
12-17 20:39:54.408  8627  8627 I trifa.MainActivity: loaded:jni-c-toxcore:v0.99.34
12-17 20:39:54.408  8627  8627 I trifa.MainActivity: db:path=/data/user/0/com.zoffcc.applications.trifa/app_dbs/main.db
12-17 20:39:54.601  8627  8627 I trifa.MainActivity: db:open=OK:path=/data/user/0/com.zoffcc.applications.trifa/app_dbs/main.db
12-17 20:39:54.601  8627  8627 I trifa.MainActivity: vfs:path=/data/user/0/com.zoffcc.applications.trifa/app_vfs/files.db
12-17 20:39:54.602  8627  8627 I JNI_OnLoad: JNI_OnLoad called
12-17 20:39:54.602  8627  8627 I JNI_OnLoad: JNI_OnLoad init cached classes in JniConstants:
12-17 20:39:54.603  8627  8627 I JNI_OnLoad: JNI_OnLoad register methods:
12-17 20:39:54.603  8627  8627 I JNI_OnLoad: JNI_OnLoad done
12-17 20:39:54.622  2044  2230 D NetworkController.MobileSignalController(4): 4G level = 5
12-17 20:39:54.732 13079 13079 D ConnectivityManager: getMobileDataEnabled()+ subId=1
12-17 20:39:54.732 13079 13079 D ConnectivityManager: getMobileDataEnabled()- subId=1 retVal=true
12-17 20:39:54.796  8627  8627 I trifa.MainActivity: vfs:open(1)=OK:path=/data/user/0/com.zoffcc.applications.trifa/app_vfs/files.db
12-17 20:39:54.796  8627  8627 I trifa.MainActivity: vfs:encrypted:(1)prefix=
12-17 20:39:54.796  8627  8627 I trifa.MainActivity: set_all_conferences_inactive:005
12-17 20:39:54.796  8627  9020 I trifa.MainActivity: cleanup_temp_dirs:---START---
12-17 20:39:54.811  8627  8627 I trifa.MainActivity: set_all_conferences_inactive
12-17 20:39:54.812  1540  3602 D CompatibilityInfo: mCompatibilityFlags - 0
12-17 20:39:54.812  1540  3602 D CompatibilityInfo: applicationDensity - 440
12-17 20:39:54.812  1540  3602 D CompatibilityInfo: applicationScale - 1.0
12-17 20:39:54.814  8627  8627 W Activity: Slow Operation: Activity com.zoffcc.applications.trifa/.MainActivity onCreate took 501ms
12-17 20:39:54.816  8627  8627 I trifa.FriendListFrgnt: onActivityCreated
12-17 20:39:54.816  8627  8627 I trifa.FriendListFrgnt: onStart
12-17 20:39:54.816  8627  8627 I trifa.MainActivity: onResume
12-17 20:39:54.817  8627  8627 I trifa.MainActivity: PREF__UV_reversed:2=true
12-17 20:39:54.817  8627  8627 I trifa.MainActivity: PREF__min_audio_samplingrate_out:2=48000
12-17 20:39:54.818  8627  8627 I trifa.FriendListFrgnt: onResume
12-17 20:39:54.823  1540  1897 V UiModeManager: switch night mode to 1
12-17 20:39:54.823  8627  8627 I Choreographer: Skipped 30 frames!  The application may be doing too much work on its main thread.
12-17 20:39:54.816  3444  3444 W Binder:3444_8: type=1400 audit(0.0:827699): avc: denied { getattr } for path="/proc/8627/task/8627/comm" dev="proc" ino=41307402 scontext=u:r:system_app:s0 tcontext=u:r:untrusted_app_27:s0:c512,c768 tclass=file permissive=0
12-17 20:39:54.816  3444  3444 W Binder:3444_8: type=1400 audit(0.0:827700): avc: denied { getattr } for path="/proc/8627/task/8632/comm" dev="proc" ino=41307403 scontext=u:r:system_app:s0 tcontext=u:r:untrusted_app_27:s0:c512,c768 tclass=file permissive=0
12-17 20:39:54.824  2044  2044 D GestureStubView: resetRenderProperty: showGestureStub
12-17 20:39:54.824  2044  2044 D GestureStubView: showGestureStub
12-17 20:39:54.816  3444  3444 W Binder:3444_8: type=1400 audit(0.0:827703): avc: denied { getattr } for path="/proc/8627/task/8635/comm" dev="proc" ino=41307406 scontext=u:r:system_app:s0 tcontext=u:r:untrusted_app_27:s0:c512,c768 tclass=file permissive=0
12-17 20:39:54.824  2044  2044 D GestureStubView: resetRenderProperty: showGestureStub
12-17 20:39:54.824  2044  2044 D GestureStubView: showGestureStub
12-17 20:39:54.837  1540  3602 I Timeline: Timeline: App_transition_ready time:896758326
12-17 20:39:54.839  1540  3602 I Timeline: Timeline: App_transition_ready time:896758328
12-17 20:39:54.842  1540  2353 I Timeline: Timeline: App_transition_ready time:896758331
12-17 20:39:54.844  2044  2044 D GestureStubView: gatherTransparentRegion: need render w:30  h:1296
12-17 20:39:54.846  1540  2353 I Timeline: Timeline: App_transition_ready time:896758335
12-17 20:39:54.848  2044  2044 D GestureStubView: gatherTransparentRegion: need render w:30  h:1296
12-17 20:39:54.882  8627  8627 I trifa.MainActivity: waiting_for_orbot_info:false
12-17 20:39:54.883  8627  8627 I trifa.ToxService: onCreate
12-17 20:39:54.883  8627  8627 I trifa.ToxService: start_me
12-17 20:39:54.883  8627  8627 I trifa.ToxService: contentView=android.widget.RemoteViews@a7cec74
12-17 20:39:54.885  8627  8627 I trifa.ToxService: onStartCommand
12-17 20:39:54.885  8627  8627 I trifa.HeadsetStReceiver: onReceive:headset:isInitialStickyBroadcast
12-17 20:39:54.887  1540  1865 I Timeline: Timeline: App_transition_ready time:896758376
12-17 20:39:54.885  8627  8627 I trifa.HeadsetStReceiver: onReceive:headset:isInitialStickyBroadcast
12-17 20:39:54.893  1540  1692 I ActivityManager: Displayed com.zoffcc.applications.trifa/.MainActivity: +581ms
12-17 20:39:54.895  5600  5600 I PhenotypeExperimentConfiguration: refreshConfiguration() : Force = false : UpdateAvailable = false : Age = 22 minutes : MaxAge = 720 minutes
12-17 20:39:54.895  5600  5600 I AndroidIME: PasswordIme.onDeactivate()
12-17 20:39:54.901  8627  8627 I trifa.FriendlistAdapter: onBindViewHolder:ITEM_IS_FRIEND
12-17 20:39:54.904  8627  8627 I trifa.MyGlideModule: isManifestParsingEnabled
12-17 20:39:54.905  8627  8627 I trifa.MyGlideModule: applyOptions
12-17 20:39:54.909  8627  8627 I trifa.MyGlideModule: registerComponents
12-17 20:39:54.913  8627  9021 I trifa.ToxService: D:TrifaToxService=0x3f42
12-17 20:39:54.913  8627  9021 I trifa.ToxService: D:safe_string_method=0x7c87049c
12-17 20:39:54.913  8627  9021 I trifa.ToxService: D:logger_method=0x7c870480
12-17 20:39:54.913  8627  9021 I trifa.ToxService: D:cls_local=0x29
12-17 20:39:54.913  8627  9021 I trifa.ToxService: D:MainActivity=0x3f56
12-17 20:39:54.913  8627  9021 I trifa.ToxService: D:Logging test ---***---
12-17 20:39:54.913  8627  9021 I trifa.ToxService: D:THREAD ID=9021
12-17 20:39:54.913  8627  9021 I trifa.ToxService: D:app_data_dir=/data/user/0/com.zoffcc.applications.trifa/files
12-17 20:39:54.913  8627  9021 I trifa.ToxService: D:linking callbacks ... START
12-17 20:39:54.913  8627  9021 I trifa.ToxService: D:linking callbacks ... READY
12-17 20:39:54.914  8627  9021 I trifa.ToxService: D:filter_audio: prepare. samplerate=48000
12-17 20:39:54.914  8627  9021 I trifa.ToxService: D:filter_audio: set delay in ms=60
12-17 20:39:54.914  8627  9021 I trifa.ToxService: D:1006
12-17 20:39:54.914  8627  9021 I trifa.ToxService: D:1007
12-17 20:39:54.914  8627  9021 I trifa.ToxService: D:1008
12-17 20:39:54.914  8627  9021 I trifa.ToxService: D:1009
12-17 20:39:54.914  8627  8627 D trifa.FriendListHolder: 001:relay=null
12-17 20:39:54.914  8627  8627 D trifa.FriendListHolder: 004
12-17 20:39:54.914  8627  9021 I trifa.ToxService: D:create_tox:tox_is_data_encrypted=1
12-17 20:39:54.919  8627  8627 I trifa.FriendlistAdapter: onBindViewHolder:ITEM_IS_FRIEND
12-17 20:39:54.922  8627  8627 D trifa.FriendListHolder: 001:relay=null
12-17 20:39:54.922  8627  8627 D trifa.FriendListHolder: 004
12-17 20:39:54.926  8627  8627 I trifa.FriendlistAdapter: onBindViewHolder:ITEM_IS_FRIEND
12-17 20:39:54.929  8627  8627 D trifa.FriendListHolder: 001:relay=null
12-17 20:39:54.929  8627  8627 D trifa.FriendListHolder: 004
12-17 20:39:54.933  8627  8627 I trifa.FriendlistAdapter: onBindViewHolder:ITEM_IS_CONFERENCE
12-17 20:39:54.934  8627  8627 I trifa.ConferenceLstHldr: bindFriendList:-1
12-17 20:39:54.958  8627  8627 W IInputConnectionWrapper: requestCursorAnchorInfo on inactive InputConnection
12-17 20:39:54.988  2044  2044 I StatusBar: onNotificationPosted key:0|com.zoffcc.applications.trifa|1030|null|10325 isUpdate:false
12-17 20:39:54.989  2044  2044 I StatusBar: handleNotification key:0|com.zoffcc.applications.trifa|1030|null|10325 isUpdate:false
12-17 20:39:54.990  2044  2044 D StatusBar: addNotification key=0|com.zoffcc.applications.trifa|1030|null|10325
12-17 20:39:54.999  5389  5389 V onNotificationPostedCallBack: flags=98
12-17 20:39:54.999  5389  5389 V h       : ret=0
12-17 20:39:55.003  1540  1936 I WindowManager: input method visible height changed 0
12-17 20:39:55.012  2044  2044 D StatusBar: No peeking: unimportant notification: 0|com.zoffcc.applications.trifa|1030|null|10325
12-17 20:39:55.012  2044  2044 I StatusBar: addNotification isHeadsUped:false
12-17 20:39:55.012  2044  2044 I StatusBar: addNotification key=0|com.zoffcc.applications.trifa|1030|null|10325
12-17 20:39:55.050  2044  2044 D StatusBar: No peeking: unimportant notification: 0|com.zoffcc.applications.trifa|1030|null|10325
12-17 20:39:55.103  8627  9021 I trifa.ToxService: D:1008
12-17 20:39:55.105  8627  9021 I trifa.ToxService: D:1009 tox=0xe56fce40 error=0
12-17 20:39:55.105  8627  9021 I trifa.ToxService: D:local discovery enabled = 0
12-17 20:39:55.105  8627  9021 I trifa.ToxService: D:tox_global=0xe56fce40
12-17 20:39:55.105  8627  9021 I trifa.ToxService: I:new Tox AV
12-17 20:39:55.105  8627  9021 I trifa.ToxService: D:linking AV callbacks ... START
12-17 20:39:55.105  8627  9021 I trifa.ToxService: D:linking AV callbacks ... READY
12-17 20:39:55.105  8627  9021 I trifa.ToxService: I:AV iterate Thread successfully created
12-17 20:39:55.105  8627  9021 I trifa.ToxService: I:AV video Thread successfully created
12-17 20:39:55.106  8627  9021 I trifa.ToxService: I:AV audio Thread successfully created
12-17 20:39:55.106  8627  9029 I trifa.ToxService: D:2001
12-17 20:39:55.106  8627  9021 I trifa.MainActivity: set_all_conferences_inactive:002
12-17 20:39:55.106  8627  9029 I trifa.ToxService: D:2002
12-17 20:39:55.106  8627  9029 I trifa.ToxService: D:2003
12-17 20:39:55.106  8627  9028 I trifa.ToxService: D:2001
12-17 20:39:55.106  8627  9029 I trifa.ToxService: D:2004
12-17 20:39:55.106  8627  9028 I trifa.ToxService: D:2002
12-17 20:39:55.106  8627  9029 I trifa.ToxService: I:AV video Thread #-894428816: starting
12-17 20:39:55.106  8627  9028 I trifa.ToxService: D:2003
12-17 20:39:55.106  8627  9028 I trifa.ToxService: D:2004
12-17 20:39:55.106  8627  9028 I trifa.ToxService: I:av_thread_lock created successfully
12-17 20:39:55.106  8627  9028 I trifa.ToxService: I:AV Thread #-893388432: starting
12-17 20:39:55.106  8627  9030 I trifa.ToxService: I:AV audio Thread #-895469200: starting
12-17 20:39:55.119  8627  9021 I trifa.MainActivity: set_all_conferences_inactive
12-17 20:39:55.120  8627  9021 I trifa.ToxService: tox_thread_start_fg
12-17 20:39:55.120  8627  9031 I trifa.ToxService: is_tox_started:==============================
12-17 20:39:55.120  8627  9031 I trifa.ToxService: is_tox_started=false
12-17 20:39:55.120  8627  9031 I trifa.ToxService: is_tox_started:==============================
12-17 20:39:55.120  8627  9031 I trifa.ToxService: set_all_conferences_inactive:004
12-17 20:39:55.124  2044  2044 D GestureStubView: resetRenderProperty: setSize
12-17 20:39:55.125  2044  2044 D GestureStubView: resetRenderProperty: setSize
12-17 20:39:55.134  8627  9031 I trifa.MainActivity: set_all_conferences_inactive
12-17 20:39:55.135  8627  9031 I trifa.ToxService: D:init_tox_callbacks
12-17 20:39:55.135  8627  9031 I trifa.ToxService: D:update_savedata_file
12-17 20:39:55.135  8627  9031 I trifa.ToxService: D:update_savedata_file:tox_get_savedata_size=156479
12-17 20:39:55.135  8627  9031 I trifa.ToxService: D:update_savedata_file:savedata=0xcafc6240
12-17 20:39:55.135  8627  9031 I trifa.ToxService: D:update_savedata_file:size_enc=156559
12-17 20:39:55.135  8627  9031 I trifa.ToxService: D:update_savedata_file:savedata_enc=0xcb303900
12-17 20:39:55.172  2044  2044 D GestureStubView: gatherTransparentRegion: need render w:54  h:1296
12-17 20:39:55.197  8627  9020 I trifa.MainActivity: cleanup_temp_dirs:001
12-17 20:39:55.197  8627  9020 I trifa.MainActivity: cleanup_temp_dirs:00a
12-17 20:39:55.225  2044  2044 D GestureStubView: gatherTransparentRegion: need render w:54  h:1296
12-17 20:39:55.248  2044  2044 I chatty  : uid=1000(system) com.android.systemui identical 1 line
12-17 20:39:55.248  2044  2044 D GestureStubView: gatherTransparentRegion: need render w:54  h:1296
12-17 20:39:55.321  8627  9031 I trifa.ToxService: D:update_savedata_file:tox_pass_encrypt:0
12-17 20:39:55.321  8627  9031 I trifa.ToxService: D:update_savedata_file:tox_is_data_encrypted=1
12-17 20:39:55.322  8627  9031 I trifa.MainActivity: update_savedata_file() took:0.187s
12-17 20:39:55.322  8627  9031 I trifa.ToxService: D:get_my_toxid
12-17 20:39:55.323  8627  9031 E AndroidRuntime: FATAL EXCEPTION: Thread-7
12-17 20:39:55.323  8627  9031 E AndroidRuntime: Process: com.zoffcc.applications.trifa, PID: 8627
12-17 20:39:55.323  8627  9031 E AndroidRuntime: java.lang.StringIndexOutOfBoundsException: length=2; index=4
12-17 20:39:55.323  8627  9031 E AndroidRuntime:    at java.lang.String.substring(String.java:2032)
12-17 20:39:55.323  8627  9031 E AndroidRuntime:    at com.zoffcc.applications.trifa.TrifaToxService$3.run(TrifaToxService.java:588)
12-17 20:39:55.323   576   576 E SELinux : avc:  denied  { find } for service=miui.mqsas.MQSService pid=8627 uid=10325 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:mqs_service:s0 tclass=service_manager permissive=0
12-17 20:39:55.324  8627  9031 E MQSEventManagerDelegate: failed to get MQSService.
12-17 20:39:55.324  8627  9031 I trifa.MainApplication: MainApplication:850:stack trace ok
12-17 20:39:55.390  8627  9020 I trifa.MainActivity: cleanup_temp_dirs:00b
12-17 20:39:55.390  8627  9020 I trifa.MainActivity: cleanup_temp_dirs:002
12-17 20:39:55.390  8627  9020 I trifa.MainActivity: cleanup_temp_dirs:---READY---
12-17 20:39:55.393  1540  1865 I Timeline: Timeline: App_transition_stopped time:896758882
12-17 20:39:55.394  2044  2044 D EventBus: [2044, u0] send(AppTransitionFinishedEvent)
12-17 20:39:55.394  2044  2044 D EventBus: [2044, u0]  -> ForcedResizableInfoActivityController [0x2fa1fdb, P1] onBusEvent(AppTransitionFinishedEvent)
12-17 20:39:55.394  2044  2044 D EventBus: [2044, u0] onBusEvent(AppTransitionFinishedEvent) duration: 28 microseconds, avg: 1146
12-17 20:39:55.394  2044  2044 D EventBus: [2044, u0] send(AppTransitionFinishedEvent)
12-17 20:39:55.395  2044  2044 D EventBus: [2044, u0]  -> ForcedResizableInfoActivityController [0x2fa1fdb, P1] onBusEvent(AppTransitionFinishedEvent)
12-17 20:39:55.395  2044  2044 D EventBus: [2044, u0] onBusEvent(AppTransitionFinishedEvent) duration: 19 microseconds, avg: 1146
12-17 20:39:55.396  1540  1692 I Timeline: Timeline: Activity_windows_visible id: ActivityRecord{3cd339a u0 com.zoffcc.applications.trifa/.MainActivity t6064} time:896758885
12-17 20:39:55.514  8627  9031 I trifa.MainApplication: MainApplication:850:crash file=/storage/emulated/0/trifa/crashes/crash_2019-12-17_20_39_55.txt
12-17 20:39:55.520  8627  9031 I trifa.MainApplication: MainApplication:850:crashes[set]=15
12-17 20:39:55.521  8627  9031 I trifa.MainApplication: MainApplication:850:?:60000 < 1576611595521
12-17 20:39:55.521  8627  9031 I trifa.MainApplication: MainApplication:850:?:1576611535521
12-17 20:39:55.521  8627  9031 I trifa.ToxService: stop_tox_fg:001
12-17 20:39:55.521  8627  9031 I trifa.ToxService: stop_tox_fg:099
12-17 20:39:55.521  8627  9031 I trifa.ToxService: stop_me:001
12-17 20:39:55.521  8627  9031 I trifa.ToxService: stop_me:002
12-17 20:39:55.522  8627  9031 I trifa.ToxService: stop_me:003
12-17 20:39:55.523  8627  8627 I trifa.ToxService: stop_tox_fg:002
12-17 20:39:55.523  8627  8627 I trifa.ToxService: D:update_savedata_file
12-17 20:39:55.523  8627  8627 I trifa.ToxService: D:update_savedata_file:tox_get_savedata_size=156479
12-17 20:39:55.523  8627  8627 I trifa.ToxService: D:update_savedata_file:savedata=0xcafc6f40
12-17 20:39:55.523  8627  8627 I trifa.ToxService: D:update_savedata_file:size_enc=156559
12-17 20:39:55.524  8627  8627 I trifa.ToxService: D:update_savedata_file:savedata_enc=0xcae903c0
12-17 20:39:55.542  8627  9031 I trifa.ToxService: stop_me:002
12-17 20:39:55.542  8627  9031 I trifa.ToxService: stop_me:003
12-17 20:39:55.544  8627  9031 I trifa.MainApplication: MainApplication:850:componentInfo=ComponentInfo{com.zoffcc.applications.trifa/com.zoffcc.applications.trifa.MainActivity} class=com.zoffcc.applications.trifa.MainActivity
12-17 20:39:55.544  2044  2044 I StatusBar: onNotificationRemoved: 0|com.zoffcc.applications.trifa|1030|null|10325
12-17 20:39:55.545  8627  9031 I trifa.MainApplication: MainApplication:850:xx1 intent(1)=Intent { cmp=com.zoffcc.applications.trifa/.CrashActivity }
12-17 20:39:55.545  8627  9031 I trifa.MainApplication: MainApplication:850:xx1 intent(2)=Intent { flg=0x10008000 cmp=com.zoffcc.applications.trifa/.CrashActivity }
12-17 20:39:55.548  2044  2044 D StatusBar: removeNotification key=0|com.zoffcc.applications.trifa|1030|null|10325 old=StatusBarNotification(pkg=com.zoffcc.applications.trifa user=UserHandle{0} id=1030 tag=null key=0|com.zoffcc.applications.trifa|1030|null|10325: Notification(channel=trifa_tox_service pri=0 contentView=com.zoffcc.applications.trifa/0x7f0b002b vibrate=null sound=null defaults=0x0 flags=0x62 color=0xffff0000 vis=PRIVATE))
12-17 20:39:55.548  2044  2044 D StatusBar: update app badge num: com.zoffcc.applications.trifa/,num=0,isAllowed=false,userId=0
12-17 20:39:55.549  8627  9031 I Timeline: Timeline: Activity_launch_request time:896759038
12-17 20:39:55.552 32025  8792 E zeus-AndroidUtils-[pool-7-thread-12]: top : com.zoffcc.applications.trifa
12-17 20:39:55.552 32025  8792 E AD-PLUGIN-SplashController: This package is fore ground , skip splash : com.zoffcc.applications.trifa
12-17 20:39:55.552  1540 12272 I ActivityManager: START u0 {flg=0x10008000 cmp=com.zoffcc.applications.trifa/.CrashActivity} from uid 10325
12-17 20:39:55.566  1540 12272 D ActivityTrigger: ActivityTrigger activityPauseTrigger 
12-17 20:39:55.572  1540 12272 D CompatibilityInfo: mCompatibilityFlags - 0
12-17 20:39:55.572  1540 12272 D CompatibilityInfo: applicationDensity - 440
12-17 20:39:55.572  1540 12272 D CompatibilityInfo: applicationScale - 1.0
12-17 20:39:55.574  8627  9031 I trifa.MainApplication: MainApplication:850:xx2
12-17 20:39:55.576  8627  9031 I Process : Sending signal. PID: 8627 SIG: 9
12-17 20:39:55.576  1540 12272 D ActivityManager: report kill process: killerPid is:8627, killedPid is:8627
12-17 20:39:55.592  1540  1885 W InputDispatcher: channel 'afbcf9f com.zoffcc.applications.trifa/com.zoffcc.applications.trifa.MainActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
12-17 20:39:55.592  1540  1885 E InputDispatcher: channel 'afbcf9f com.zoffcc.applications.trifa/com.zoffcc.applications.trifa.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
12-17 20:39:55.592  1540  1885 W InputDispatcher: channel 'b15e822 com.zoffcc.applications.trifa/com.zoffcc.applications.trifa.CheckPasswordActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
12-17 20:39:55.592  1540  1885 E InputDispatcher: channel 'b15e822 com.zoffcc.applications.trifa/com.zoffcc.applications.trifa.CheckPasswordActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
12-17 20:39:55.593  1540  1885 W InputDispatcher: channel 'f652e2e com.zoffcc.applications.trifa/com.zoffcc.applications.trifa.CrashActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
12-17 20:39:55.593  1540  1885 E InputDispatcher: channel 'f652e2e com.zoffcc.applications.trifa/com.zoffcc.applications.trifa.CrashActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
12-17 20:39:55.594  1540 12882 D AutofillSession: handling death of Token{44c7e58 ActivityRecord{438473b u0 com.zoffcc.applications.trifa/.CheckPasswordActivity t6064 f}} when saving=false
12-17 20:39:55.594  1540  3593 I ActivityManager: Process com.zoffcc.applications.trifa (pid 8627) has died: fore TOP 
12-17 20:39:55.594  1540  1648 W libprocessgroup: kill(-8627, 9) failed: No such process
12-17 20:39:55.594  1540  1648 I libprocessgroup: Successfully killed process cgroup uid 10325 pid 8627 in 0ms
12-17 20:39:55.595  1540  3593 I AutoStartManagerService: MIUILOG- Reject RestartService packageName :com.zoffcc.applications.trifa uid : 10325
12-17 20:39:55.595   641   641 I Zygote  : Process 8627 exited due to signal (9)
12-17 20:39:55.608  1540  2353 I WindowManager: WIN DEATH: Window{afbcf9f u0 com.zoffcc.applications.trifa/com.zoffcc.applications.trifa.MainActivity}
12-17 20:39:55.608  1540  2353 W InputDispatcher: Attempted to unregister already unregistered input channel 'afbcf9f com.zoffcc.applications.trifa/com.zoffcc.applications.trifa.MainActivity (server)'
12-17 20:39:55.610  1540 14722 I WindowManager: WIN DEATH: Window{b15e822 u0 com.zoffcc.applications.trifa/com.zoffcc.applications.trifa.CheckPasswordActivity}
12-17 20:39:55.610  1540 14722 W InputDispatcher: Attempted to unregister already unregistered input channel 'b15e822 com.zoffcc.applications.trifa/com.zoffcc.applications.trifa.CheckPasswordActivity (server)'
12-17 20:39:55.612  1540  3209 I WindowManager: WIN DEATH: Window{f652e2e u0 com.zoffcc.applications.trifa/com.zoffcc.applications.trifa.CrashActivity}
12-17 20:39:55.612  1540  3209 W InputDispatcher: Attempted to unregister already unregistered input channel 'f652e2e com.zoffcc.applications.trifa/com.zoffcc.applications.trifa.CrashActivity (server)'
12-17 20:39:55.616   772  1309 W SurfaceFlinger: Attempting to set client state on removed layer: com.zoffcc.applications.trifa/com.zoffcc.applications.trifa.MainActivity#0
12-17 20:39:55.616   772  1309 W SurfaceFlinger: Attempting to destroy on removed layer: com.zoffcc.applications.trifa/com.zoffcc.applications.trifa.MainActivity#0
12-17 20:39:55.618  2044  2044 D EventBus: [2044, u0] send(AppTransitionFinishedEvent)
12-17 20:39:55.618  2044  2044 D EventBus: [2044, u0]  -> ForcedResizableInfoActivityController [0x2fa1fdb, P1] onBusEvent(AppTransitionFinishedEvent)
12-17 20:39:55.618  2044  2044 D EventBus: [2044, u0] onBusEvent(AppTransitionFinishedEvent) duration: 13 microseconds, avg: 1146
12-17 20:39:55.618  2044  2044 D EventBus: [2044, u0] send(AppTransitionFinishedEvent)
12-17 20:39:55.618  2044  2044 D EventBus: [2044, u0]  -> ForcedResizableInfoActivityController [0x2fa1fdb, P1] onBusEvent(AppTransitionFinishedEvent)
12-17 20:39:55.618  2044  2044 D EventBus: [2044, u0] onBusEvent(AppTransitionFinishedEvent) duration: 4 microseconds, avg: 1146
12-17 20:39:55.619  2044  2044 D EventBus: [2044, u0] send(AppTransitionFinishedEvent)
12-17 20:39:55.619  2044  2044 D EventBus: [2044, u0]  -> ForcedResizableInfoActivityController [0x2fa1fdb, P1] onBusEvent(AppTransitionFinishedEvent)
12-17 20:39:55.619  2044  2044 D EventBus: [2044, u0] onBusEvent(AppTransitionFinishedEvent) duration: 9 microseconds, avg: 1146
12-17 20:39:55.623  1540  1692 W ActivityManager: setHasOverlayUi called on unknown pid: 8627
12-17 20:39:55.643  1540  1645 D Boost   : hostingType=activity, hostingName=com.zoffcc.applications.trifa/.CrashActivity, callerPackage=com.zoffcc.applications.trifa, isSystem=false, isBoostNeeded=false.
12-17 20:39:55.645  1540  1645 I ActivityManager: Start proc 9039:com.zoffcc.applications.trifa/u0a325 for activity com.zoffcc.applications.trifa/.CrashActivity caller=com.zoffcc.applications.trifa
12-17 20:39:55.649  9039  9039 E lications.trif: Not starting debugger since process cannot load the jdwp agent.
12-17 20:39:55.662  1540  1692 D WindowManager: Fetching specs wasn't finished in time.
12-17 20:39:55.665  1540  3593 D CompatibilityInfo: mCompatibilityFlags - 0
12-17 20:39:55.665  1540  3593 D CompatibilityInfo: applicationDensity - 440
12-17 20:39:55.665  1540  3593 D CompatibilityInfo: applicationScale - 1.0
12-17 20:39:55.671  1540  3593 I set_top_app: success /proc/9039/task/9039/top_app:1
12-17 20:39:55.672  1540  3593 D CompatibilityInfo: mCompatibilityFlags - 0
12-17 20:39:55.672  1540  3593 D CompatibilityInfo: applicationDensity - 440
12-17 20:39:55.672  1540  3593 D CompatibilityInfo: applicationScale - 1.0
12-17 20:39:55.678  1540  1865 I Timeline: Timeline: App_transition_ready time:896759166
12-17 20:39:55.693  9039  9039 I lications.trif: The ClassLoaderContext is a special shared library.
12-17 20:39:55.707  9039  9039 I Perf    : Connecting to perf service.
12-17 20:39:55.711  9039  9039 I MultiDex: VM with version 2.1.0 has multidex support
12-17 20:39:55.711  9039  9039 I MultiDex: Installing application
12-17 20:39:55.711  9039  9039 I MultiDex: VM has multidex support, MultiDex support library is disabled.
12-17 20:39:55.716  9039  9039 I trifa.MainApplication: MainApplication:388:onCreate
12-17 20:39:55.719  9039  9039 I trifa.MainApplication: MainApplication:388:crashes[load]=15
12-17 20:39:55.719  9039  9039 I trifa.MainApplication: MainApplication:388:last_crash_time[load]=0
12-17 20:39:55.719  9039  9039 I trifa.MainApplication: MainApplication:388:prevlast_crash_time[load]=0
12-17 20:39:55.728  9039  9039 I trifa.CrashActy: onCreate
12-17 20:39:55.772  1540  3602 I set_top_app: success /proc/9039/task/9055/top_app:2
12-17 20:39:55.778  1540  1897 V UiModeManager: switch night mode to 1
12-17 20:39:55.779  2044  2044 D GestureStubView: resetRenderProperty: showGestureStub
12-17 20:39:55.779  2044  2044 D GestureStubView: showGestureStub
12-17 20:39:55.779  2044  2044 D GestureStubView: resetRenderProperty: showGestureStub
12-17 20:39:55.779  2044  2044 D GestureStubView: showGestureStub
12-17 20:39:55.792  9039  9055 I Adreno  : QUALCOMM build                   : 2c6a1c7, I1490fecf6e
12-17 20:39:55.792  9039  9055 I Adreno  : Build Date                       : 02/04/19
12-17 20:39:55.792  9039  9055 I Adreno  : OpenGL ES Shader Compiler Version: EV031.25.03.02
12-17 20:39:55.792  9039  9055 I Adreno  : Local Branch                     : 
12-17 20:39:55.792  9039  9055 I Adreno  : Remote Branch                    : 
12-17 20:39:55.792  9039  9055 I Adreno  : Remote Branch                    : 
12-17 20:39:55.792  9039  9055 I Adreno  : Reconstruct Branch               : 
12-17 20:39:55.792  9039  9055 I Adreno  : Build Config                     : S L 6.0.7 AArch32
12-17 20:39:55.793  9039  9055 D vndksupport: Loading /vendor/lib/hw/gralloc.msm8998.so from current namespace instead of sphal namespace.
12-17 20:39:55.796  2044  2044 D GestureStubView: gatherTransparentRegion: need render w:54  h:1296
12-17 20:39:55.798  2044  2044 D GestureStubView: gatherTransparentRegion: need render w:54  h:1296
12-17 20:39:55.799  9039  9055 I Adreno  : PFP: 0x005ff112, ME: 0x005ff066
12-17 20:39:55.802  9039  9055 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
12-17 20:39:55.802  9039  9055 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
12-17 20:39:55.803  9039  9055 I OpenGLRenderer: Initialized EGL, version 1.4
12-17 20:39:55.803  9039  9055 D OpenGLRenderer: Swap behavior 2
12-17 20:39:55.811  9039  9055 D vndksupport: Loading /vendor/lib/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace.
12-17 20:39:55.812  9039  9055 D vndksupport: Loading /vendor/lib/hw/gralloc.msm8998.so from current namespace instead of sphal namespace.
12-17 20:39:55.829  9039  9039 I trifa.ConManager: onReceive:intent=Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x4200010 (has extras) }
12-17 20:39:55.830  9039  9039 I trifa.ConManager: onReceive:reason=agentDisconnect
12-17 20:39:55.830  9039  9039 I trifa.ConManager: onReceive:failOver=false
12-17 20:39:55.830  9039  9039 I trifa.ConManager: onReceive:noConnectivity=false
12-17 20:39:55.830  9039  9039 I trifa.ConManager: onReceive: mNetworkInfo=[type: VPN[], state: DISCONNECTED/DISCONNECTED, reason: agentDisconnect, extra: (none), failover: false, available: false, roaming: false] mOtherNetworkInfo = [none]
12-17 20:39:55.835  1540  1692 I ActivityManager: Displayed com.zoffcc.applications.trifa/.CrashActivity: +213ms
12-17 20:39:55.992   772   858 W SurfaceFlinger: Attempting to set client state on removed layer: Splash Screen com.zoffcc.applications.trifa#0
12-17 20:39:55.992   772   858 W SurfaceFlinger: Attempting to destroy on removed layer: Splash Screen com.zoffcc.applications.trifa#0
12-17 20:39:56.475  1540  1692 I Timeline: Timeline: Activity_windows_visible id: ActivityRecord{c83d4ab u0 com.zoffcc.applications.trifa/.CrashActivity t6064} time:896759963
12-17 20:39:56.475  2044  2044 D EventBus: [2044, u0] send(AppTransitionFinishedEvent)
12-17 20:39:56.475  2044  2044 D EventBus: [2044, u0]  -> ForcedResizableInfoActivityController [0x2fa1fdb, P1] onBusEvent(AppTransitionFinishedEvent)
12-17 20:39:56.475  2044  2044 D EventBus: [2044, u0] onBusEvent(AppTransitionFinishedEvent) duration: 12 microseconds, avg: 1146
12-17 20:39:56.476  1540  1865 I Timeline: Timeline: App_transition_stopped time:896759964

I think the relevant part of this log is this:

12-17 20:39:55.321  8627  9031 I trifa.ToxService: D:update_savedata_file:tox_pass_encrypt:0
12-17 20:39:55.321  8627  9031 I trifa.ToxService: D:update_savedata_file:tox_is_data_encrypted=1
12-17 20:39:55.322  8627  9031 I trifa.MainActivity: update_savedata_file() took:0.187s
12-17 20:39:55.322  8627  9031 I trifa.ToxService: D:get_my_toxid
12-17 20:39:55.323  8627  9031 E AndroidRuntime: FATAL EXCEPTION: Thread-7
12-17 20:39:55.323  8627  9031 E AndroidRuntime: Process: com.zoffcc.applications.trifa, PID: 8627
12-17 20:39:55.323  8627  9031 E AndroidRuntime: java.lang.StringIndexOutOfBoundsException: length=2; index=4
12-17 20:39:55.323  8627  9031 E AndroidRuntime:    at java.lang.String.substring(String.java:2032)
12-17 20:39:55.323  8627  9031 E AndroidRuntime:    at com.zoffcc.applications.trifa.TrifaToxService$3.run(TrifaToxService.java:588)

Screenshots (if possible):

Launching TRIfA: step1

TRIfA password prompt: step2

Entering password: step3

Screen gets blank for a very short time: step4

I see the contact list for a very short time (it took me a lot of tries to actually get a screenshot of it): step5

Crash screen is shown: step6

(I cannot send this crash report, as I cannot start the app.)

Orbot is running: step7

mawis commented 4 years ago

I checked the code and saw that this has to do with the handling of the status message. So I guess this might be important information:

I set my status message to just one emoticon (smilie) which is outside the basic multilingual plane of Unicode. I don't remember which exact emoticon I was using and I also don't remember whether I used a skin tone modifier nor not.

I guess the function com.zoffcc.applications.trifa.MainActivity.tox_self_get_status_message_size counts the length of the status message in a different way then substring() does.

zoff99 commented 4 years ago

@mawis good catch. one is length in bytes and the other length in unicode characters.

mawis commented 4 years ago

Thanks for fixing it. :)

zoff99 commented 4 years ago

@mawis i am not sure when there will be a next release. need to fix a few more things. if you are able to help out, that would be super?