netmackan / ATimeTracker

Open Source Time Tracker for Android
GNU General Public License v2.0
120 stars 56 forks source link

Application crashes, when activity status changed after using "show times" on it. #127

Open XandrosDarkstorm opened 5 years ago

XandrosDarkstorm commented 5 years ago

Describe the bug Application crashes, when activity status changed after using "show times" on it.

To Reproduce Steps to reproduce the behavior:

  1. Create an activity
  2. Long tap on activity, select "Show times". Observe the empty list, because you never launched this activity.
  3. Tap "Back" on a navigation bar.
  4. Tap on activity and observe crash.

Expected behavior An activity start after tapping on it.

Actual behavior Application crashes.

Screenshots This is not a visual bug, screenshots probably won't help.

Smartphone (please complete the following information):

Additional context It doesn't matter if you have any records in times list of the activity. I found this bug when i had 2 records and situation doesn't changed. Also activity length is 0, because only few seconds spent on activity. App version: 0.51.2 (Fdroid)

caring-coder commented 5 years ago

I have the same issue on same version and with Samsung Galaxy 8 on Android 8.0.0

netmackan commented 5 years ago

I am unable to reproduce the issue on Android 6.0 and 7.0 Samsung phones.

If anyone could connect an USB cable and capture the log output with "adb logcat" that might give a clue about what the crash is about.

Exaeta commented 5 years ago

@netmackan I get this crash all the time. Android 8

--------- beginning of main D/OpenGLRenderer(13376): HWUI GL Pipeline I/Adreno (13376): QUALCOMM build : a5b4970, If5818605d9 I/Adreno (13376): Build Date : 10/12/16 I/Adreno (13376): OpenGL ES Shader Compiler Version: XE031.09.00.04 I/Adreno (13376): Local Branch : N24D I/Adreno (13376): Remote Branch : I/Adreno (13376): Remote Branch : I/Adreno (13376): Reconstruct Branch : I/zygote (13376): android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0 I/OpenGLRenderer(13376): Initialized EGL, version 1.4 D/OpenGLRenderer(13376): Swap behavior 1 D/vndksupport(13376): Loading /vendor/lib/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace. D/vndksupport(13376): Loading /vendor/lib/hw/gralloc.msm8084.so from current namespace instead of sphal namespace. W/InputEventReceiver(13376): Attempted to finish an input event but the input event receiver has already been disposed. D/vndksupport(13376): Loading libutils.so from current namespace instead of sphal namespace. I/WebViewFactory(13376): Loading com.android.webview version 66.0.3359.139 (code 335913900) I/cr_LibraryLoader(13376): Time to load native libraries: 3 ms (timestamps 9056-9059) I/chromium(13376): [INFO:library_loader_hooks.cc(36)] Chromium logging enabled: level = 0, default verbosity = 0 I/cr_LibraryLoader(13376): Expected native library version number "66.0.3359.139", actual native library version number "66.0.3359.139" W/cr_ChildProcLH(13376): Create a new ChildConnectionAllocator with package name = com.android.webview, sandboxed = true I/cr_BrowserStartup(13376): Initializing chromium process, singleProcess=false I/cr_base (13376): Android Locale: en_US requires .pak files: [] W/cr_CrashFileManager(13376): /data/user/0/org.jtb.alogcat/cache/WebView/Crash Reports does not exist or is not a directory W/InputEventReceiver(13376): Attempted to finish an input event but the input event receiver has already been disposed. W/InputEventReceiver(13376): Attempted to finish an input event but the input event receiver has already been disposed. W/InputEventReceiver(13376): Attempted to finish an input event but the input event receiver has already been disposed. W/InputEventReceiver(13376): Attempted to finish an input event but the input event receiver has already been disposed. W/InputEventReceiver(13376): Attempted to finish an input event but the input event receiver has already been disposed. W/InputEventReceiver(13376): Attempted to finish an input event but the input event receiver has already been disposed. W/InputEventReceiver(13376): Attempted to finish an input event but the input event receiver has already been disposed. --------- beginning of system W/ViewRootImplPopupWindow:d9b4992: Dropping event due to root view being removed: MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=155.0, y[0]=1168.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=57976549, downTime=57976546, deviceId=5, source=0x1002 } W/InputEventReceiver(13376): Attempted to finish an input event but the input event receiver has already been disposed. W/InputEventReceiver(13376): Attempted to finish an input event but the input event receiver has already been disposed. --------- beginning of main D/OpenGLRenderer(13376): HWUI GL Pipeline I/Adreno (13376): QUALCOMM build : a5b4970, If5818605d9 I/Adreno (13376): Build Date : 10/12/16 I/Adreno (13376): OpenGL ES Shader Compiler Version: XE031.09.00.04 I/Adreno (13376): Local Branch : N24D I/Adreno (13376): Remote Branch : I/Adreno (13376): Remote Branch : I/Adreno (13376): Reconstruct Branch : I/zygote (13376): android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0 I/OpenGLRenderer(13376): Initialized EGL, version 1.4 D/OpenGLRenderer(13376): Swap behavior 1 D/vndksupport(13376): Loading /vendor/lib/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace. D/vndksupport(13376): Loading /vendor/lib/hw/gralloc.msm8084.so from current namespace instead of sphal namespace. W/InputEventReceiver(13376): Attempted to finish an input event but the input event receiver has already been disposed. D/vndksupport(13376): Loading libutils.so from current namespace instead of sphal namespace. I/WebViewFactory(13376): Loading com.android.webview version 66.0.3359.139 (code 335913900) I/cr_LibraryLoader(13376): Time to load native libraries: 3 ms (timestamps 9056-9059) I/chromium(13376): [INFO:library_loader_hooks.cc(36)] Chromium logging enabled: level = 0, default verbosity = 0 I/cr_LibraryLoader(13376): Expected native library version number "66.0.3359.139", actual native library version number "66.0.3359.139" W/cr_ChildProcLH(13376): Create a new ChildConnectionAllocator with package name = com.android.webview, sandboxed = true I/cr_BrowserStartup(13376): Initializing chromium process, singleProcess=false I/cr_base (13376): Android Locale: en_US requires .pak files: [] W/cr_CrashFileManager(13376): /data/user/0/org.jtb.alogcat/cache/WebView/Crash Reports does not exist or is not a directory W/InputEventReceiver(13376): Attempted to finish an input event but the input event receiver has already been disposed. W/InputEventReceiver(13376): Attempted to finish an input event but the input event receiver has already been disposed. W/InputEventReceiver(13376): Attempted to finish an input event but the input event receiver has already been disposed. W/InputEventReceiver(13376): Attempted to finish an input event but the input event receiver has already been disposed. W/InputEventReceiver(13376): Attempted to finish an input event but the input event receiver has already been disposed. W/InputEventReceiver(13376): Attempted to finish an input event but the input event receiver has already been disposed. W/InputEventReceiver(13376): Attempted to finish an input event but the input event receiver has already been disposed. --------- beginning of system W/ViewRootImplPopupWindow:d9b4992: Dropping event due to root view being removed: MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=155.0, y[0]=1168.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=57976549, downTime=57976546, deviceId=5, source=0x1002 } W/InputEventReceiver(13376): Attempted to finish an input event but the input event receiver has already been disposed. W/InputEventReceiver(13376): Attempted to finish an input event but the input event receiver has already been disposed.

Seems to be the input event thing.

netmackan commented 5 years ago

I don't really see the crash in log output. Was expecting a exception stacktrace from ATimeTracker... By the way you don't happen to have sound enabled under Settings? If that is the case it could be #138 .