Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

AndroidIDE Crash Report #1498

Closed
2 tasks done
Binodsahu123 opened this issue Nov 25, 2023 · 4 comments
Closed
2 tasks done

AndroidIDE Crash Report #1498

Binodsahu123 opened this issue Nov 25, 2023 · 4 comments
Labels
bug Something isn't working
Milestone

Comments

@Binodsahu123
Copy link

What happened?

AndroidIDE Crash Report
Version : v2.6.1-beta (261)
CI Build : true
Branch : main
Commit : 8ac221c
Variant : arm64-v8a (release)
SDK Version : 33
Supported ABIs : [arm64-v8a, armeabi-v7a, armeabi]
Manufacturer : OPPO
Device : CPH2373

Stacktrace:
java.lang.NullPointerException: null cannot be cast to non-null type com.itsaky.androidide.ui.CodeEditorView
at com.itsaky.androidide.activities.editor.EditorHandlerActivity.getEditorForFile(Unknown Source:28)
at com.itsaky.androidide.activities.editor.EditorHandlerActivity.getOpenedFiles(Unknown Source:29)
at com.itsaky.androidide.activities.editor.EditorHandlerActivity.saveOpenedFiles(Unknown Source:0)
at com.itsaky.androidide.activities.editor.EditorHandlerActivity.onPause(Unknown Source:11)
at android.app.Activity.performPause(Activity.java:8584)
at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1604)
at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5382)
Caused by: java.lang.RuntimeException: Unable to pause activity {com.itsaky.androidide/com.itsaky.androidide.activities.editor.EditorActivityKt}: java.lang.NullPointerException: null cannot be cast to non-null type com.itsaky.androidide.ui.CodeEditorView
at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5392)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:5343)
at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:5290)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:229)
at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ClientTransactionHandler.executeTransaction(ClientTransactionHandler.java:61)
at android.app.ActivityThread.handleRelaunchActivityLocally(ActivityThread.java:6063)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2472)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:240)
at android.os.Looper.loop(Looper.java:351)
at android.app.ActivityThread.main(ActivityThread.java:8377)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)

What's the expected behavior?

AndroidIDE Crash Report
Version : v2.6.1-beta (261)
CI Build : true
Branch : main
Commit : 8ac221c
Variant : arm64-v8a (release)
SDK Version : 33
Supported ABIs : [arm64-v8a, armeabi-v7a, armeabi]
Manufacturer : OPPO
Device : CPH2373

Stacktrace:
java.lang.NullPointerException: null cannot be cast to non-null type com.itsaky.androidide.ui.CodeEditorView
at com.itsaky.androidide.activities.editor.EditorHandlerActivity.getEditorForFile(Unknown Source:28)
at com.itsaky.androidide.activities.editor.EditorHandlerActivity.getOpenedFiles(Unknown Source:29)
at com.itsaky.androidide.activities.editor.EditorHandlerActivity.saveOpenedFiles(Unknown Source:0)
at com.itsaky.androidide.activities.editor.EditorHandlerActivity.onPause(Unknown Source:11)
at android.app.Activity.performPause(Activity.java:8584)
at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1604)
at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5382)
Caused by: java.lang.RuntimeException: Unable to pause activity {com.itsaky.androidide/com.itsaky.androidide.activities.editor.EditorActivityKt}: java.lang.NullPointerException: null cannot be cast to non-null type com.itsaky.androidide.ui.CodeEditorView
at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5392)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:5343)
at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:5290)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:229)
at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ClientTransactionHandler.executeTransaction(ClientTransactionHandler.java:61)
at android.app.ActivityThread.handleRelaunchActivityLocally(ActivityThread.java:6063)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2472)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:240)
at android.os.Looper.loop(Looper.java:351)
at android.app.ActivityThread.main(ActivityThread.java:8377)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)

What version of AndroidIDE you're using?

v2.6.0 (debug builds)

Relevant log output

AndroidIDE Crash Report
Version : v2.6.1-beta (261)
CI Build : true
Branch : main
Commit : 8ac221c83
Variant : arm64-v8a (release)
SDK Version : 33
Supported ABIs : [arm64-v8a, armeabi-v7a, armeabi]
Manufacturer : OPPO
Device : CPH2373

Stacktrace:
java.lang.NullPointerException: null cannot be cast to non-null type com.itsaky.androidide.ui.CodeEditorView
	at com.itsaky.androidide.activities.editor.EditorHandlerActivity.getEditorForFile(Unknown Source:28)
	at com.itsaky.androidide.activities.editor.EditorHandlerActivity.getOpenedFiles(Unknown Source:29)
	at com.itsaky.androidide.activities.editor.EditorHandlerActivity.saveOpenedFiles(Unknown Source:0)
	at com.itsaky.androidide.activities.editor.EditorHandlerActivity.onPause(Unknown Source:11)
	at android.app.Activity.performPause(Activity.java:8584)
	at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1604)
	at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5382)
 Caused by: java.lang.RuntimeException: Unable to pause activity {com.itsaky.androidide/com.itsaky.androidide.activities.editor.EditorActivityKt}: java.lang.NullPointerException: null cannot be cast to non-null type com.itsaky.androidide.ui.CodeEditorView
	at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5392)
	at android.app.ActivityThread.performPauseActivity(ActivityThread.java:5343)
	at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:5290)
	at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:229)
	at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
	at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
	at android.app.ClientTransactionHandler.executeTransaction(ClientTransactionHandler.java:61)
	at android.app.ActivityThread.handleRelaunchActivityLocally(ActivityThread.java:6063)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2472)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:240)
	at android.os.Looper.loop(Looper.java:351)
	at android.app.ActivityThread.main(ActivityThread.java:8377)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)

Duplicate issues

  • This issue has not been reported yet.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Binodsahu123 Binodsahu123 added the bug Something isn't working label Nov 25, 2023
@Rafael2616
Copy link
Contributor

Context:

VID-20231127-WA0000.mp4

@Binodsahu123

This comment was marked as off-topic.

@Rafael2616 Rafael2616 mentioned this issue Nov 28, 2023
2 tasks
@Rafael2616
Copy link
Contributor

AndroidIDE Crash Report
Version : v2.6.1-beta (261)
CI Build : true
Branch : main
Commit : 8ac221c
Variant : arm64-v8a (release)
SDK Version : 33
Supported ABIs : [arm64-v8a, armeabi-v7a, armeabi]
Manufacturer : OPPO
Device : CPH2373

Stacktrace:
java.lang.IllegalStateException: Fragment RunTasksDialogFragment{875975d} (49d4ed2f-4a67-4a8e-9126-05f4008d6bf9) not associated with a fragment manager.
at androidx.fragment.app.Fragment.getParentFragmentManager(Unknown Source:15)
at androidx.fragment.app.DialogFragment.dismissInternal(Unknown Source:89)
at com.google.android.material.bottomsheet.BottomSheetDialogFragment.dismiss(Unknown Source:20)
at com.itsaky.androidide.actions.build.RunTasksAction.execAction(Unknown Source:4)
at com.itsaky.androidide.actions.internal.DefaultActionsRegistry$executeAction$1.invokeSuspend(Unknown Source:80)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:8)
at kotlinx.coroutines.DispatchedTask.run(Unknown Source:109)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(Unknown Source:93)

This is not the same issue reported here, could you open a new issue for this?

@itsvks19
Copy link
Contributor

Test this build and let me know if it still crashes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants