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 when tapping new file FAB #2360

Closed
4 tasks done
min7-i opened this issue Jul 21, 2024 · 1 comment
Closed
4 tasks done

Crash when tapping new file FAB #2360

min7-i opened this issue Jul 21, 2024 · 1 comment
Assignees
Labels
Milestone

Comments

@min7-i
Copy link

min7-i commented Jul 21, 2024

⚠️ This issue respects the following points: ⚠️

  • This is a bug. Not a question or feature request.
  • The topic is not already reported at Issues. (I've searched it).
  • Markor is up to date. See Releases for the latest version. Updates are available from F-Droid and GitHub.
  • The bug is still present in the latest development version (git master). (Please download and try the test version of Markor, named Marder. Don't worry; Markor and Marder appear as completely separate applications. You can install both side-by-side, and Markor settings are not touched. In case the issue is resolved there, you don't need to create a bug report. The change will be part of the next Markor update.)

Description

When tapping the new file/folder FAB, Markor crashes instead of showing the new file/folder dialog.

Steps to reproduce

  1. Go to the "Files" tab.
  2. Tap the new file (+) button.
  3. Markor crashes.

Information

Android version: 14
Device: Google Pixel 6a
App Version: 2.12.3

Source

GitHub Releases

Format / File type

Not specific

Additional info / Log

java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
	at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
	at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
	at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
	at java.util.Objects.checkIndex(Objects.java:359)
	at java.util.ArrayList.get(ArrayList.java:434)
	at net.gsantner.markor.frontend.NewFileDialog.makeDialog(NewFileDialog.java:345)
	at net.gsantner.markor.frontend.NewFileDialog.onCreateDialog(NewFileDialog.java:100)
	at androidx.fragment.app.DialogFragment.prepareDialog(DialogFragment.java:644)
	at androidx.fragment.app.DialogFragment.onGetLayoutInflater(DialogFragment.java:558)
	at androidx.fragment.app.Fragment.performGetLayoutInflater(Fragment.java:1654)
	at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:493)
	at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:282)
	at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2189)
	at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2100)
	at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:2002)
	at androidx.fragment.app.FragmentManager$5.run(FragmentManager.java:524)
	at android.os.Handler.handleCallback(Handler.java:959)
	at android.os.Handler.dispatchMessage(Handler.java:100)
	at android.os.Looper.loopOnce(Looper.java:232)
	at android.os.Looper.loop(Looper.java:317)
	at android.app.ActivityThread.main(ActivityThread.java:8623)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:894)
@gsantner
Copy link
Owner

image

@gsantner gsantner self-assigned this Jul 22, 2024
@gsantner gsantner added the bug label Jul 22, 2024
@gsantner gsantner added this to the Markor v2.13 milestone Jul 22, 2024
gsantner added a commit that referenced this issue Jul 27, 2024
FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':app:mapFlavorAtestDebugSourceSetPaths' (type 'MapSourceSetPathsTask').
  - Gradle detected a problem with the following location: '/mnt/store/Dokumente/aaDev/markor/app/src/main/res'.

    Reason: Task ':app:mapFlavorAtestDebugSourceSetPaths' uses this output of task ':copyRepoFiles' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
elyahw pushed a commit to writing-tools/marelias-notepad that referenced this issue Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants