Error when opening a URL at the first try #1199

Open
opened 2022-09-04 11:03:49 +00:00 by BluePixel4k · 11 comments

# Describe your matter briefly


If I haven't used the app for a while and open a link to it, then there is always an error message / you end up in the blank.
When I open the link again, it works.

If I stop the app manually, then I can sometimes provoke it.

What did you expect?


The app should open the link correctly every time.

Some additional details

  • The version of Gitea you are using: 1.17.0 -> Codeberg.org
  • The version of GitNex you are using: 4.4.0
  • Source of installation (Play Store, F-Droid, APK): F-Droid
  • Current android version and phone model/manufacturer: Android 13 GrapheneOS - Pixel 5
  • How you used to log in (via password or token): Token

We would appreciate some screenshots or stacktrace's, but this is also not required.

See attachment.



## # Describe your matter briefly <br> If I haven't used the app for a while and open a link to it, then there is always an error message / you end up in the blank. When I open the link again, it works. If I stop the app manually, then I can sometimes provoke it. <br> ##### What did you expect? --- <br>The app should open the link correctly every time. <br> ##### Some additional details --- * The version of **Gitea** you are using: *1.17.0 -> Codeberg.org* * The version of **GitNex** you are using: *4.4.0* * Source of installation (Play Store, F-Droid, APK): *F-Droid* * Current android version and phone model/manufacturer: *Android 13 GrapheneOS - Pixel 5* * How you used to log in (via password or token): *Token* <br> ##### We would appreciate some screenshots or stacktrace's, but this is also not required. --- <!-- Screenshots and stacktrace's can go here. --> See attachment. <br><br> - [x] I carefully read the [contribution guidelines](https://codeberg.org/gitnex/GitNex/wiki/Contributing). <br> <!-- Thank you for your time. -->
Contributor

Can reproduce it, but couldn't look into the logs or other reasons.

Can reproduce it, but couldn't look into the logs or other reasons.
qwerty287 added the
🐛 Bug
label 2022-09-04 11:50:12 +00:00
Author

Okay weird, but good to know that the problem is reproducible.

Okay weird, but good to know that the problem is reproducible.
Author

Is there any news about this bug?
It's really annoying to open links twice every time.
Thx for your work :)

Is there any news about this bug? It's really annoying to open links twice every time. Thx for your work :)
Owner

@BluePixel4k no news. Everyone is busy with different things in their life. But I would like to have a look at it if you can provide a codeberg link to test it out quickly.

@BluePixel4k no news. Everyone is busy with different things in their life. But I would like to have a look at it if you can provide a codeberg link to test it out quickly.
Author

@mmarif Understandable, its only a free time project for you :)

But what should I provide via a Codeberg link?
I'm not an android app developer so I can't provide a pull request with a bug fix.
But I can send you a adb logcat protocol, if it helps?

@mmarif Understandable, its only a free time project for you :) But what should I provide via a Codeberg link? I'm not an android app developer so I can't provide a pull request with a bug fix. But I can send you a adb logcat protocol, if it helps?
Owner

Any link (issue, commit, pr) which produces this issue. Like how you came across this issue? What were you checking/testing?

Any link (issue, commit, pr) which produces this issue. Like how you came across this issue? What were you checking/testing?
Author

You can use every link to an issue. For example to this issue: https://codeberg.org/gitnex/GitNex/issues/1199

  1. Copy this link to a file editor app to be able to open this link
  2. Force stop the app GitNex
  3. Press the link to open it with GitNex
  4. You get an empty screen and an error message

You can see this procedure in the attached video below the initial comment.


And here is an logcat output with adb logcat | grep org.mian.gitnex at this time, maybe it helps:

