Skip to content
This repository has been archived by the owner on Sep 17, 2023. It is now read-only.

Crash #96

Open
scto opened this issue Aug 19, 2023 · 14 comments
Open

Crash #96

scto opened this issue Aug 19, 2023 · 14 comments

Comments

@scto
Copy link

scto commented Aug 19, 2023

Build version: 1.0-ecb0f1f
Build date: 1981-01-01 01:01:02
Current date: 2023-08-19 05:16:40
Device: Google Pixel 6 Pro

Stack trace:
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:558)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
... 1 more
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at org.cosmicide.rewrite.plugin.api.PluginLoader$loadPlugin$1$2.invoke(PluginLoader.kt:66)
at org.cosmicide.rewrite.plugin.api.PluginLoader$loadPlugin$1$2.invoke(PluginLoader.kt:65)
at org.cosmicide.rewrite.fragment.settings.PluginSettingsProvider.provideSettings(PluginSettingsProvider.kt:71)
at org.cosmicide.rewrite.fragment.SettingsFragment.onViewCreated(SettingsFragment.kt:82)
at androidx.fragment.app.Fragment.performViewCreated(Fragment.java:3147)
at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:588)
at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:272)
at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:1943)
at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1839)
at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1782)
at androidx.fragment.app.FragmentManager$5.run(FragmentManager.java:565)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7918)
... 3 more
Caused by: java.lang.UnsupportedOperationException: A preference with this key is already in the screen!
at de.Maxr1998.modernpreferences.PreferenceScreen$Builder.addPreferenceItem(Preferences.kt:515)
at changedatadirectory.Main.registerPreferences(Unknown Source:91)
... 20 more

User actions:
2023-08-19 05:14:59: MainActivity created
2023-08-19 05:14:59: MainActivity resumed
2023-08-19 05:15:39: MainActivity paused
2023-08-19 05:15:47: MainActivity resumed

@scto
Copy link
Author

scto commented Aug 19, 2023

Something is wrong with the storage permissions

@aikrq
Copy link
Collaborator

aikrq commented Aug 19, 2023

Hello! Thanks for the error information.
I will try to fix this bug today.

@scto
Copy link
Author

scto commented Aug 19, 2023

Thank you too. take your time no need to hirry

PranavPurwar added a commit that referenced this issue Aug 19, 2023
@PranavPurwar
Copy link
Member

try now

@scto
Copy link
Author

scto commented Aug 19, 2023

seems to work.
thsnks Pranav

@ThatMG393
Copy link

ThatMG393 commented Aug 20, 2023

@PranavPurwar seems like its not fixed yet, still crashes on mine. using latesst action build btw

@aikrq
Copy link
Collaborator

aikrq commented Aug 20, 2023

@PranavPurwar seems like its not fixed yet, still crashes on mine. using latesst action build btw

It's not related to this issue.

@ThatMG393
Copy link

@PranavPurwar seems like its not fixed yet, still crashes on mine. using latesst action build btw

It's not related to this issue.

sorry

@scto
Copy link
Author

scto commented Aug 20, 2023

question, is the datadir in rewritr the same like DataDirChance in its own repo the same because i see diffences in Code and with DataDirChange Plugin the permissions problem still exists

@PranavPurwar
Copy link
Member

question, is the datadir in rewritr the same like DataDirChance in its own repo the same because i see diffences in Code and with DataDirChange Plugin the permissions problem still exists

You probably just need to delete and reinstall the plugin. The plugin source is at https://github.com/Cosmic-IDE/ChangeDataDir but I have to manually build and upload updates there

@scto
Copy link
Author

scto commented Aug 21, 2023

thsnks Ill try it.
isnt it posible to Build the Plugin with ci action?

@PranavPurwar
Copy link
Member

Did it work?

@scto
Copy link
Author

scto commented Aug 24, 2023

no not realy, reinstalled, delete cache, tried everything. maybee im to dumb 😎

@PranavPurwar
Copy link
Member

Hmm, could you retry that? This time delete the plugin, restart the app and then reinstall it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants