Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android app crashes while save attachment #107

Open
JintoJose opened this issue Jun 28, 2016 · 0 comments
Open

Android app crashes while save attachment #107

JintoJose opened this issue Jun 28, 2016 · 0 comments

Comments

@JintoJose
Copy link

Thanks for this module. I have been using version 1.2.1 on both iOS and Android.
It runs very well on iOS and Android devices and simulators..

However, in Android, the app crashes when try to save a model after an attachment is added to the model. I tried in Jelly Bean and Kit Kat. But this is working well in iOS.
This is what I could see from the logs .

[WARN] : W/System.err: java.lang.NullPointerException

[WARN] : W/System.err: at com.couchbase.lite.Database.generateIDForRevision(Database.java:3223)

[WARN] : W/System.err: at com.couchbase.lite.Database.putRevision(Database.java:3622)

[WARN] : W/System.err: at com.couchbase.lite.Database.putRevision(Database.java:3465)

[WARN] : W/System.err: at com.couchbase.lite.Document.putProperties(Document.java:415)

[WARN] : W/System.err: at com.couchbase.lite.UnsavedRevision.save(UnsavedRevision.java:114)

[WARN] : W/System.err: at com.obscure.titouchdb.UnsavedRevisionProxy.save(UnsavedRevisionProxy.java:50)

[WARN] : W/System.err: at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)

[WARN] : W/System.err: at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:62)

[WARN] : W/System.err: at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:908)

[WARN] : W/System.err: at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1131)

[WARN] : W/System.err: at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:352)

[WARN] : W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95)

[WARN] : W/System.err: at android.os.Looper.loop(Looper.java:153)

[WARN] : W/System.err: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112)

[ERROR] : TiExceptionHandler: (main) [12011,92076] ----- Titanium Javascript Runtime Error -----

[ERROR] : TiExceptionHandler: (main) [0,92076] - In alloy/sync/titouchdb.js:1,69

[ERROR] : TiExceptionHandler: (main) [0,92076] - Message: Uncaught Error: Java Exception occurred

[ERROR] : TiExceptionHandler: (main) [1,92077] - Source: nt(this.id);if(o){var a=o.createRevision();a.setAttachment(e,t,i),a.save()}},e

[ERROR] : V8Exception: Exception occurred at alloy/sync/titouchdb.js:1: Uncaught Error: Java Exception occurred

[INFO] : SurfaceTextureClient: [0x539e0fc8] frames:2, duration:1.385000, fps:1.443336

[INFO] : SurfaceTextureClient: [0x544a3b48] frames:1, duration:2.233000, fps:0.447676

[INFO] : SurfaceTextureClient: [0x544a3b48] frames:3, duration:1.499000, fps:2.000562

[INFO] : SurfaceTextureClient: [0x544a3b48] frames:2, duration:1.000000, fps:1.999967

[INFO] : SurfaceTextureClient: [0x544a3b48] frames:3, duration:1.023000, fps:2.931937

[ERROR] : JNIUtil: !!! Unable to convert unknown Java object class 'com.couchbase.lite.Attachment' to Js value !!!

[INFO] : libc: Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 26412 (KrollRuntimeThr)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant