GrinPlusPlus / GrinPlusPlusMobile

17 stars 6 forks source link

Grin++ crashing when validating state on setup #18

Open philippnagel opened 2 years ago

philippnagel commented 2 years ago

Device: LG G5 OS: LineageOS 11 (18.1)

When starting Grin++ the first time steps 1 and 2 work, after step 3 the app crashes.

Is there any way to extract e.g. logs via ADB?

davidtavarez commented 2 years ago

Which version are you using? Where did you download the APK from?

On Tue, Jan 4, 2022, 08:20 philippnagel @.***> wrote:

Device: LG G5 OS: LineageOS 11 (18.1)

When starting Grin++ the first time steps 1 and 2 work, after step 3 the app crashes.

Is there any way to extract e.g. logs via ADB?

— Reply to this email directly, view it on GitHub https://github.com/GrinPlusPlus/GrinPlusPlusMobile/issues/18, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACSJU4FAJMGNYPPBPTUU2DUUKNUHANCNFSM5LGYZYJQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

philippnagel commented 2 years ago

Whooops, latest directly from Google Play.

davidtavarez commented 2 years ago

Would you mind to download the APK from Keybase? You will need to uninstall the one you have installed from Google Play Store.

The URL is this https://keybase.pub/dtavarez/grin%2B%2B/android90/apk/0.3.0/

Someone else reported that after using that APK he was able to sync properly.

On Tue, Jan 4, 2022, 08:44 philippnagel @.***> wrote:

Whooops, latest directly from Google Play.

— Reply to this email directly, view it on GitHub https://github.com/GrinPlusPlus/GrinPlusPlusMobile/issues/18#issuecomment-1004588316, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACSJU4EE6MUEWHTJJFVVELUUKQNDANCNFSM5LGYZYJQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

philippnagel commented 2 years ago

The version from Google Play is versioned as 0.2.0, will try it and report back!

philippnagel commented 2 years ago

Still no change. Tried it on two different smartphones, both running Android 11.

To rule out network issues I installed the app on Linux and it synced successfully.

Can I e.g. export logs via ADB?

davidtavarez commented 2 years ago

The best way to test this is to download the binary directly from here: https://keybase.pub/dtavarez/grin%2B%2B/android90/binary/testing/

libgrin.so is the node itself.

Install Termux from here: https://termux.com/ and download the node.

Change the permissions like this: chmod a+x libgrin.so

Run it (./libgrin.so) and let it open.

It is important to disable the power optimization for Termux (and Grin++) to avoid the OS kills the app.

sceaduwe commented 2 years ago

I'm having the same issue. Crashes past 25% when validating. Tried it in Termux, and it also crashed. Here's the Node.log from Termux. And the android crash log from the GUI.

type: crash
osVersion: google/sargo/sargo:12/SP2A.220505.006/2022080900:user/release-keys
package: com.grinplusplus.mobile:7
process: com.grinplusplus.mobile

android.runtime.JavaProxyThrowable: System.NullReferenceException: Object reference not set to an instance of an object
  at GrinPlusPlus.Droid.GrinNodeService.OnStartCommand (Android.Content.Intent intent, Android.App.StartCommandFlags flags, System.Int32 startId) [0x00000] in <749f2fa2014f4cf4931c62eadc723ebf>:0 
  at Android.App.Service.n_OnStartCommand_Landroid_content_Intent_II (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_intent, System.Int32 native_flags, System.Int32 startId) [0x0000f] in <5c456b408d8d48a3b7a20e508a799cc6>:0 
  at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.30(intptr,intptr,intptr,int,int)
    at com.grinplusplus.mobile.GrinNodeService.n_onStartCommand(Native Method)
    at com.grinplusplus.mobile.GrinNodeService.onStartCommand(Unknown Source:0)
    at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4712)
    at android.app.ActivityThread.access$2000(ActivityThread.java:257)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2130)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loopOnce(Looper.java:201)
    at android.os.Looper.loop(Looper.java:288)
    at android.app.ActivityThread.main(ActivityThread.java:7876)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
    at com.android.internal.os.ExecInit.main(ExecInit.java:48)
    at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
    at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:355)

Device: Pixel 3a OS: GrapheneOS

davidtavarez commented 2 years ago

Use f-droid to install it https://forum.grin.mw/t/installing-grin-for-android-using-f-droid/9732

sceaduwe commented 2 years ago

that's what i did

davidtavarez commented 2 years ago

I'll check that.