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

Crash on start #14

Closed
Luflosi opened this issue Feb 5, 2019 · 10 comments
Closed

Crash on start #14

Luflosi opened this issue Feb 5, 2019 · 10 comments

Comments

@Luflosi
Copy link

Luflosi commented Feb 5, 2019

I installed Sweet IPFS from F-Droid but if I try to launch the app, it immediately crashes. How can I debug this?
I have a OnePlus X (32 bit processor) running LineageOS, Android 7.1.2.

@Mikaela
Copy link

Mikaela commented Apr 23, 2019

I am having this with Samsung Galaxy S III running Android 7.1.2 5 February 2019 security patches (Resurrection Remix Nougat android--7.1.2_r36 - NJH4F). Sweet IPFS version 0.2.

By adb logcat|\grep fr.rhaz.ipfs.sweet|tee sweetipfs.log I got the following, I hope it's of any use:

04-23 19:21:32.547  3053 10969 I ActivityManager: START u0 {act=android.settings.APPLICATION_DETAILS_SETTINGS dat=package:fr.rhaz.ipfs.sweet flg=0x10008000 cmp=com.android.settings/.applications.InstalledAppDetails} from uid 1000 on display 0
04-23 19:22:13.484  3053  9306 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 pkg=fr.rhaz.ipfs.sweet cmp=fr.rhaz.ipfs.sweet/.MainActivity} from uid 1000 on display 0
04-23 19:22:13.537  3053  9900 I ActivityManager: Start proc 3158:fr.rhaz.ipfs.sweet/u0a97 for activity fr.rhaz.ipfs.sweet/.MainActivity
04-23 19:22:13.681  3158  3158 W System  : ClassLoader referenced unknown path: /data/app/fr.rhaz.ipfs.sweet-1/lib/arm
04-23 19:22:25.433  3053  3635 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 pkg=fr.rhaz.ipfs.sweet cmp=fr.rhaz.ipfs.sweet/.MainActivity} from uid 1000 on display 0
04-23 19:22:50.769  3053  3425 I ActivityManager: START u0 {act=android.settings.APPLICATION_DETAILS_SETTINGS dat=package:fr.rhaz.ipfs.sweet flg=0x10008000 cmp=com.android.settings/.applications.InstalledAppDetails} from uid 1000 on display 0
04-23 19:23:02.770  3053  3425 I ActivityManager: Force stopping fr.rhaz.ipfs.sweet appid=10097 user=0: from pid 3002
04-23 19:23:02.773  3053  3425 I ActivityManager: Killing 3158:fr.rhaz.ipfs.sweet/u0a97 (adj 900): stop fr.rhaz.ipfs.sweet
04-23 19:23:15.027  3053  3990 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 pkg=fr.rhaz.ipfs.sweet cmp=fr.rhaz.ipfs.sweet/.MainActivity} from uid 1000 on display 0
04-23 19:23:15.081  3053  3639 I ActivityManager: Start proc 3287:fr.rhaz.ipfs.sweet/u0a97 for activity fr.rhaz.ipfs.sweet/.MainActivity
04-23 19:23:15.219  3287  3287 W System  : ClassLoader referenced unknown path: /data/app/fr.rhaz.ipfs.sweet-1/lib/arm
04-23 19:23:15.699  3053  9306 I WindowManager: Failed to capture screenshot of Token{603aaa1 ActivityRecord{5e4c308 u0 fr.rhaz.ipfs.sweet/.MainActivity t41 f}} appWin=Window{73d134e u0 fr.rhaz.ipfs.sweet/fr.rhaz.ipfs.sweet.MainActivity} drawState=4
04-23 19:23:18.698  3053  9306 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 pkg=fr.rhaz.ipfs.sweet cmp=fr.rhaz.ipfs.sweet/.MainActivity} from uid 1000 on display 0
04-23 19:23:25.644  3053  3641 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 pkg=fr.rhaz.ipfs.sweet cmp=fr.rhaz.ipfs.sweet/.MainActivity} from uid 1000 on display 0
04-23 19:23:31.449  3053  3066 I ActivityManager: START u0 {act=android.settings.APPLICATION_DETAILS_SETTINGS dat=package:fr.rhaz.ipfs.sweet flg=0x10008000 cmp=com.android.settings/.applications.InstalledAppDetails} from uid 1000 on display 0
04-23 19:23:52.840  3053 10221 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 pkg=fr.rhaz.ipfs.sweet cmp=fr.rhaz.ipfs.sweet/.MainActivity} from uid 1000 on display 0
04-23 19:23:53.349  3053  3635 I WindowManager: Failed to capture screenshot of Token{6c86eab ActivityRecord{ab548fa u0 fr.rhaz.ipfs.sweet/.MainActivity t44 f}} appWin=Window{179ac11 u0 fr.rhaz.ipfs.sweet/fr.rhaz.ipfs.sweet.MainActivity} drawState=4
04-23 19:23:54.907  3053  9332 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 pkg=fr.rhaz.ipfs.sweet cmp=fr.rhaz.ipfs.sweet/.MainActivity} from uid 1000 on display 0
04-23 19:24:28.748  3053 11014 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 pkg=fr.rhaz.ipfs.sweet cmp=fr.rhaz.ipfs.sweet/.MainActivity} from uid 1000 on display 0
04-23 19:24:29.098  3053 11011 I WindowManager: Failed to capture screenshot of Token{e31ce2b ActivityRecord{572767a u0 fr.rhaz.ipfs.sweet/.MainActivity t46 f}} appWin=Window{24e3bcd u0 fr.rhaz.ipfs.sweet/fr.rhaz.ipfs.sweet.MainActivity} drawState=4

When I was trying to get adb connected before the above I also saw:

04-23 09:36:20.765  3053  3263 W PackageManager: Not granting permission android.permission.WRITE_EXTERNAL_STORAGE to package fr.rhaz.ipfs.sweet because it w$
s previously installed without                                                                                                                                04-23 09:36:20.765  3053  3263 W PackageManager: Not granting permission android.permission.READ_EXTERNAL_STORAGE to package fr.rhaz.ipfs.sweet because it wa$
 previously installed without                                                                                                                                 04-23 09:36:20.765  3053  3263 W PackageManager: Unknown permission android.permission.FOREGROUND_SERVICE in package fr.rhaz.ipfs.sweet                       
04-23 19:21:32.547  3053 10969 I ActivityManager: START u0 {act=android.settings.APPLICATION_DETAILS_SETTINGS dat=package:fr.rhaz.ipfs.sweet flg=0x10008000 c$p=com.android.settings/.applications.InstalledAppDetails} from uid 1000 on display 0                                                                          
04-23 19:22:13.484  3053  9306 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 pkg=fr.rhaz.$pfs.sweet cmp=fr.rhaz.ipfs.sweet/.MainActivity} from uid 1000 on display 0                                                                                    
04-23 19:22:13.537  3053  9900 I ActivityManager: Start proc 3158:fr.rhaz.ipfs.sweet/u0a97 for activity fr.rhaz.ipfs.sweet/.MainActivity                      
04-23 19:22:13.681  3158  3158 W System  : ClassLoader referenced unknown path: /data/app/fr.rhaz.ipfs.sweet-1/lib/arm                                        
04-23 19:22:25.433  3053  3635 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 pkg=fr.rhaz.$
pfs.sweet cmp=fr.rhaz.ipfs.sweet/.MainActivity} from uid 1000 on display 0              

but that made no sense to me as Sweet IPFS has the storage permission.

@rafaelekol
Copy link

Can show crash log? What is throwing exception.

@Mikaela
Copy link

Mikaela commented Apr 24, 2019

How do I get it if it's not that?

@rafaelekol
Copy link

If you are using Android Studio, you can see logs in bottom window named Logcat. The crash log will be in red color.

@Mikaela
Copy link

Mikaela commented Apr 24, 2019

How do I find Logcat in Android Studio? I have used an search engine for an hour trying to find different guides for writing bug reports, getting logcat, installed root logcat reader and tried to read raw adb logcat where the only thing I see is that I start the app and then nothing, it just quits.

04-24 18:24:47.424  3063  3651 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 pkg=fr.rhaz.$
pfs.sweet cmp=fr.rhaz.ipfs.sweet/.MainActivity} from uid 1000 on display 0                                                                                    
04-24 18:24:47.491  3063  3937 I ActivityManager: Start proc 7657:fr.rhaz.ipfs.sweet/u0a97 for activity fr.rhaz.ipfs.sweet/.MainActivity                      
04-24 18:24:47.531  7657  7657 W main    : type=1400 audit(0.0:967): avc: denied { read } for name="u:object_r:userinit_prop:s0" dev=tmpfs ino=421 scontext=u$
r:untrusted_app:s0:c512,c768 tcontext=u:object_r:userinit_prop:s0 tclass=file permissive=0                                                                    
04-24 18:24:47.531  7657  7657 W main    : type=1400 audit(0.0:968): avc: denied { read } for name="u:object_r:adbsecure_prop:s0" dev=tmpfs ino=422 scontext=$
:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:adbsecure_prop:s0 tclass=file permissive=0                                                                  
04-24 18:24:47.531  7657  7657 W main    : type=1400 audit(0.0:969): avc: denied { read } for name="u:object_r:recovery_prop:s0" dev=tmpfs ino=423 scontext=u$
r:untrusted_app:s0:c512,c768 tcontext=u:object_r:recovery_prop:s0 tclass=file permissive=0                                                                    
04-24 18:24:47.531  7657  7657 W main    : type=1400 audit(0.0:970): avc: denied { read } for name="u:object_r:adbtcp_prop:s0" dev=tmpfs ino=424 scontext=u:r$
untrusted_app:s0:c512,c768 tcontext=u:object_r:adbtcp_prop:s0 tclass=file permissive=0                                                                        
04-24 18:24:47.531  7657  7657 W main    : type=1400 audit(0.0:971): avc: denied { read } for name="u:object_r:safemode_prop:s0" dev=tmpfs ino=433 scontext=u$
r:untrusted_app:s0:c512,c768 tcontext=u:object_r:safemode_prop:s0 tclass=file permissive=0                                                                    
04-24 18:24:47.531  7657  7657 W main    : type=1400 audit(0.0:972): avc: denied { read } for name="u:object_r:mmc_prop:s0" dev=tmpfs ino=434 scontext=u:r:un$
rusted_app:s0:c512,c768 tcontext=u:object_r:mmc_prop:s0 tclass=file permissive=0                                                                              
04-24 18:24:47.531  7657  7657 W main    : type=1400 audit(0.0:973): avc: denied { read } for name="u:object_r:logpersistd_logging_prop:s0" dev=tmpfs ino=435 
scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:logpersistd_logging_prop:s0 tclass=file permissive=0                                              
04-24 18:24:47.531  7657  7657 W main    : type=1400 audit(0.0:974): avc: denied { read } for name="u:object_r:device_logging_prop:s0" dev=tmpfs ino=436 scon$
ext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:device_logging_prop:s0 tclass=file permissive=0                                                        
04-24 18:24:47.531  7657  7657 W main    : type=1400 audit(0.0:975): avc: denied { read } for name="u:object_r:theme_prop:s0" dev=tmpfs ino=451 scontext=u:r:$
ntrusted_app:s0:c512,c768 tcontext=u:object_r:theme_prop:s0 tclass=file permissive=0                                                                          
04-24 18:24:47.674  7657  7657 I art     : Starting a blocking GC AddRemoveAppImageSpace                                                                      
04-24 18:24:47.680  7657  7657 W System  : ClassLoader referenced unknown path: /data/app/fr.rhaz.ipfs.sweet-1/lib/arm
04-24 18:24:47.776  7657  7657 D TraceDroid: current handler class=com.android.internal.os.RuntimeInit$UncaughtHandler
04-24 18:24:47.821  7657  7673 D libEGL  : loaded /system/lib/egl/libEGL_mali.so

04-24 18:24:47.860  7657  7673 D libEGL  : loaded /system/lib/egl/libGLESv1_CM_mali.so
04-24 18:24:47.947  7657  7673 D libEGL  : loaded /system/lib/egl/libGLESv2_mali.so
04-24 18:24:47.973  3063  3952 I ActivityManager: START u0 {act=android.content.pm.action.REQUEST_PERMISSIONS pkg=com.android.packageinstaller cmp=com.android
.packageinstaller/.permission.ui.GrantPermissionsActivity (has extras)} from uid 10097 on display 0
04-24 18:24:48.091  7657  7676 W System  : ClassLoader referenced unknown path: /system/framework/tcmclient.jar
04-24 18:24:48.093  7657  7676 D NetworkSecurityConfig: No Network Security Config specified, using platform default
04-24 18:24:48.117  3063  3441 I ActivityManager: Start proc 7680:com.android.packageinstaller/u0a29 for activity com.android.packageinstaller/.permission.ui.
GrantPermissionsActivity
04-24 18:24:48.149  7657  7679 E         : Device driver API match
04-24 18:24:48.149  7657  7679 E         : Device driver API version: 29
04-24 18:24:48.149  7657  7679 E         : User space API version: 29
04-24 18:24:48.149  7657  7679 E         : mali: REVISION=Linux-r3p2-01rel3 BUILD_DATE=Tue Aug 26 17:05:16 KST 2014
04-24 18:24:48.151  7680  7680 W main    : type=1400 audit(0.0:976): avc: denied { read } for name="u:object_r:userinit_prop:s0" dev=tmpfs ino=421 scontext=u$
04-24 18:24:48.159  7657  7679 I OpenGLRenderer: Initialized EGL, version 1.4
04-24 18:24:48.159  7657  7679 D OpenGLRenderer: Swap behavior 1
04-24 18:24:48.151  7680  7680 W main    : type=1400 audit(0.0:977): avc: denied { read } for name="u:object_r:adbsecure_prop:s0" dev=tmpfs ino=422 scontext=u
:r:platform_app:s0:c512,c768 tcontext=u:object_r:adbsecure_prop:s0 tclass=file permissive=0
04-24 18:24:48.151  7680  7680 W main    : type=1400 audit(0.0:978): avc: denied { read } for name="u:object_r:recovery_prop:s0" dev=tmpfs ino=423 scontext=u:
r:platform_app:s0:c512,c768 tcontext=u:object_r:recovery_prop:s0 tclass=file permissive=0
04-24 18:24:48.151  7680  7680 W main    : type=1400 audit(0.0:979): avc: denied { read } for name="u:object_r:adbtcp_prop:s0" dev=tmpfs ino=424 scontext=u:r:
platform_app:s0:c512,c768 tcontext=u:object_r:adbtcp_prop:s0 tclass=file permissive=0
04-24 18:24:48.151  7680  7680 W main    : type=1400 audit(0.0:980): avc: denied { read } for name="u:object_r:safemode_prop:s0" dev=tmpfs ino=433 scontext=u:
r:platform_app:s0:c512,c768 tcontext=u:object_r:safemode_prop:s0 tclass=file permissive=0
04-24 18:24:48.156  7680  7680 W main    : type=1400 audit(0.0:981): avc: denied { read } for name="u:object_r:mmc_prop:s0" dev=tmpfs ino=434 scontext=u:r:pla
tform_app:s0:c512,c768 tcontext=u:object_r:mmc_prop:s0 tclass=file permissive=0
04-24 18:24:48.156  7680  7680 W main    : type=1400 audit(0.0:982): avc: denied { read } for name="u:object_r:logpersistd_logging_prop:s0" dev=tmpfs ino=435
scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:logpersistd_logging_prop:s0 tclass=file permissive=0
04-24 18:24:48.156  7680  7680 W main    : type=1400 audit(0.0:983): avc: denied { read } for name="u:object_r:device_logging_prop:s0" dev=tmpfs ino=436 scont
ext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:device_logging_prop:s0 tclass=file permissive=0
04-24 18:24:48.156  7680  7680 W main    : type=1400 audit(0.0:984): avc: denied { read } for name="u:object_r:theme_prop:s0" dev=tmpfs ino=451 scontext=u:r:p
latform_app:s0:c512,c768 tcontext=u:object_r:theme_prop:s0 tclass=file permissive=0
04-24 18:24:48.242  7680  7680 W System  : ClassLoader referenced unknown path: /system/priv-app/PackageInstaller/lib/arm
04-24 18:24:48.325  7680  7698 D libEGL  : loaded /system/lib/egl/libEGL_mali.so
04-24 18:24:48.361  7680  7698 D libEGL  : loaded /system/lib/egl/libGLESv1_CM_mali.so
04-24 18:24:48.408  7680  7698 D libEGL  : loaded /system/lib/egl/libGLESv2_mali.so
04-24 18:24:48.457  4052  4052 W IInputConnectionWrapper: reportFullscreenMode on inexistent InputConnection




04-24 18:24:48.618  3063  3096 I ActivityManager: Killing 7014:com.android.settings/1000 (adj 906): empty #17
04-24 18:24:48.645  3063  3441 D ActivityManager: cleanUpApplicationRecord -- 7014


04-24 18:24:48.731  3063  3074 I art     : Background partial concurrent mark sweep GC freed 44658(2MB) AllocSpace objects, 3(68KB) LOS objects, 33% free, 9MB
/13MB, paused 2.790ms total 158.772ms




04-24 18:24:48.904  3063  3076 I ActivityManager: Killing 7049:android.process.acore/u0a0 (adj 906): empty #17
04-24 18:24:48.923  3063  3422 D ActivityManager: cleanUpApplicationRecord -- 7049                                                                  [145/1887]

This is my latest try where I just held enter before starting and after Sweet IPFS crashed. Does it contain anything useful?

@rafaelekol
Copy link

rafaelekol commented Apr 25, 2019

I couldn't find any useful information from your log.
I will attach picture where you can see how my Logcat shows logs from SweetIpfs
Screen Shot 2019-04-25 at 08 55 06

Basically you should just launch app, and red crash logs in Logcat window. Make sure that at top right corner in Logcat you selected option No filters

@Mikaela
Copy link

Mikaela commented Apr 25, 2019

How do I get that view in Android Studio?

Screenshot from 2019-04-24 17-53-24

I got this far and then I was unsure on what to do so I ended up forking and cloning the repository within Android Studio, but there was no Logcat even then.

@rafaelekol
Copy link

According screen you not even opened the project inside Android Studio. First try open or import this project inside Android Studio.
If you are not familiar with Android Studio, check tutorials how to use it. I think its best place to write Android apps.

@ildar
Copy link

ildar commented Nov 26, 2019

the trick here is that the app closes silently and adb logcat has nothing valuable, except maybe:

11-26 14:27:25.950 26968 26968 D TraceDroid: current handler class=com.android.internal.os.RuntimeInit$UncaughtHandler

In my case the app just asked the Storage permission then closed silently.

@ildar
Copy link

ildar commented Nov 26, 2019

may it be because the F-Droid apk doesn't carry the ipfs binary with it?

@hazae41 hazae41 closed this as completed May 12, 2020
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

5 participants