"Can not persist value" errors

Post your questions and help other users.

Moderator: Martin

Post Reply
automagician
Posts: 8
Joined: 28 Feb 2016 19:11

"Can not persist value" errors

Post by automagician » 22 Mar 2016 19:29

For over a month now, the log feature has been useless to me due to a significant number of errors being logged.

I'm not sure what condition is triggering it, and the errors are almost all identical (excerpt below).

Since it's making it impossible to troubleshoot my actual configuration, I was hoping someone could point me into the right direction.

I'm thinking it might be notification related, as I'm having trouble getting certain notifications to match a really simple regex (which works in the test interface), which also makes it difficult to test, as I can't generate these notifications (Google App).

Any suggestions?

Code: Select all

22.03.2016 14:59:52.576 Can not persist value: android.graphics.Bitmap@d2de518
java.lang.RuntimeException: Tried to marshall a Parcel that contained Binder objects.
at android.os.Parcel.nativeMarshall(Native Method)
at android.os.Parcel.marshall(Parcel.java:442)
at ch.gridvision.ppam.androidautomagic.persistence.SerializableParcelable.<init>(SourceFile:34)
at ch.gridvision.ppam.androidautomagic.e.j.replaceObject(SourceFile:31)
at java.io.ObjectOutputStream.writeObjectInternal(ObjectOutputStream.java:1610)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1497)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1461)
at java.util.HashMap.writeObject(HashMap.java:976)
at java.lang.reflect.Method.invoke(Native Method)
at java.io.ObjectOutputStream.writeHierarchy(ObjectOutputStream.java:1033)
at java.io.ObjectOutputStream.writeNewObject(ObjectOutputStream.java:1384)
at java.io.ObjectOutputStream.writeObjectInternal(ObjectOutputStream.java:1651)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1497)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1461)
at java.util.ArrayList.writeObject(ArrayList.java:648)
at java.lang.reflect.Method.invoke(Native Method)
at java.io.ObjectOutputStream.writeHierarchy(ObjectOutputStream.java:1033)
at java.io.ObjectOutputStream.writeNewObject(ObjectOutputStream.java:1384)
at java.io.ObjectOutputStream.writeObjectInternal(ObjectOutputStream.java:1651)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1497)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1461)
at ch.gridvision.ppam.androidautomagic.e.k.a(SourceFile:56)
at ch.gridvision.ppam.androidautomagic.service.ActionManagerService.a(SourceFile:4434)
at ch.gridvision.ppam.androidautomagic.c.c.e.b(SourceFile:935)
at ch.gridvision.ppam.androidautomagic.c.c.e.a(SourceFile:62)
at ch.gridvision.ppam.androidautomagic.c.c.e$1.run(SourceFile:784)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5422)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

22.03.2016 14:59:52.578 Can not persist value: android.graphics.Bitmap@e80b71
java.lang.RuntimeException: Tried to marshall a Parcel that contained Binder objects.
at android.os.Parcel.nativeMarshall(Native Method)
at android.os.Parcel.marshall(Parcel.java:442)
at ch.gridvision.ppam.androidautomagic.persistence.SerializableParcelable.<init>(SourceFile:34)
at ch.gridvision.ppam.androidautomagic.e.j.replaceObject(SourceFile:31)
at java.io.ObjectOutputStream.writeObjectInternal(ObjectOutputStream.java:1610)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1497)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1461)
at java.util.HashMap.writeObject(HashMap.java:976)
at java.lang.reflect.Method.invoke(Native Method)
at java.io.ObjectOutputStream.writeHierarchy(ObjectOutputStream.java:1033)
at java.io.ObjectOutputStream.writeNewObject(ObjectOutputStream.java:1384)
at java.io.ObjectOutputStream.writeObjectInternal(ObjectOutputStream.java:1651)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1497)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1461)
at java.util.ArrayList.writeObject(ArrayList.java:648)
at java.lang.reflect.Method.invoke(Native Method)
at java.io.ObjectOutputStream.writeHierarchy(ObjectOutputStream.java:1033)
at java.io.ObjectOutputStream.writeNewObject(ObjectOutputStream.java:1384)
at java.io.ObjectOutputStream.writeObjectInternal(ObjectOutputStream.java:1651)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1497)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1461)
at ch.gridvision.ppam.androidautomagic.e.k.a(SourceFile:56)
at ch.gridvision.ppam.androidautomagic.service.ActionManagerService.a(SourceFile:4434)
at ch.gridvision.ppam.androidautomagic.c.c.e.b(SourceFile:935)
at ch.gridvision.ppam.androidautomagic.c.c.e.a(SourceFile:62)
at ch.gridvision.ppam.androidautomagic.c.c.e$1.run(SourceFile:784)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5422)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

22.03.2016 14:59:52.580 Can not persist value: android.graphics.Bitmap@af7d56
java.lang.RuntimeException: Tried to marshall a Parcel that contained Binder objects.
at android.os.Parcel.nativeMarshall(Native Method)
at android.os.Parcel.marshall(Parcel.java:442)
at ch.gridvision.ppam.androidautomagic.persistence.SerializableParcelable.<init>(SourceFile:34)
at ch.gridvision.ppam.androidautomagic.e.j.replaceObject(SourceFile:31)
at java.io.ObjectOutputStream.writeObjectInternal(ObjectOutputStream.java:1610)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1497)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1461)
at java.util.HashMap.writeObject(HashMap.java:976)
at java.lang.reflect.Method.invoke(Native Method)
at java.io.ObjectOutputStream.writeHierarchy(ObjectOutputStream.java:1033)
at java.io.ObjectOutputStream.writeNewObject(ObjectOutputStream.java:1384)
at java.io.ObjectOutputStream.writeObjectInternal(ObjectOutputStream.java:1651)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1497)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1461)
at java.util.ArrayList.writeObject(ArrayList.java:648)
at java.lang.reflect.Method.invoke(Native Method)
at java.io.ObjectOutputStream.writeHierarchy(ObjectOutputStream.java:1033)
at java.io.ObjectOutputStream.writeNewObject(ObjectOutputStream.java:1384)
at java.io.ObjectOutputStream.writeObjectInternal(ObjectOutputStream.java:1651)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1497)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1461)
at ch.gridvision.ppam.androidautomagic.e.k.a(SourceFile:56)
at ch.gridvision.ppam.androidautomagic.service.ActionManagerService.a(SourceFile:4434)
at ch.gridvision.ppam.androidautomagic.c.c.e.b(SourceFile:935)
at ch.gridvision.ppam.androidautomagic.c.c.e.a(SourceFile:62)
at ch.gridvision.ppam.androidautomagic.c.c.e$1.run(SourceFile:784)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5422)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: "Can not persist value" errors

Post by Martin » 24 Mar 2016 20:57

Hi,

You are probably trying to save some kind of images in global variables which is not supported for performance reasons.
However such problems should be catched earlier and should be shown with a better error message. Are you storing notification objects in global variables? Could you please send the logs and flows to me (menu->Manage->Log, menu->Send Log) so I can analyze what's going on?

Regards,
Martin

automagician
Posts: 8
Joined: 28 Feb 2016 19:11

Re: "Can not persist value" errors

Post by automagician » 24 Mar 2016 21:12

Not trying to store images intentionally, which is why this error really confuses me.

But I'm using "Init Variable Notifications on Statusbar" for debugging purposes (but manually executing doesn't seem to trigger it, unless it's only certain apps triggering this), and I'm also using the "Notification on Statusbar Displayed" condition".

I'll try to get more logs, thanks for checking!

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: "Can not persist value" errors

Post by Martin » 24 Mar 2016 21:17

Please also turn on Debug Log and Log to SD card to record a longer and more detailed log file. Restarting the device could help to temporarily fix the problem.

Post Reply