#484 Files dir browsing [crash?]

Open
opened 1 day ago by mmarif · 0 comments
mmarif commented 1 day ago

GitNex : 2.5.1

It maybe a possible bug but depends on what circumstances to reproduce it. I tried a while ago and I was unable to reproduce.

User sent email detailing the cause:

I do not have an exact reproduction scenario, but I have been able to reproduce it a few times now.
It happens while (quickly) navigating the files of a repository (over HTTP), and when it happens it always happens when going up the directory tree using the breadcrumbs. I see a pop up (Toast?) stating “No files found”. If I then click on any of the breadcrumbs to navigate up the directory tree I get the crash.
Whilst trying to reproduce I also ran into another, possibly related issue that is 100% reproducable (on my device). When navigating down at least six directories and then (quickly) going up two directories the repository section is closed and I am back at the list with repositories. No errors and no notification for sending a report.

And the log:

STACK_TRACE=java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.String.substring(String.java:2064)
	at org.mian.gitnex.fragments.FilesFragment$1.onNavigateBack(FilesFragment.java:162)
	at org.mian.gitnex.fragments.FilesFragment$1.onNavigateBack(FilesFragment.java:150)
	at moe.feng.common.view.breadcrumbs.DefaultBreadcrumbsCallback.onItemClick(DefaultBreadcrumbsCallback.java:17)
	at moe.feng.common.view.breadcrumbs.BreadcrumbsAdapter$BreadcrumbItemHolder$1.onClick(BreadcrumbsAdapter.java:117)
	at android.view.View.performClick(View.java:7869)
	at android.widget.TextView.performClick(TextView.java:14958)
	at android.view.View.performClickInternal(View.java:7838)
	at android.view.View.access$3600(View.java:886)
	at android.view.View$PerformClick.run(View.java:29362)
	at android.os.Handler.handleCallback(Handler.java:883)
	at android.os.Handler.dispatchMessage(Handler.java:100)
	at android.os.Looper.loop(Looper.java:237)
	at android.app.ActivityThread.main(ActivityThread.java:8016)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1076)
GitNex : 2.5.1 It maybe a possible bug but depends on what circumstances to reproduce it. I tried a while ago and I was unable to reproduce. User sent email detailing the cause: > I do not have an exact reproduction scenario, but I have been able to reproduce it a few times now.<br> It happens while (quickly) navigating the files of a repository (over HTTP), and when it happens it always happens when going up the directory tree using the breadcrumbs. I see a pop up (Toast?) stating "No files found". If I then click on any of the breadcrumbs to navigate up the directory tree I get the crash.<br> Whilst trying to reproduce I also ran into another, possibly related issue that is 100% reproducable (on my device). When navigating down at least six directories and then (quickly) going up two directories the repository section is closed and I am back at the list with repositories. No errors and no notification for sending a report. And the log: ``` STACK_TRACE=java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:2064) at org.mian.gitnex.fragments.FilesFragment$1.onNavigateBack(FilesFragment.java:162) at org.mian.gitnex.fragments.FilesFragment$1.onNavigateBack(FilesFragment.java:150) at moe.feng.common.view.breadcrumbs.DefaultBreadcrumbsCallback.onItemClick(DefaultBreadcrumbsCallback.java:17) at moe.feng.common.view.breadcrumbs.BreadcrumbsAdapter$BreadcrumbItemHolder$1.onClick(BreadcrumbsAdapter.java:117) at android.view.View.performClick(View.java:7869) at android.widget.TextView.performClick(TextView.java:14958) at android.view.View.performClickInternal(View.java:7838) at android.view.View.access$3600(View.java:886) at android.view.View$PerformClick.run(View.java:29362) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:237) at android.app.ActivityThread.main(ActivityThread.java:8016) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1076) ```
mmarif added the
Investigate
label 1 day ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
Cancel
Save
There is no content yet.