Мое приложение аварийно завершает работу после нажатия на кнопку, которая переводит меня в календарь. Я получаю следующую ошибку. Сбой сразу после вызова этой функции:
private void setCalendar() {
cal.setOnDateChangedListener(this);
cal.setOnRangeSelectedListener(this);
cal.state().edit().setMinimumDate(CalendarDay.today()).commit();
cal.setSelectionMode(MaterialCalendarView.SELECTION_MODE_RANGE);
}
Это ошибка, которую я получаю от logcat:
V/FA-SVC: Background event processing time, ms: 15
V/FA-SVC: Logging event: origin=auto,name=screen_view(_vs),params=Bundle[{ga_event_origin(_o)=auto, ga_previous_class(_pc)=Activity, ga_previous_id(_pi)=-23223232, ga_screen_class(_sc)=CalActivity, ga_screen_id(_si)=-6768868}]
V/ConnectivityManager: isActiveNetworkMetered() returns:false
V/FA-SVC: Upload scheduled in approximately ms: 3047526
V/FA-SVC: Unscheduling upload
V/FA-SVC: Scheduling upload, millis: 3047526
V/FA-SVC: Background event processing time, ms: 11
V/ConnectivityManager: isActiveNetworkMetered() returns:false
/com.application.example.debug E/JavaBinder: !!! FAILED BINDER TRANSACTION !!! (parcel size = 740084)
/com.application.example.debug D/AndroidRuntime: Shutting down VM
W/SurfaceFlinger: couldn't log to binary event log: overflow.
**com.application.example.debug E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.application.example.debug, PID: 33334
java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 740084 bytes
at android.app.ActivityThread$StopInfo.run(ActivityThread.java:3805)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6165)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:888)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:778)
Caused by: android.os.TransactionTooLargeException: data parcel size 740084 bytes
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:615)
at android.app.ActivityManagerProxy.activityStopped(ActivityManagerNative.java:3716)
at android.app.ActivityThread$StopInfo.run(ActivityThread.java:3797)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6165)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:888)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:778)
2020-04-22 13:39:59.207 1711-2563/? W/ActivityManager: Force finishing activity com.application.example.debug/com.application.example.CalActivity**
D/ProcSpeedReader: Failed to read freq stats from null
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
W/ActivityManager: Activity pause timeout for ActivityRecord{7bca00b u0 com.application.winkel_android.debug/com.application.example.CalActivity t891 f}
D/ProcSpeedReader: Failed to read freq stats from null
D/KeyguardUpdateMonitor: received broadcast android.intent.action.TIME_TICK
D/KeyguardUpdateMonitor: handleTimeUpdate
/com.application.example.debug I/CrashlyticsCore: Crashlytics report upload complete: 5EA081380207-0001-416E-0AD9FE5D899A
Я включил несколько строк из logcat до и после ошибки. В основном, основная ошибка:
E/JavaBinder: !!! FAILED BINDER TRANSACTION !!! (parcel size = 740084)
и
java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 740084 bytes
Буду признателен за любую помощь или советы о том, как решить эту проблему.
Спасибо и всего наилучшего.