Deenu488 / CodeAssist-Unofficial

GNU General Public License v3.0
142 stars 35 forks source link

Can't create new project #26

Open Rem01Gaming opened 4 months ago

Rem01Gaming commented 4 months ago

Describe the bug 'Create new project' shows empty templates and show error

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Create new project'
  2. See empty templates
  3. Error will appear

Expected behavior User should see templates for new project as well create a new project.

Screenshots Screenshot_20240601-182328_CodeAssist Screenshot_20240601-181516_CodeAssist

Smartphone (please complete the following information):

Additional context Error log:

Build date: 1981-01-01 01:01:02 
Current date: 2024-06-01 18:23:21 
Device: Realme C25 Series 

Stack trace:  
java.lang.IllegalStateException: Fragment WizardFragment{7b199de} (b20d129d-c44d-49b0-b517-f07268f520b8) not attached to a context.
    at androidx.fragment.app.Fragment.requireContext(Fragment.java:969)
    at com.tyron.code.ui.wizard.WizardFragment.extractTemplates(WizardFragment.java:773)
    at com.tyron.code.ui.wizard.WizardFragment.extractTemplatesMaybe(WizardFragment.java:746)
    at com.tyron.code.ui.wizard.WizardFragment.getTemplates(WizardFragment.java:716)
    at com.tyron.code.ui.wizard.WizardFragment.lambda$loadTemplates$11$com-tyron-code-ui-wizard-WizardFragment(WizardFragment.java:690)
    at com.tyron.code.ui.wizard.WizardFragment$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    at java.lang.Thread.run(Thread.java:920)

User actions: 
2024-06-01 18:22:43: MainActivity created
2024-06-01 18:22:43: MainActivity resumed
2024-06-01 18:23:02: MainActivity paused
2024-06-01 18:23:02: SettingsActivity created
2024-06-01 18:23:02: SettingsActivity resumed
2024-06-01 18:23:03: SettingsActivity paused
2024-06-01 18:23:03: MainActivity resumed
2024-06-01 18:23:04: SettingsActivity destroyed
Deenu488 commented 4 months ago

@Rem01Gaming Clear app data and try again

Rem01Gaming commented 4 months ago

@Deenu488 Issue still exists after clearing app data.

Is this issue storage related? I'm using Adoptable storage (Format sdcard as internal) feature here, sometimes it also causes issues on other apps. Screenshot_20240601-201637_Settings.png