Cosmic-Ide / rewrite

WIP Cosmic IDE rewrite
33 stars 6 forks source link

Crash #96

Open scto opened 1 year ago

scto commented 1 year ago

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 commented 1 year ago

Something is wrong with the storage permissions

aikrq commented 1 year ago

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

scto commented 1 year ago

Thank you too. take your time no need to hirry

PranavPurwar commented 1 year ago

try now

scto commented 1 year ago

seems to work. thsnks Pranav

ThatMG393 commented 1 year ago

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

aikrq commented 1 year ago

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

It's not related to this issue.

ThatMG393 commented 1 year ago

@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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

PranavPurwar commented 1 year ago

Did it work?

scto commented 1 year ago

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

PranavPurwar commented 1 year ago

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