Closed GiorgosXou closed 1 month ago
@GiorgosXou That's weird, it looks like it's related to R8. Did you build the app by yourself or you have the one from F-Droid ?
@mhss1 The one from F-Droid. I've no idea what R8 is 😅. My phone is way to old, might be even a sign of memory tearing\failure but I doubt (I remember though exporting my data at some point, in the form of an sql database file [which, if I'm not being wrong is part of the latest version, right?])
The only thing I care about are my notes, if I could somehow delete all tasks and then worked, I would be happy. Additionally (might not be related at all but) before I experience this issue for the first time, I remember I tried to export my data to a place where there was already another export
What is the exported file extension? If it is sqlite3
, install the previous version of the app on another device (or on your current one if no data is on the app) and then import the data, and lastly update to the latest version and export the data in the new format If you want to import it in the future
@mhss1 it exports a MyBrain_Backup_17221540085881.json
file of 0-bytes. As I said, it fails to export an sqlite3
due to this error above. I do have installed the latest version 1.0.7
I tried it on devices from Android 8 to 14 and it works without problems, so it might be because of your specifc device configurations. But I will look more into it.
It occured suddenly. I'm pretty sure that if I uninstall it and reinstall it (lose all notes\data), add some new notes and then export, it would work just fine, but... I'm concerned it might happen again and I just don't want to lose my notes [...] Anyways thanks for looking into it and looking forward for any solution that might save my notes
did you try adding 🔋 φορτιστής
as a task? on an Android 8.1.0?
did you try adding
🔋 φορτιστής
as a task? on an Android 8.1.0?
Yes, on Android 8.0.0, but I'm pretty sure it is not the problem.
Did you find the issue or a solution?
I can't export my notes
Did you find the issue or a solution?
Yes, it should be fixed now
I can't find any release or recent commit... is it something related to the dev
-branch? like, an upcoming update?
It will be available in the next update
Just installed the latest version from f-droid and still I can't export:
--------- beginning of main
09-04 05:36:30.374 8888 8888 W zygote64: miui_dex2oat: OatFile: /data/app/com.mhss.app.mybrain-Ofn1vKxj-V7Ef7YsEUJplw==/oat/arm64/base.odex Compiler-Filter = quicken
09-04 05:36:30.377 8888 8888 W ResourceType: No package identifier when getting name for resource number 0x00000000
09-04 05:36:30.424 8888 8888 I [Koin] : Started 92 definitions in 8.653177 ms
09-04 05:36:30.437 8888 8888 D WM-PackageManagerHelper: Skipping component enablement for androidx.work.impl.background.systemjob.SystemJobService
09-04 05:36:30.438 8888 8888 D WM-Schedulers: Created SystemJobScheduler and enabled SystemJobService
09-04 05:36:30.447 8888 8888 W ResourceType: No package identifier when getting name for resource number 0x00000000
09-04 05:36:30.466 8888 8888 D AppCompatDelegate: Checking for metadata for AppLocalesMetadataHolderService : Service not found
09-04 05:36:30.466 8888 8888 W ResourceType: No package identifier when getting name for resource number 0x00000000
09-04 05:36:30.496 8888 8888 D AccessibilityManager: AccessibilityManager status: mPackageName = com.mhss.app.mybrain, mOptimizeEnabled = false, mIsEnabled = false, mIsUiAutomationEnabled = false, mIsInterestedPackage =false
09-04 05:36:30.532 8888 8905 D OpenGLRenderer: HWUI GL Pipeline
09-04 05:36:30.692 8888 8893 I zygote64: Do partial code cache collection, code=22KB, data=27KB
09-04 05:36:30.692 8888 8893 I zygote64: After code cache collection, code=22KB, data=27KB
09-04 05:36:30.692 8888 8893 I zygote64: Increasing code cache capacity to 128KB
09-04 05:36:30.823 8888 8893 I zygote64: Do partial code cache collection, code=48KB, data=52KB
09-04 05:36:30.823 8888 8893 I zygote64: After code cache collection, code=48KB, data=52KB
09-04 05:36:30.823 8888 8893 I zygote64: Increasing code cache capacity to 256KB
09-04 05:36:30.825 8888 8893 I zygote64: Compiler allocated 5MB to compile void T.r.r(boolean)
09-04 05:36:30.859 8888 8888 I zygote64: Deoptimizing void T.r.r(boolean) due to JIT inline cache
09-04 05:36:31.084 8888 8893 I zygote64: Do full code cache collection, code=120KB, data=117KB
09-04 05:36:31.084 8888 8893 I zygote64: After code cache collection, code=56KB, data=36KB
09-04 05:36:31.215 8888 8893 I zygote64: Compiler allocated 5MB to compile void T.r.r(boolean)
09-04 05:36:31.238 8888 8888 I zygote64: Deoptimizing void T.r.r(boolean) due to JIT inline cache
09-04 05:36:31.423 8888 8893 I zygote64: Do partial code cache collection, code=118KB, data=105KB
09-04 05:36:31.423 8888 8893 I zygote64: After code cache collection, code=101KB, data=93KB
09-04 05:36:31.423 8888 8893 I zygote64: Increasing code cache capacity to 512KB
09-04 05:36:31.427 8888 8893 I zygote64: Compiler allocated 5MB to compile void T.r.r(boolean)
09-04 05:36:31.469 8888 8905 I Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 10/04/18, d916c72, I7663a5f222
09-04 05:36:31.474 8888 8905 D vndksupport: Loading /vendor/lib64/hw/gralloc.msm8937.so from current namespace instead of sphal namespace.
09-04 05:36:31.482 8888 8905 I zygote64: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
09-04 05:36:31.482 8888 8905 I OpenGLRenderer: Initialized EGL, version 1.4
09-04 05:36:31.482 8888 8905 D OpenGLRenderer: Swap behavior 2
09-04 05:36:31.490 8888 8905 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:612>: EGL_BAD_ATTRIBUTE
09-04 05:36:31.492 8888 8905 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:612>: EGL_BAD_ATTRIBUTE
09-04 05:36:31.494 8888 8905 D vndksupport: Loading /vendor/lib64/hw/gralloc.msm8937.so from current namespace instead of sphal namespace.
09-04 05:36:31.586 8888 8888 I zygote64: Deoptimizing int r.v.d(java.lang.Object) due to JIT inline cache
09-04 05:36:31.588 8888 8888 I zygote64: Deoptimizing void d0.A.<init>() due to JIT inline cache
09-04 05:36:31.631 8888 8888 I Choreographer: Skipped 63 frames! The application may be doing too much work on its main thread.
--------- beginning of system
09-04 05:36:31.632 8888 8888 W Looper : Slow Frame: doFrame is 1051ms late
09-04 05:36:31.703 8888 8888 I zygote64: Deoptimizing void w2.w.<init>(w2.N, b6.b, java.util.Map) due to JIT inline cache
09-04 05:36:31.748 8888 8888 I zygote64: Deoptimizing java.lang.Object C0.Y.d() due to JIT inline cache
09-04 05:36:31.914 8888 8905 D vndksupport: Loading /vendor/lib64/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace.
09-04 05:36:31.915 8888 8905 D vndksupport: Loading /vendor/lib64/hw/gralloc.msm8937.so from current namespace instead of sphal namespace.
09-04 05:36:31.943 8888 8893 I zygote64: Do full code cache collection, code=251KB, data=193KB
09-04 05:36:31.943 8888 8893 I zygote64: After code cache collection, code=194KB, data=105KB
09-04 05:36:31.993 8888 8888 W Looper : Slow Frame: doFrame is 345ms late
09-04 05:36:38.249 8888 8888 I zygote64: Deoptimizing l6.j l6.j.f() due to JIT inline cache
09-04 05:36:38.351 8888 8888 I zygote64: Deoptimizing d0.A d0.m.t(d0.A, d0.y) due to JIT inline cache
09-04 05:36:38.353 8888 8888 I zygote64: Deoptimizing void T.r.Q(java.lang.Object, int, java.lang.Object, int) due to JIT inline cache
09-04 05:36:38.385 8888 8893 I zygote64: Do partial code cache collection, code=245KB, data=176KB
09-04 05:36:38.386 8888 8893 I zygote64: After code cache collection, code=217KB, data=165KB
09-04 05:36:38.386 8888 8893 I zygote64: Increasing code cache capacity to 1024KB
09-04 05:36:38.892 8888 8888 I zygote64: Deoptimizing java.lang.Object K5.c.X(java.lang.Object, U5.e) due to JIT inline cache
09-04 05:36:38.920 8888 8888 W Looper : Slow Frame: doFrame is 488ms late
09-04 05:36:39.001 8888 8893 I zygote64: Compiler allocated 4MB to compile java.lang.Object k4.i0.h(java.lang.Object, java.lang.Object, java.lang.Object)
09-04 05:36:39.255 8888 8888 I zygote64: Deoptimizing int T.r.k(int, int, int, int) due to JIT inline cache
09-04 05:36:39.441 8888 8893 I zygote64: Do full code cache collection, code=499KB, data=410KB
09-04 05:36:39.442 8888 8893 I zygote64: After code cache collection, code=460KB, data=269KB
09-04 05:36:42.281 8888 8893 I zygote64: Do partial code cache collection, code=504KB, data=344KB
09-04 05:36:42.282 8888 8893 I zygote64: After code cache collection, code=504KB, data=344KB
09-04 05:36:42.282 8888 8893 I zygote64: Increasing code cache capacity to 2MB
09-04 05:36:42.347 8888 8888 I zygote64: Deoptimizing java.lang.Object A.h0.j(java.lang.Object, java.lang.Object) due to JIT inline cache
09-04 05:36:42.387 8888 8893 I zygote64: Compiler allocated 6MB to compile void l5.f.g(w2.B, w2.y, f0.q, f0.d, U5.c, U5.c, U5.c, U5.c, U5.c, T.r, int)
09-04 05:36:42.456 8888 8888 I zygote64: Deoptimizing void f6.N.run() due to JIT inline cache
09-04 05:36:42.459 8888 8888 I zygote64: Deoptimizing l6.j l6.j.f() due to JIT inline cache
09-04 05:36:44.152 8888 8888 I zygote64: Deoptimizing K5.d N6.d.J(K5.d) due to JIT inline cache
09-04 05:36:44.269 8888 8893 I zygote64: Compiler allocated 5MB to compile java.lang.Object Q.a.d()
09-04 05:36:44.291 8888 8888 I zygote64: Deoptimizing boolean f6.p0.G(java.lang.Object) due to JIT inline cache
09-04 05:36:44.292 8888 8888 I zygote64: Deoptimizing boolean f6.p0.I(java.lang.Throwable) due to JIT inline cache
09-04 05:36:44.292 8888 8888 I zygote64: Deoptimizing void f6.a.o0(java.lang.Object) due to JIT same target
09-04 05:36:44.452 8888 8905 W Adreno-ES20: <core_glFinish:34>: glFinish skipped: 0
09-04 05:36:44.467 8888 8905 W Adreno-ES20: <core_glFinish:34>: glFinish skipped: 0
09-04 05:36:44.499 8888 8905 W Adreno-ES20: <core_glFinish:34>: glFinish skipped: 0
09-04 05:36:44.502 8888 8888 I zygote64: Deoptimizing void f6.l.p(int) due to JIT inline cache
09-04 05:36:44.503 8888 8906 I zygote64: Deoptimizing java.lang.Object K5.c.X(java.lang.Object, U5.e) due to JIT inline cache
09-04 05:36:44.503 8888 8906 I zygote64: Deoptimizing java.lang.Object l6.b.n(K5.i, java.lang.Object) due to JIT inline cache
09-04 05:36:44.504 8888 8906 I zygote64: Deoptimizing java.lang.Object l6.b.m(K5.i) due to JIT inline cache
09-04 05:36:44.509 8888 8905 W Adreno-ES20: <core_glFinish:34>: glFinish skipped: 0
09-04 05:36:47.071 8888 8905 W Adreno-ES20: <core_glFinish:34>: glFinish skipped: 0
09-04 05:36:47.071 8888 8905 W Adreno-ES20: <core_glFinish:34>: glFinish skipped: 0
09-04 05:36:47.081 8888 8888 I zygote64: Deoptimizing java.lang.Object K5.b.j(java.lang.Object, java.lang.Object) due to JIT inline cache
09-04 05:36:47.100 8888 8888 I zygote64: Deoptimizing void f6.N.run() due to JIT inline cache
09-04 05:36:47.131 8888 8905 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:612>: EGL_BAD_ATTRIBUTE
09-04 05:36:47.140 8888 8905 D vndksupport: Loading /vendor/lib64/hw/gralloc.msm8937.so from current namespace instead of sphal namespace.
09-04 05:36:47.177 8888 8947 I zygote64: Deoptimizing void f6.p0.P(f6.e0, java.lang.Object) due to JIT inline cache
09-04 05:36:47.180 8888 8906 I zygote64: Deoptimizing void l6.b.j(K5.d, java.lang.Object, U5.c) due to JIT inline cache
09-04 05:36:47.266 8888 8923 W System.err: D6.q: Unexpected JSON token at offset 3: Encountered an unknown key 'a' at path: $[0]
09-04 05:36:47.266 8888 8923 W System.err: Use 'ignoreUnknownKeys = true' in 'Json {}' builder to ignore unknown keys.
09-04 05:36:47.266 8888 8923 W System.err: JSON input: [{"a":"🔋 φορτιστής ","b":true,"c.....
09-04 05:36:47.266 8888 8923 W System.err: at D6.v.d(Unknown Source:36)
09-04 05:36:47.266 8888 8923 W System.err: at D6.v.e(Unknown Source:34)
09-04 05:36:47.266 8888 8923 W System.err: at D6.a.q(Unknown Source:58)
09-04 05:36:47.266 8888 8923 W System.err: at D6.I.p(Unknown Source:373)
09-04 05:36:47.266 8888 8923 W System.err: at d4.u.b(Unknown Source:21)
09-04 05:36:47.266 8888 8923 W System.err: at D6.I.b(Unknown Source:281)
09-04 05:36:47.266 8888 8923 W System.err: at H7.e.D(Unknown Source:10)
09-04 05:36:47.266 8888 8923 W System.err: at D6.I.D(Unknown Source:49)
09-04 05:36:47.266 8888 8923 W System.err: at B6.s.j(Unknown Source:7)
09-04 05:36:47.266 8888 8923 W System.err: at B6.a.i(Unknown Source:34)
09-04 05:36:47.266 8888 8923 W System.err: at B6.a.b(Unknown Source:5)
09-04 05:36:47.266 8888 8923 W System.err: at D6.I.b(Unknown Source:281)
09-04 05:36:47.266 8888 8923 W System.err: at C6.c.a(Unknown Source:29)
09-04 05:36:47.266 8888 8923 W System.err: at V0.h.s(Unknown Source:22)
09-04 05:36:47.266 8888 8923 W System.err: at Y3.q.call(Unknown Source:531)
09-04 05:36:47.266 8888 8923 W System.err: at C2.b.r(Unknown Source:80)
09-04 05:36:47.266 8888 8923 W System.err: at M5.a.v(Unknown Source:8)
09-04 05:36:47.266 8888 8923 W System.err: at f6.N.run(Unknown Source:112)
09-04 05:36:47.266 8888 8923 W System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
09-04 05:36:47.266 8888 8923 W System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
09-04 05:36:47.266 8888 8923 W System.err: at java.lang.Thread.run(Thread.java:764)
@GiorgosXou Are you sure you are exporting and not importing?
Yes
@GiorgosXou can you follow these steps:
download link: https://quickshare.samsungcloud.com/wjWa7sJDagQD
Both "app1.apk" and "app2.apk" export successfully to a json file (including when I add tasks).
I suspect that the issue isn't so related to the exporting mechanism, due to the fact that it fails to open "tasks"-section anyways (on the original F-Droid app). I think it's either due to a memory-failure that occurred at some point (my phone is too old) or something else. Either way I don't care about tasks so if by ignoring them or erasing them somehow I could export my notes I'd be happy too
You can manually move the data to this and export it. And then, clear the app data (the main one), uninstall it, reinstall the app from f-droid and import the data.
Wdym manually? I have about a thousand notes... Is there a way of overwriting tasks by importing a json file (consisting of only tasks), without effecting notes?
Oh, then I will add an option to choose what types to export in the next release so you can export all data except tasks.
Describe the bug The app crashes every time I open "tasks" and fails to export data due to (I suspect) an
unknown key 'a' at path: $[0]
(I think this started happening since the latest version)To Reproduce Steps to reproduce the behavior:
🔋 φορτιστής
(greek or an emoji?)Expected behavior It shouldn't crash :P
Smartphone:
Additional context Here's the
adb logcat --pid=`adb shell pidof -s com.mhss.app.mybrain`
when opening "tasks":... and here's when exporting data:
On both cases it seems to be about this, as you see: