I set up Sentry on Android and everything runs fine as long as I start the appliaction from my IDE (both on emulator and via USB debugging).
However, once I build .apk and install it on my phone, the errors are not being sent, despite the before sent callback being called.
Is there anything specific one must to in order for Sentry to work here? Been trying to look for the solution, but nothing pops up.
Thing is that if I debug via USB everything is working fine. The problem is only with installing from debug .apk.
I will add meta data, see if it helps
...
2020-06-29 23:45:25.389 25025-25117/cz.zue.ferki.baseballcz I/ACodec: onStart
2020-06-29 23:45:25.440 25025-25111/cz.zue.ferki.baseballcz D/SurfaceUtils: connecting to surface 0x6fd4922010, reason connectToSurface
2020-06-29 23:45:25.440 25025-25111/cz.zue.ferki.baseballcz I/MediaCodec: [OMX.IMG.MSVDX.Decoder.AVC] setting surface generation to 25625602
2020-06-29 23:45:25.440 25025-25111/cz.zue.ferki.baseballcz D/SurfaceUtils: disconnecting from surface 0x6fd4922010, reason connectToSurface(reconnect)
2020-06-29 23:45:25.440 25025-25111/cz.zue.ferki.baseballcz D/SurfaceUtils: connecting to surface 0x6fd4922010, reason connectToSurface(reconnect)
2020-06-29 23:45:25.441 25025-25112/cz.zue.ferki.baseballcz D/SurfaceUtils: disconnecting from surface 0x6fd4922010, reason setNativeWindowSizeFormatAndUsage
2020-06-29 23:45:25.441 25025-25112/cz.zue.ferki.baseballcz D/SurfaceUtils: connecting to surface 0x6fd4922010, reason setNativeWindowSizeFormatAndUsage
2020-06-29 23:45:25.441 25025-25112/cz.zue.ferki.baseballcz D/SurfaceUtils: set up nativeWindow 0x6fd4922010 for 400x224, color 0x300, rotation 0, usage 0x20002900
2020-06-29 23:45:25.442 25025-25111/cz.zue.ferki.baseballcz D/SurfaceUtils: disconnecting from surface 0x6fed60f010, reason disconnectFromSurface
2020-06-29 23:45:25.448 25025-25025/cz.zue.ferki.baseballcz I/SurfaceView: delay destroy surface control
2020-06-29 23:45:25.464 25025-25025/cz.zue.ferki.baseballcz W/erki.baseballc: Accessing hidden field Landroid/view/View;->mAccessibilityDelegate:Landroid/view/View$AccessibilityDelegate; (light greylist, reflection)
2020-06-29 23:45:25.469 25025-25103/cz.zue.ferki.baseballcz E/AudioTrack: StreamType not music do not upload bigdata
2020-06-29 23:45:25.485 25025-25103/cz.zue.ferki.baseballcz I/PlayerBase: isRestricted: falseLeftvolume: 1.0 Rightvolume: 1.0mPanMultiplierL: 1.0mPanMultiplierR: 1.0
2020-06-29 23:45:25.494 25025-25079/cz.zue.ferki.baseballcz E/SurfaceView: surfacePositionLost_uiRtSync mSurfaceControl = null
2020-06-29 23:45:27.593 25025-25025/cz.zue.ferki.baseballcz D/AwareBitmapCacher: handleInit switch not opened pid=25025
2020-06-29 23:45:32.756 25025-25025/cz.zue.ferki.baseballcz W/Settings: Setting device_provisioned has moved from android.provider.Settings.Secure to android.provider.Settings.Global.
2020-06-29 23:45:32.756 25025-25025/cz.zue.ferki.baseballcz V/HiTouch_HiTouchSensor: User setup is finished.
2020-06-29 23:45:32.829 25025-25025/cz.zue.ferki.baseballcz V/AudioManager: playSoundEffect effectType: 0
2020-06-29 23:45:32.829 25025-25025/cz.zue.ferki.baseballcz V/AudioManager: querySoundEffectsEnabled...
2020-06-29 23:45:32.833 25025-25025/cz.zue.ferki.baseballcz I/NavController: Ignoring popBackStack to destination cz.zue.ferki.baseballcz:id/statisticsFragment as it was not found on the current back stack
2020-06-29 23:45:32.843 25025-25025/cz.zue.ferki.baseballcz D/AndroidRuntime: Shutting down VM
--------- beginning of crash
2020-06-29 23:45:32.849 25025-25025/cz.zue.ferki.baseballcz E/AndroidRuntime: FATAL EXCEPTION: main
Process: cz.zue.ferki.baseballcz, PID: 25025
java.lang.IllegalStateException: Could not execute method for android:onClick
at androidx.appcompat.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:402)
at android.view.View.performClick(View.java:6659)
at android.widget.CompoundButton.performClick(CompoundButton.java:139)
at android.view.View.performClickInternal(View.java:6631)
at android.view.View.access$3100(View.java:790)
at android.view.View$PerformClick.run(View.java:26187)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at androidx.appcompat.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:397)
at android.view.View.performClick(View.java:6659)
at android.widget.CompoundButton.performClick(CompoundButton.java:139)
at android.view.View.performClickInternal(View.java:6631)
at android.view.View.access$3100(View.java:790)
at android.view.View$PerformClick.run(View.java:26187)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
Caused by: java.lang.Exception
at cz.zue.ferki.baseballcz.gui.view.MainActivity.onStatsClick(MainActivity.kt:156)
at java.lang.reflect.Method.invoke(Native Method)
at androidx.appcompat.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:397)
at android.view.View.performClick(View.java:6659)
at android.widget.CompoundButton.performClick(CompoundButton.java:139)
at android.view.View.performClickInternal(View.java:6631)
at android.view.View.access$3100(View.java:790)
at android.view.View$PerformClick.run(View.java:26187)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
2020-06-29 23:45:33.001 25025-25025/cz.zue.ferki.baseballcz I/Process: Sending signal. PID: 25025 SIG: 9
so I ran the application from my phone, connected debugger via IDE. Just to explain, I throw Exception in onClick() method to make sure there is an exception Sentry can handle, so that’s pretty much what the exception says.
There’s some text above that, but hopefully this will make some sense, unfortunately I’m rather new to mobile programming so it’s kinda messy for me to understand, any help appreciated.
Bit of a progress, since I’m writing the app in Kotlin, there seemed to be an issue with calling BeforeSendCallback (my fault), believe I fixed that part.
Anyway, I’m getting an actual Sentry error now, here’s the full logcat output
...
2020-06-30 13:40:59.718 7738-7738/cz.zue.ferki.baseballcz D/Sentry: debug read: true
2020-06-30 13:40:59.719 7738-7738/cz.zue.ferki.baseballcz D/Sentry: anrEnabled read: true
2020-06-30 13:40:59.720 7738-7738/cz.zue.ferki.baseballcz D/Sentry: sessionTrackingEnabled read: false
2020-06-30 13:40:59.721 7738-7738/cz.zue.ferki.baseballcz D/Sentry: sampleRate read: -1.0
2020-06-30 13:40:59.721 7738-7738/cz.zue.ferki.baseballcz D/Sentry: anrReportInDebug read: false
2020-06-30 13:40:59.722 7738-7738/cz.zue.ferki.baseballcz D/Sentry: anrTimeoutIntervalMillis read: 5000
2020-06-30 13:40:59.723 7738-7738/cz.zue.ferki.baseballcz D/Sentry: DSN read: <retracted>
2020-06-30 13:40:59.723 7738-7738/cz.zue.ferki.baseballcz D/Sentry: NDK read: true
2020-06-30 13:40:59.724 7738-7738/cz.zue.ferki.baseballcz D/Sentry: release read: null
2020-06-30 13:40:59.724 7738-7738/cz.zue.ferki.baseballcz D/Sentry: environment read: null
2020-06-30 13:40:59.725 7738-7738/cz.zue.ferki.baseballcz D/Sentry: sessionTrackingTimeoutIntervalMillis read: 30000
2020-06-30 13:40:59.726 7738-7738/cz.zue.ferki.baseballcz D/Sentry: enableActivityLifecycleBreadcrumbs read: true
2020-06-30 13:40:59.726 7738-7738/cz.zue.ferki.baseballcz D/Sentry: enableAppLifecycleBreadcrumbs read: true
2020-06-30 13:40:59.727 7738-7738/cz.zue.ferki.baseballcz D/Sentry: enableSystemEventBreadcrumbs read: true
2020-06-30 13:40:59.727 7738-7738/cz.zue.ferki.baseballcz D/Sentry: enableAppComponentBreadcrumbs read: true
2020-06-30 13:40:59.728 7738-7738/cz.zue.ferki.baseballcz D/Sentry: enableUncaughtExceptionHandler read: true
2020-06-30 13:40:59.729 7738-7738/cz.zue.ferki.baseballcz I/Sentry: Retrieving configuration from AndroidManifest.xml
2020-06-30 13:40:59.805 7738-7823/cz.zue.ferki.baseballcz I/Sentry: sentry-debug-meta.properties file was not found.
2020-06-30 13:40:59.813 7738-7823/cz.zue.ferki.baseballcz D/Sentry: SU doesn't exist.
java.io.IOException: Cannot run program "/system/xbin/which": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1050)
at java.lang.Runtime.exec(Runtime.java:695)
at java.lang.Runtime.exec(Runtime.java:560)
at io.sentry.android.core.util.RootChecker.checkSUExist(RootChecker.java:135)
at io.sentry.android.core.util.RootChecker.isDeviceRooted(RootChecker.java:90)
at io.sentry.android.core.DefaultAndroidEventProcessor.loadContextData(DefaultAndroidEventProcessor.java:123)
at io.sentry.android.core.DefaultAndroidEventProcessor.lambda$new$0$DefaultAndroidEventProcessor(DefaultAndroidEventProcessor.java:111)
at io.sentry.android.core.-$$Lambda$DefaultAndroidEventProcessor$ZsPdDrAaOs30gov_5eSNgy_KYe8.call(Unknown Source:2)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:784)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:133)
at java.lang.ProcessImpl.start(ProcessImpl.java:132)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at java.lang.Runtime.exec(Runtime.java:695)
at java.lang.Runtime.exec(Runtime.java:560)
at io.sentry.android.core.util.RootChecker.checkSUExist(RootChecker.java:135)
at io.sentry.android.core.util.RootChecker.isDeviceRooted(RootChecker.java:90)
at io.sentry.android.core.DefaultAndroidEventProcessor.loadContextData(DefaultAndroidEventProcessor.java:123)
at io.sentry.android.core.DefaultAndroidEventProcessor.lambda$new$0$DefaultAndroidEventProcessor(DefaultAndroidEventProcessor.java:111)
at io.sentry.android.core.-$$Lambda$DefaultAndroidEventProcessor$ZsPdDrAaOs30gov_5eSNgy_KYe8.call(Unknown Source:2)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:784)
2020-06-30 13:40:59.818 7738-7738/cz.zue.ferki.baseballcz I/Sentry: Initializing SDK with DSN: '<retracted>'
2020-06-30 13:40:59.818 7738-7738/cz.zue.ferki.baseballcz I/Sentry: GlobalHubMode: 'true'
2020-06-30 13:40:59.843 7738-7738/cz.zue.ferki.baseballcz D/Sentry: UncaughtExceptionHandlerIntegration enabled: true
2020-06-30 13:40:59.844 7738-7738/cz.zue.ferki.baseballcz D/Sentry: default UncaughtExceptionHandler class='com.android.internal.os.RuntimeInit$KillApplicationHandler'
2020-06-30 13:40:59.845 7738-7738/cz.zue.ferki.baseballcz D/Sentry: UncaughtExceptionHandlerIntegration installed.
2020-06-30 13:40:59.849 7738-7738/cz.zue.ferki.baseballcz D/Sentry: SendCachedEventFireAndForgetIntegration installed.
2020-06-30 13:40:59.850 7738-7827/cz.zue.ferki.baseballcz D/Sentry: Started processing cached files from /data/user/0/cz.zue.ferki.baseballcz/cache/sentry
2020-06-30 13:40:59.851 7738-7827/cz.zue.ferki.baseballcz D/Sentry: Processing dir. /data/user/0/cz.zue.ferki.baseballcz/cache/sentry
2020-06-30 13:40:59.852 7738-7738/cz.zue.ferki.baseballcz D/Sentry: SendCachedEventFireAndForgetIntegration installed.
2020-06-30 13:40:59.853 7738-7738/cz.zue.ferki.baseballcz D/Sentry: NdkIntegration enabled: true
2020-06-30 13:40:59.855 7738-7827/cz.zue.ferki.baseballcz D/Sentry: Processing 1 items from cache dir /data/user/0/cz.zue.ferki.baseballcz/cache/sentry
2020-06-30 13:40:59.856 7738-7827/cz.zue.ferki.baseballcz D/Sentry: File /data/user/0/cz.zue.ferki.baseballcz/cache/sentry/outbox is not a File.
2020-06-30 13:40:59.856 7738-7738/cz.zue.ferki.baseballcz I/sentry-native: starting backend
2020-06-30 13:40:59.857 7738-7738/cz.zue.ferki.baseballcz D/Sentry: NdkIntegration installed.
2020-06-30 13:40:59.857 7738-7827/cz.zue.ferki.baseballcz D/Sentry: File /data/user/0/cz.zue.ferki.baseballcz/cache/sentry/sessions is not a File.
2020-06-30 13:40:59.858 7738-7827/cz.zue.ferki.baseballcz D/Sentry: File /data/user/0/cz.zue.ferki.baseballcz/cache/sentry/.sentry-native is not a File.
2020-06-30 13:40:59.858 7738-7738/cz.zue.ferki.baseballcz D/Sentry: Registering EnvelopeFileObserverIntegration for path: /data/user/0/cz.zue.ferki.baseballcz/cache/sentry/outbox
2020-06-30 13:40:59.859 7738-7827/cz.zue.ferki.baseballcz D/Sentry: Processing file: /data/user/0/cz.zue.ferki.baseballcz/cache/sentry/a33fe56c3b4344ce9341955730eb2211.sentry-event
2020-06-30 13:40:59.860 7738-7738/cz.zue.ferki.baseballcz D/Sentry: EnvelopeFileObserverIntegration installed.
2020-06-30 13:40:59.862 7738-7738/cz.zue.ferki.baseballcz D/Sentry: SendCachedEventFireAndForgetIntegration installed.
2020-06-30 13:40:59.863 7738-7738/cz.zue.ferki.baseballcz D/Sentry: AnrIntegration enabled: true
2020-06-30 13:40:59.864 7738-7738/cz.zue.ferki.baseballcz D/Sentry: ANR timeout in milliseconds: 5000
2020-06-30 13:40:59.868 7738-7738/cz.zue.ferki.baseballcz D/Sentry: AnrIntegration installed.
2020-06-30 13:40:59.869 7738-7738/cz.zue.ferki.baseballcz D/Sentry: enableSessionTracking enabled: false
2020-06-30 13:40:59.870 7738-7738/cz.zue.ferki.baseballcz D/Sentry: enableAppLifecycleBreadcrumbs enabled: true
2020-06-30 13:40:59.874 7738-7738/cz.zue.ferki.baseballcz D/Sentry: AppLifecycleIntegration installed.
2020-06-30 13:40:59.874 7738-7738/cz.zue.ferki.baseballcz D/Sentry: ActivityBreadcrumbsIntegration enabled: true
2020-06-30 13:40:59.875 7738-7738/cz.zue.ferki.baseballcz D/Sentry: ActivityBreadcrumbsIntegration installed.
2020-06-30 13:40:59.876 7738-7738/cz.zue.ferki.baseballcz D/Sentry: AppComponentsBreadcrumbsIntegration enabled: true
2020-06-30 13:40:59.877 7738-7738/cz.zue.ferki.baseballcz D/Sentry: AppComponentsBreadcrumbsIntegration installed.
2020-06-30 13:40:59.878 7738-7738/cz.zue.ferki.baseballcz D/Sentry: SystemEventsBreadcrumbsIntegration enabled: true
2020-06-30 13:40:59.884 7738-7738/cz.zue.ferki.baseballcz D/Sentry: SystemEventsBreadcrumbsIntegration installed.
2020-06-30 13:40:59.885 7738-7738/cz.zue.ferki.baseballcz D/Sentry: enableSystemEventsBreadcrumbs enabled: true
2020-06-30 13:40:59.893 7738-7738/cz.zue.ferki.baseballcz I/Sentry: TYPE_AMBIENT_TEMPERATURE is not available.
2020-06-30 13:40:59.894 7738-7738/cz.zue.ferki.baseballcz D/Sentry: enableSystemEventBreadcrumbs enabled: true
2020-06-30 13:40:59.911 7738-7738/cz.zue.ferki.baseballcz I/HwApsImpl: APS: new HwApsImpl created
2020-06-30 13:40:59.929 7738-7738/cz.zue.ferki.baseballcz V/HwWidgetFactory: : successes to get AllImpl object and return....
2020-06-30 13:40:59.932 7738-7738/cz.zue.ferki.baseballcz I/HwPhoneWindow: updateLayoutParamsColor false mSpecialSet=false, mForcedNavigationBarColor=false, navigationBarColor=0, mNavBarShow=false, mIsFloating=false
2020-06-30 13:40:59.933 7738-7738/cz.zue.ferki.baseballcz I/HwPhoneWindow: updateLayoutParamsColor true mSpecialSet=false, mForcedNavigationBarColor=false, navigationBarColor=ff000000, mNavBarShow=false, mIsFloating=false
2020-06-30 13:40:59.979 7738-7738/cz.zue.ferki.baseballcz W/erki.baseballc: Accessing hidden method Landroid/view/View;->getAccessibilityDelegate()Landroid/view/View$AccessibilityDelegate; (light greylist, linking)
2020-06-30 13:40:59.992 7738-7738/cz.zue.ferki.baseballcz W/erki.baseballc: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection)
2020-06-30 13:40:59.996 7738-7738/cz.zue.ferki.baseballcz W/erki.baseballc: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)
2020-06-30 13:41:00.022 7738-7827/cz.zue.ferki.baseballcz E/Sentry: Failed to capture cached event /data/user/0/cz.zue.ferki.baseballcz/cache/sentry/a33fe56c3b4344ce9341955730eb2211.sentry-event
com.google.gson.JsonSyntaxException: java.io.EOFException: End of input at line 1 column 456 path $.breadcrumbs
at com.google.gson.internal.Streams.parse(Streams.java:58)
at com.google.gson.JsonParser.parse(JsonParser.java:84)
at io.sentry.android.core.UnknownPropertiesTypeAdapterFactory$UnknownPropertiesTypeAdapter.read(UnknownPropertiesTypeAdapterFactory.java:111)
at io.sentry.android.core.UnknownPropertiesTypeAdapterFactory$UnknownPropertiesTypeAdapter.read(UnknownPropertiesTypeAdapterFactory.java:58)
at com.google.gson.Gson.fromJson(Gson.java:927)
at com.google.gson.Gson.fromJson(Gson.java:865)
at io.sentry.android.core.AndroidSerializer.deserializeEvent(AndroidSerializer.java:116)
at io.sentry.core.SendCachedEvent.processFile(SendCachedEvent.java:59)
at io.sentry.core.DirectoryProcessor.processDirectory(DirectoryProcessor.java:66)
at io.sentry.core.SendFireAndForgetEventSender.lambda$create$0(SendFireAndForgetEventSender.java:41)
at io.sentry.core.-$$Lambda$SendFireAndForgetEventSender$sWL-4fMA0Hvp8YaaWWz0HlchebA.send(Unknown Source:8)
at io.sentry.core.SendCachedEventFireAndForgetIntegration.lambda$register$0(SendCachedEventFireAndForgetIntegration.java:47)
at io.sentry.core.-$$Lambda$SendCachedEventFireAndForgetIntegration$plfmH1uBhkDIqc6Xq3DnDk764m8.run(Unknown Source:4)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:784)
Caused by: java.io.EOFException: End of input at line 1 column 456 path $.breadcrumbs
at com.google.gson.stream.JsonReader.nextNonWhitespace(JsonReader.java:1401)
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:482)
at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:414)
at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:722)
at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:698)
at com.google.gson.internal.Streams.parse(Streams.java:48)
at com.google.gson.JsonParser.parse(JsonParser.java:84)
at io.sentry.android.core.UnknownPropertiesTypeAdapterFactory$UnknownPropertiesTypeAdapter.read(UnknownPropertiesTypeAdapterFactory.java:111)
at io.sentry.android.core.UnknownPropertiesTypeAdapterFactory$UnknownPropertiesTypeAdapter.read(UnknownPropertiesTypeAdapterFactory.java:58)
at com.google.gson.Gson.fromJson(Gson.java:927)
at com.google.gson.Gson.fromJson(Gson.java:865)
at io.sentry.android.core.AndroidSerializer.deserializeEvent(AndroidSerializer.java:116)
at io.sentry.core.SendCachedEvent.processFile(SendCachedEvent.java:59)
at io.sentry.core.DirectoryProcessor.processDirectory(DirectoryProcessor.java:66)
at io.sentry.core.SendFireAndForgetEventSender.lambda$create$0(SendFireAndForgetEventSender.java:41)
at io.sentry.core.-$$Lambda$SendFireAndForgetEventSender$sWL-4fMA0Hvp8YaaWWz0HlchebA.send(Unknown Source:8)
at io.sentry.core.SendCachedEventFireAndForgetIntegration.lambda$register$0(SendCachedEventFireAndForgetIntegration.java:47)
at io.sentry.core.-$$Lambda$SendCachedEventFireAndForgetIntegration$plfmH1uBhkDIqc6Xq3DnDk764m8.run(Unknown Source:4)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:784)
2020-06-30 13:41:00.025 7738-7827/cz.zue.ferki.baseballcz I/Sentry: File '/data/user/0/cz.zue.ferki.baseballcz/cache/sentry/a33fe56c3b4344ce9341955730eb2211.sentry-event' won't retry.
com.google.gson.JsonSyntaxException: java.io.EOFException: End of input at line 1 column 456 path $.breadcrumbs
at com.google.gson.internal.Streams.parse(Streams.java:58)
at com.google.gson.JsonParser.parse(JsonParser.java:84)
at io.sentry.android.core.UnknownPropertiesTypeAdapterFactory$UnknownPropertiesTypeAdapter.read(UnknownPropertiesTypeAdapterFactory.java:111)
at io.sentry.android.core.UnknownPropertiesTypeAdapterFactory$UnknownPropertiesTypeAdapter.read(UnknownPropertiesTypeAdapterFactory.java:58)
at com.google.gson.Gson.fromJson(Gson.java:927)
at com.google.gson.Gson.fromJson(Gson.java:865)
at io.sentry.android.core.AndroidSerializer.deserializeEvent(AndroidSerializer.java:116)
at io.sentry.core.SendCachedEvent.processFile(SendCachedEvent.java:59)
at io.sentry.core.DirectoryProcessor.processDirectory(DirectoryProcessor.java:66)
at io.sentry.core.SendFireAndForgetEventSender.lambda$create$0(SendFireAndForgetEventSender.java:41)
at io.sentry.core.-$$Lambda$SendFireAndForgetEventSender$sWL-4fMA0Hvp8YaaWWz0HlchebA.send(Unknown Source:8)
at io.sentry.core.SendCachedEventFireAndForgetIntegration.lambda$register$0(SendCachedEventFireAndForgetIntegration.java:47)
at io.sentry.core.-$$Lambda$SendCachedEventFireAndForgetIntegration$plfmH1uBhkDIqc6Xq3DnDk764m8.run(Unknown Source:4)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:784)
Caused by: java.io.EOFException: End of input at line 1 column 456 path $.breadcrumbs
at com.google.gson.stream.JsonReader.nextNonWhitespace(JsonReader.java:1401)
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:482)
at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:414)
at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:722)
at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:698)
at com.google.gson.internal.Streams.parse(Streams.java:48)
at com.google.gson.JsonParser.parse(JsonParser.java:84)
at io.sentry.android.core.UnknownPropertiesTypeAdapterFactory$UnknownPropertiesTypeAdapter.read(UnknownPropertiesTypeAdapterFactory.java:111)
at io.sentry.android.core.UnknownPropertiesTypeAdapterFactory$UnknownPropertiesTypeAdapter.read(UnknownPropertiesTypeAdapterFactory.java:58)
at com.google.gson.Gson.fromJson(Gson.java:927)
at com.google.gson.Gson.fromJson(Gson.java:865)
at io.sentry.android.core.AndroidSerializer.deserializeEvent(AndroidSerializer.java:116)
at io.sentry.core.SendCachedEvent.processFile(SendCachedEvent.java:59)
at io.sentry.core.DirectoryProcessor.processDirectory(DirectoryProcessor.java:66)
at io.sentry.core.SendFireAndForgetEventSender.lambda$create$0(SendFireAndForgetEventSender.java:41)
at io.sentry.core.-$$Lambda$SendFireAndForgetEventSender$sWL-4fMA0Hvp8YaaWWz0HlchebA.send(Unknown Source:8)
at io.sentry.core.SendCachedEventFireAndForgetIntegration.lambda$register$0(SendCachedEventFireAndForgetIntegration.java:47)
at io.sentry.core.-$$Lambda$SendCachedEventFireAndForgetIntegration$plfmH1uBhkDIqc6Xq3DnDk764m8.run(Unknown Source:4)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:784)
2020-06-30 13:41:00.027 7738-7827/cz.zue.ferki.baseballcz D/Sentry: Deleted file /data/user/0/cz.zue.ferki.baseballcz/cache/sentry/a33fe56c3b4344ce9341955730eb2211.sentry-event.
2020-06-30 13:41:00.028 7738-7827/cz.zue.ferki.baseballcz D/Sentry: Finished processing cached files from /data/user/0/cz.zue.ferki.baseballcz/cache/sentry
2020-06-30 13:41:00.028 7738-7738/cz.zue.ferki.baseballcz I/FLTAG_FM: loadFeature class:com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
2020-06-30 13:41:00.028 7738-7738/cz.zue.ferki.baseballcz I/FLTAG_SFM: getRequireClassLoader() succ ! className: com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
2020-06-30 13:41:00.028 7738-7827/cz.zue.ferki.baseballcz D/Sentry: Started processing cached files from /data/user/0/cz.zue.ferki.baseballcz/cache/sentry/sessions
2020-06-30 13:41:00.029 7738-7738/cz.zue.ferki.baseballcz D/FeatureFactory: loadFeature() : com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
2020-06-30 13:41:00.029 7738-7738/cz.zue.ferki.baseballcz D/FeatureFactory: loadFeature() new IHwSplineOverScrollerEx()
2020-06-30 13:41:00.029 7738-7827/cz.zue.ferki.baseballcz D/Sentry: Processing dir. /data/user/0/cz.zue.ferki.baseballcz/cache/sentry/sessions
2020-06-30 13:41:00.029 7738-7738/cz.zue.ferki.baseballcz D/HwSplineOverScrollerExImpl: initSplineOverScrollerImpl paras: android.widget.OverScroller$SplineOverScroller@d1714db,cz.zue.ferki.baseballcz.gui.view....
2020-06-30 13:41:16.428 7738-7738/cz.zue.ferki.baseballcz D/AndroidRuntime: Shutting down VM
2020-06-30 13:41:16.444 7738-7738/cz.zue.ferki.baseballcz E/AndroidRuntime: FATAL EXCEPTION: main
Process: cz.zue.ferki.baseballcz, PID: 7738
java.lang.IllegalStateException: Could not execute method for android:onClick
at androidx.appcompat.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:402)
at android.view.View.performClick(View.java:6659)
at android.widget.CompoundButton.performClick(CompoundButton.java:139)
at android.view.View.performClickInternal(View.java:6631)
at android.view.View.access$3100(View.java:790)
at android.view.View$PerformClick.run(View.java:26187)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at androidx.appcompat.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:397)
at android.view.View.performClick(View.java:6659)
at android.widget.CompoundButton.performClick(CompoundButton.java:139)
at android.view.View.performClickInternal(View.java:6631)
at android.view.View.access$3100(View.java:790)
at android.view.View$PerformClick.run(View.java:26187)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
Caused by: java.lang.Exception
at cz.zue.ferki.baseballcz.gui.view.MainActivity.onStatsClick(MainActivity.kt:156)
at java.lang.reflect.Method.invoke(Native Method)
at androidx.appcompat.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:397)
at android.view.View.performClick(View.java:6659)
at android.widget.CompoundButton.performClick(CompoundButton.java:139)
at android.view.View.performClickInternal(View.java:6631)
at android.view.View.access$3100(View.java:790)
at android.view.View$PerformClick.run(View.java:26187)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
2020-06-30 13:41:16.446 7738-7738/cz.zue.ferki.baseballcz I/Sentry: Uncaught exception received.
2020-06-30 13:41:16.456 7738-7738/cz.zue.ferki.baseballcz D/Sentry: Capturing event: 7b85b4b0b1ac4962aa367b171d4432af
2020-06-30 13:41:16.528 7738-7738/cz.zue.ferki.baseballcz I/Sentry: Not possible to read external files directory
2020-06-30 13:41:16.538 7738-7738/cz.zue.ferki.baseballcz I/Sentry: Session is null on scope.withSession
2020-06-30 13:41:16.577 7738-7920/cz.zue.ferki.baseballcz D/Sentry: Adding Event to offline storage: /data/user/0/cz.zue.ferki.baseballcz/cache/sentry/7b85b4b0b1ac4962aa367b171d4432af.sentry-event
2020-06-30 13:41:16.617 7738-7920/cz.zue.ferki.baseballcz E/Sentry: Error writing Event to offline storage: 7b85b4b0b1ac4962aa367b171d4432af
java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
at com.google.gson.internal.$Gson$Types.getGenericSupertype($Gson$Types.java:248)
at com.google.gson.internal.$Gson$Types.getSupertype($Gson$Types.java:284)
at com.google.gson.internal.$Gson$Types.getMapKeyAndValueTypes($Gson$Types.java:327)
at com.google.gson.internal.bind.MapTypeAdapterFactory.create(MapTypeAdapterFactory.java:124)
at com.google.gson.Gson.getDelegateAdapter(Gson.java:541)
at com.google.gson.internal.bind.TreeTypeAdapter.delegate(TreeTypeAdapter.java:89)
at com.google.gson.internal.bind.TreeTypeAdapter.write(TreeTypeAdapter.java:74)
at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:69)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.write(ReflectiveTypeAdapterFactory.java:127)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:245)
at io.sentry.android.core.UnknownPropertiesTypeAdapterFactory$UnknownPropertiesTypeAdapter.write(UnknownPropertiesTypeAdapterFactory.java:103)
at io.sentry.android.core.UnknownPropertiesTypeAdapterFactory$UnknownPropertiesTypeAdapter.write(UnknownPropertiesTypeAdapterFactory.java:58)
at com.google.gson.Gson.toJson(Gson.java:704)
at com.google.gson.Gson.toJson(Gson.java:683)
at io.sentry.android.core.AndroidSerializer.serialize(AndroidSerializer.java:162)
at io.sentry.core.cache.DiskCache.store(DiskCache.java:86)
at io.sentry.core.transport.AsyncConnection$EventSender.flush(AsyncConnection.java:278)
at io.sentry.core.transport.AsyncConnection$EventSender.run(AsyncConnection.java:258)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:784)
2020-06-30 13:41:16.618 7738-7738/cz.zue.ferki.baseballcz I/Sentry: Invoking inner uncaught exception handler.
2020-06-30 13:41:16.619 7738-7920/cz.zue.ferki.baseballcz D/Sentry: Disk flush event fired: 7b85b4b0b1ac4962aa367b171d4432af
2020-06-30 13:41:16.637 7738-7738/cz.zue.ferki.baseballcz I/Process: Sending signal. PID: 7738 SIG: 9
sorry had to remove bunch of logs as it was too long