09-17 10:19:23.847  1814 21514 I ActivityTaskManager: START u0 {act=android.intent.action.VIEW dat=https://codeberg.org/... cmp=org.mian.gitnex/.activities.DeepLinksActivity (has extras)} from uid 10126
09-17 10:19:23.883  1814  2116 I ActivityManager: Start proc 5855:org.mian.gitnex/u0a290 for next-top-activity {org.mian.gitnex/org.mian.gitnex.activities.DeepLinksActivity}
09-17 10:19:23.887  5855  5855 W Zygote  : Can't access app profile directory: /data_mirror/cur_profiles/0/org.mian.gitnex
09-17 10:19:23.895  5855  5855 E org.mian.gitnex: Not starting debugger since process cannot load the jdwp agent.
09-17 10:19:23.961  5855  5855 W org.mian.gitnex: type=1400 audit(0.0:484734): avc: denied { read } for name="u:object_r:userdebug_or_eng_prop:s0" dev="tmpfs" ino=10641 scontext=u:r:untrusted_app:s0:c34,c257,c512,c768 tcontext=u:object_r:userdebug_or_eng_prop:s0 tclass=file permissive=0 app=org.mian.gitnex
09-17 10:19:23.964  5855  5855 W org.mian.gitnex: type=1400 audit(0.0:484735): avc: denied { read } for name="u:object_r:odsign_prop:s0" dev="tmpfs" ino=10574 scontext=u:r:untrusted_app:s0:c34,c257,c512,c768 tcontext=u:object_r:odsign_prop:s0 tclass=file permissive=0 app=org.mian.gitnex
09-17 10:19:23.964  5855  5855 W org.mian.gitnex: type=1400 audit(0.0:484736): avc: denied { read } for name="u:object_r:userdebug_or_eng_prop:s0" dev="tmpfs" ino=10641 scontext=u:r:untrusted_app:s0:c34,c257,c512,c768 tcontext=u:object_r:userdebug_or_eng_prop:s0 tclass=file permissive=0 app=org.mian.gitnex
09-17 10:19:23.971  5855  5855 W org.mian.gitnex: ART APEX data files are untrusted.
09-17 10:19:23.967  5855  5855 W org.mian.gitnex: type=1400 audit(0.0:484737): avc: denied { getattr } for path="/apex/apex-info-list.xml" dev="tmpfs" ino=16737 scontext=u:r:untrusted_app:s0:c34,c257,c512,c768 tcontext=u:object_r:apex_info_file:s0 tclass=file permissive=0 app=org.mian.gitnex
09-17 10:19:23.974  5855  5855 W org.mian.gitnex: type=1400 audit(0.0:484738): avc: denied { lock } for path="/system/framework/arm64/boot.art" dev="dm-16" ino=1326 scontext=u:r:untrusted_app:s0:c34,c257,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=org.mian.gitnex
09-17 10:19:24.071  5855  5855 D org.mian.gitnex: Time zone APEX ICU file found: /apex/com.android.tzdata/etc/icu/icu_tzdata.dat
09-17 10:19:24.071  5855  5855 D org.mian.gitnex: I18n APEX ICU file found: /apex/com.android.i18n/etc/icu/icudt70l.dat
09-17 10:19:24.131  5855  5855 E org.mian.gitnex: Unable to find pattern file or unable to map it for am
09-17 10:19:24.347  5855  5855 V GraphicsEnvironment: ANGLE Developer option for 'org.mian.gitnex' set to: 'default'
09-17 10:19:24.347  5855  5855 V GraphicsEnvironment: ANGLE GameManagerService for org.mian.gitnex: false
09-17 10:19:24.384  5855  5855 I ACRA    : ACRA is enabled for org.mian.gitnex, initializing...
09-17 10:19:24.548  5855  5855 E org.mian.gitnex: Invalid ID 0x00000000.
09-17 10:19:24.611  1814 21514 I ActivityTaskManager: START u0 {cmp=org.mian.gitnex/.activities.IssueDetailActivity (has extras)} from uid 10290
09-17 10:19:24.638  5855  5855 E org.mian.gitnex: Invalid ID 0x00000000.
09-17 10:19:24.933  1814  2545 D ConnectivityService: requestNetwork for uid/pid:10290/5855 activeRequest: null callbackRequest: 31832 [NetworkRequest [ REQUEST id=31832, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&NOT_VCN_MANAGED Uid: 10290 RequestorUid: 10290 RequestorPkg: org.mian.gitnex UnderlyingNetworks: Null] ]] callback flags: 0 order: 2147483647
09-17 10:19:24.941  1814  2877 D WifiNetworkFactory: got request NetworkRequest [ REQUEST id=31832, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&NOT_VCN_MANAGED Uid: 10290 RequestorUid: 10290 RequestorPkg: org.mian.gitnex UnderlyingNetworks: Null] ]
09-17 10:19:24.943  1814  2877 D UntrustedWifiNetworkFactory: got request NetworkRequest [ REQUEST id=31832, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&NOT_VCN_MANAGED Uid: 10290 RequestorUid: 10290 RequestorPkg: org.mian.gitnex UnderlyingNetworks: Null] ]
09-17 10:19:24.950  1814  2877 D OemPaidWifiNetworkFactory: got request NetworkRequest [ REQUEST id=31832, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&NOT_VCN_MANAGED Uid: 10290 RequestorUid: 10290 RequestorPkg: org.mian.gitnex UnderlyingNetworks: Null] ]
09-17 10:19:24.950  1814  2877 D MultiInternetWifiNetworkFactory: got request NetworkRequest [ REQUEST id=31832, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&NOT_VCN_MANAGED Uid: 10290 RequestorUid: 10290 RequestorPkg: org.mian.gitnex UnderlyingNetworks: Null] ]
09-17 10:19:24.964  1814  2545 D CoreBackPreview: Window{18863df u0 org.mian.gitnex/org.mian.gitnex.activities.IssueDetailActivity}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@1ff32f5, mPriority=0}
09-17 10:19:25.030  5855  5880 W org.mian.gitnex: Cleared Reference was only reachable from finalizer (only reported once)
09-17 10:19:25.216  1814  2090 I ActivityTaskManager: Displayed org.mian.gitnex/.activities.IssueDetailActivity: +1s356ms
09-17 10:19:28.731  1814  2407 W NotificationService: Toast already killed. pkg=org.mian.gitnex token=android.os.BinderProxy@df24b1f
09-17 10:19:30.041  5855  6048 D ProfileInstaller: Installing profile for org.mian.gitnex
09-17 10:19:32.253  1814 17884 W NotificationService: Toast already killed. pkg=org.mian.gitnex token=android.os.BinderProxy@e657a9c
09-17 10:19:35.762  1814  2407 W NotificationService: Toast already killed. pkg=org.mian.gitnex token=android.os.BinderProxy@c4cb42a
You can use every link to an issue. For example to this issue: [https://codeberg.org/gitnex/GitNex/issues/1199](https://codeberg.org/gitnex/GitNex/issues/1199) 1. Copy this link to a file editor app to be able to open this link 2. Force stop the app GitNex 3. Press the link to open it with GitNex 4. You get an empty screen and an error message You can see this procedure in the attached video below the initial comment. --- And here is an logcat output with `adb logcat | grep org.mian.gitnex` at this time, maybe it helps: ``` 09-17 10:19:23.847 1814 21514 I ActivityTaskManager: START u0 {act=android.intent.action.VIEW dat=https://codeberg.org/... cmp=org.mian.gitnex/.activities.DeepLinksActivity (has extras)} from uid 10126 09-17 10:19:23.883 1814 2116 I ActivityManager: Start proc 5855:org.mian.gitnex/u0a290 for next-top-activity {org.mian.gitnex/org.mian.gitnex.activities.DeepLinksActivity} 09-17 10:19:23.887 5855 5855 W Zygote : Can't access app profile directory: /data_mirror/cur_profiles/0/org.mian.gitnex 09-17 10:19:23.895 5855 5855 E org.mian.gitnex: Not starting debugger since process cannot load the jdwp agent. 09-17 10:19:23.961 5855 5855 W org.mian.gitnex: type=1400 audit(0.0:484734): avc: denied { read } for name="u:object_r:userdebug_or_eng_prop:s0" dev="tmpfs" ino=10641 scontext=u:r:untrusted_app:s0:c34,c257,c512,c768 tcontext=u:object_r:userdebug_or_eng_prop:s0 tclass=file permissive=0 app=org.mian.gitnex 09-17 10:19:23.964 5855 5855 W org.mian.gitnex: type=1400 audit(0.0:484735): avc: denied { read } for name="u:object_r:odsign_prop:s0" dev="tmpfs" ino=10574 scontext=u:r:untrusted_app:s0:c34,c257,c512,c768 tcontext=u:object_r:odsign_prop:s0 tclass=file permissive=0 app=org.mian.gitnex 09-17 10:19:23.964 5855 5855 W org.mian.gitnex: type=1400 audit(0.0:484736): avc: denied { read } for name="u:object_r:userdebug_or_eng_prop:s0" dev="tmpfs" ino=10641 scontext=u:r:untrusted_app:s0:c34,c257,c512,c768 tcontext=u:object_r:userdebug_or_eng_prop:s0 tclass=file permissive=0 app=org.mian.gitnex 09-17 10:19:23.971 5855 5855 W org.mian.gitnex: ART APEX data files are untrusted. 09-17 10:19:23.967 5855 5855 W org.mian.gitnex: type=1400 audit(0.0:484737): avc: denied { getattr } for path="/apex/apex-info-list.xml" dev="tmpfs" ino=16737 scontext=u:r:untrusted_app:s0:c34,c257,c512,c768 tcontext=u:object_r:apex_info_file:s0 tclass=file permissive=0 app=org.mian.gitnex 09-17 10:19:23.974 5855 5855 W org.mian.gitnex: type=1400 audit(0.0:484738): avc: denied { lock } for path="/system/framework/arm64/boot.art" dev="dm-16" ino=1326 scontext=u:r:untrusted_app:s0:c34,c257,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=org.mian.gitnex 09-17 10:19:24.071 5855 5855 D org.mian.gitnex: Time zone APEX ICU file found: /apex/com.android.tzdata/etc/icu/icu_tzdata.dat 09-17 10:19:24.071 5855 5855 D org.mian.gitnex: I18n APEX ICU file found: /apex/com.android.i18n/etc/icu/icudt70l.dat 09-17 10:19:24.131 5855 5855 E org.mian.gitnex: Unable to find pattern file or unable to map it for am 09-17 10:19:24.347 5855 5855 V GraphicsEnvironment: ANGLE Developer option for 'org.mian.gitnex' set to: 'default' 09-17 10:19:24.347 5855 5855 V GraphicsEnvironment: ANGLE GameManagerService for org.mian.gitnex: false 09-17 10:19:24.384 5855 5855 I ACRA : ACRA is enabled for org.mian.gitnex, initializing... 09-17 10:19:24.548 5855 5855 E org.mian.gitnex: Invalid ID 0x00000000. 09-17 10:19:24.611 1814 21514 I ActivityTaskManager: START u0 {cmp=org.mian.gitnex/.activities.IssueDetailActivity (has extras)} from uid 10290 09-17 10:19:24.638 5855 5855 E org.mian.gitnex: Invalid ID 0x00000000. 09-17 10:19:24.933 1814 2545 D ConnectivityService: requestNetwork for uid/pid:10290/5855 activeRequest: null callbackRequest: 31832 [NetworkRequest [ REQUEST id=31832, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&NOT_VCN_MANAGED Uid: 10290 RequestorUid: 10290 RequestorPkg: org.mian.gitnex UnderlyingNetworks: Null] ]] callback flags: 0 order: 2147483647 09-17 10:19:24.941 1814 2877 D WifiNetworkFactory: got request NetworkRequest [ REQUEST id=31832, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&NOT_VCN_MANAGED Uid: 10290 RequestorUid: 10290 RequestorPkg: org.mian.gitnex UnderlyingNetworks: Null] ] 09-17 10:19:24.943 1814 2877 D UntrustedWifiNetworkFactory: got request NetworkRequest [ REQUEST id=31832, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&NOT_VCN_MANAGED Uid: 10290 RequestorUid: 10290 RequestorPkg: org.mian.gitnex UnderlyingNetworks: Null] ] 09-17 10:19:24.950 1814 2877 D OemPaidWifiNetworkFactory: got request NetworkRequest [ REQUEST id=31832, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&NOT_VCN_MANAGED Uid: 10290 RequestorUid: 10290 RequestorPkg: org.mian.gitnex UnderlyingNetworks: Null] ] 09-17 10:19:24.950 1814 2877 D MultiInternetWifiNetworkFactory: got request NetworkRequest [ REQUEST id=31832, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&NOT_VCN_MANAGED Uid: 10290 RequestorUid: 10290 RequestorPkg: org.mian.gitnex UnderlyingNetworks: Null] ] 09-17 10:19:24.964 1814 2545 D CoreBackPreview: Window{18863df u0 org.mian.gitnex/org.mian.gitnex.activities.IssueDetailActivity}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@1ff32f5, mPriority=0} 09-17 10:19:25.030 5855 5880 W org.mian.gitnex: Cleared Reference was only reachable from finalizer (only reported once) 09-17 10:19:25.216 1814 2090 I ActivityTaskManager: Displayed org.mian.gitnex/.activities.IssueDetailActivity: +1s356ms 09-17 10:19:28.731 1814 2407 W NotificationService: Toast already killed. pkg=org.mian.gitnex token=android.os.BinderProxy@df24b1f 09-17 10:19:30.041 5855 6048 D ProfileInstaller: Installing profile for org.mian.gitnex 09-17 10:19:32.253 1814 17884 W NotificationService: Toast already killed. pkg=org.mian.gitnex token=android.os.BinderProxy@e657a9c 09-17 10:19:35.762 1814 2407 W NotificationService: Toast already killed. pkg=org.mian.gitnex token=android.os.BinderProxy@c4cb42a ```
Owner

Thanks for the details. I am going to look into it soon.

Thanks for the details. I am going to look into it soon.
Owner

Can you test the attached APK?

Also, are you using more than one account?

Can you test the attached APK? Also, are you using more than one account?
Author

Thank you! But sadly the bug is still there. 😕

I'm using the app with only one account (Codeberg) via a token for the access.

Thank you! But sadly the bug is still there. 😕 I'm using the app with only one account (Codeberg) via a token for the access.
Owner

Thanks for getting back on this. There was a bug in multiple accounts while opening links, I thought it could be this one. Was having the same issue like yours before, but after the fix the issue went away.

I will look into it a bit deeper, the only thing is the logs are not helpful enough pointing to the exact issue in this case.

Thanks for getting back on this. There was a bug in multiple accounts while opening links, I thought it could be this one. Was having the same issue like yours before, but after the fix the issue went away. I will look into it a bit deeper, the only thing is the logs are not helpful enough pointing to the exact issue in this case.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitnex/GitNex#1199
No description provided.