java.lang.RuntimeException: Can't marshal objects across processes.

Appcelerator JIRA | Allen Yeung | 5 years ago
  1. 0

    This happens when I constantly switch back and forth between the main page, and the events page of the attached app. Steps to reproduce: Step 1: download and run the attached project Step 2: click the "Events" button Step 3: click the back button Step 4: repeat Steps 2 & 3 until you see the app crash (this may take 15+ tries) If you look at the crash log with adb log, you will see something like: {code} E/TiBaseActivity(19661): java.lang.RuntimeException: Can't marshal objects across processes. E/TiBaseActivity(19661): at android.os.Message.writeToParcel(Message.java:387) E/TiBaseActivity(19661): at android.os.IMessenger$Stub$Proxy.send(IMessenger.java:84) E/TiBaseActivity(19661): at android.os.Messenger.send(Messenger.java:50) E/TiBaseActivity(19661): at org.appcelerator.titanium.TiBaseActivity.handleSendMessage(TiBaseActivity.java:370) E/TiBaseActivity(19661): at org.appcelerator.titanium.TiBaseActivity$2.run(TiBaseActivity.java:361) E/TiBaseActivity(19661): at org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:219) E/TiBaseActivity(19661): at android.os.Handler.dispatchMessage(Handler.java:95) E/TiBaseActivity(19661): at org.appcelerator.titanium.TiMessageQueue.sendMessage(TiMessageQueue.java:120) E/TiBaseActivity(19661): at org.appcelerator.titanium.TiMessageQueue.post(TiMessageQueue.java:236) E/TiBaseActivity(19661): at org.appcelerator.titanium.TiBaseActivity.sendMessage(TiBaseActivity.java:358) E/TiBaseActivity(19661): at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:329) E/TiBaseActivity(19661): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) E/TiBaseActivity(19661): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2544) E/TiBaseActivity(19661): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2621) E/TiBaseActivity(19661): at android.app.ActivityThread.access$2200(ActivityThread.java:126) E/TiBaseActivity(19661): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1932) E/TiBaseActivity(19661): at android.os.Handler.dispatchMessage(Handler.java:99) E/TiBaseActivity(19661): at android.os.Looper.loop(Looper.java:123) E/TiBaseActivity(19661): at android.app.ActivityThread.main(ActivityThread.java:4595) E/TiBaseActivity(19661): at java.lang.reflect.Method.invokeNative(Native Method) E/TiBaseActivity(19661): at java.lang.reflect.Method.invoke(Method.java:521) E/TiBaseActivity(19661): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) E/TiBaseActivity(19661): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) E/TiBaseActivity(19661): at dalvik.system.NativeStart.main(Native Method) {code}

    Appcelerator JIRA | 5 years ago | Allen Yeung
    java.lang.RuntimeException: Can't marshal objects across processes.
  2. 0

    This happens when I constantly switch back and forth between the main page, and the events page of the attached app. Steps to reproduce: Step 1: download and run the attached project Step 2: click the "Events" button Step 3: click the back button Step 4: repeat Steps 2 & 3 until you see the app crash (this may take 15+ tries) If you look at the crash log with adb log, you will see something like: {code} E/TiBaseActivity(19661): java.lang.RuntimeException: Can't marshal objects across processes. E/TiBaseActivity(19661): at android.os.Message.writeToParcel(Message.java:387) E/TiBaseActivity(19661): at android.os.IMessenger$Stub$Proxy.send(IMessenger.java:84) E/TiBaseActivity(19661): at android.os.Messenger.send(Messenger.java:50) E/TiBaseActivity(19661): at org.appcelerator.titanium.TiBaseActivity.handleSendMessage(TiBaseActivity.java:370) E/TiBaseActivity(19661): at org.appcelerator.titanium.TiBaseActivity$2.run(TiBaseActivity.java:361) E/TiBaseActivity(19661): at org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:219) E/TiBaseActivity(19661): at android.os.Handler.dispatchMessage(Handler.java:95) E/TiBaseActivity(19661): at org.appcelerator.titanium.TiMessageQueue.sendMessage(TiMessageQueue.java:120) E/TiBaseActivity(19661): at org.appcelerator.titanium.TiMessageQueue.post(TiMessageQueue.java:236) E/TiBaseActivity(19661): at org.appcelerator.titanium.TiBaseActivity.sendMessage(TiBaseActivity.java:358) E/TiBaseActivity(19661): at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:329) E/TiBaseActivity(19661): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) E/TiBaseActivity(19661): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2544) E/TiBaseActivity(19661): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2621) E/TiBaseActivity(19661): at android.app.ActivityThread.access$2200(ActivityThread.java:126) E/TiBaseActivity(19661): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1932) E/TiBaseActivity(19661): at android.os.Handler.dispatchMessage(Handler.java:99) E/TiBaseActivity(19661): at android.os.Looper.loop(Looper.java:123) E/TiBaseActivity(19661): at android.app.ActivityThread.main(ActivityThread.java:4595) E/TiBaseActivity(19661): at java.lang.reflect.Method.invokeNative(Native Method) E/TiBaseActivity(19661): at java.lang.reflect.Method.invoke(Method.java:521) E/TiBaseActivity(19661): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) E/TiBaseActivity(19661): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) E/TiBaseActivity(19661): at dalvik.system.NativeStart.main(Native Method) {code}

    Appcelerator JIRA | 5 years ago | Allen Yeung
    java.lang.RuntimeException: Can't marshal objects across processes.
  3. 0

    Latest milestone crashes while browsing TV shows

    GitHub | 3 years ago | AlBundy33
    java.lang.RuntimeException: Can't marshal non-Parcelable objects across processes.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.RuntimeException

    Can't marshal objects across processes.

    at android.os.Message.writeToParcel()
  2. Android Platform
    Messenger.send
    1. android.os.Message.writeToParcel(Message.java:387)
    2. android.os.IMessenger$Stub$Proxy.send(IMessenger.java:84)
    3. android.os.Messenger.send(Messenger.java:50)
    3 frames
  3. org.appcelerator.titanium
    TiMessageQueue.handleMessage
    1. org.appcelerator.titanium.TiBaseActivity.handleSendMessage(TiBaseActivity.java:370)
    2. org.appcelerator.titanium.TiBaseActivity$2.run(TiBaseActivity.java:361)
    3. org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:219)
    3 frames
  4. Android Platform
    Handler.dispatchMessage
    1. android.os.Handler.dispatchMessage(Handler.java:95)
    1 frame
  5. org.appcelerator.titanium
    TiBaseActivity.onCreate
    1. org.appcelerator.titanium.TiMessageQueue.sendMessage(TiMessageQueue.java:120)
    2. org.appcelerator.titanium.TiMessageQueue.post(TiMessageQueue.java:236)
    3. org.appcelerator.titanium.TiBaseActivity.sendMessage(TiBaseActivity.java:358)
    4. org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:329)
    4 frames
  6. Android Platform
    ActivityThread.main
    1. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
    2. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2544)
    3. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2621)
    4. android.app.ActivityThread.access$2200(ActivityThread.java:126)
    5. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1932)
    6. android.os.Handler.dispatchMessage(Handler.java:99)
    7. android.os.Looper.loop(Looper.java:123)
    8. android.app.ActivityThread.main(ActivityThread.java:4595)
    8 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:521)
    2 frames
  8. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
    2 frames
  9. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame