Cosmic-Ide / Cosmic-IDE

A next-gen Ide for JVM development on Android
GNU General Public License v3.0
502 stars 59 forks source link

After Write Simple Java Code That Code Crash #511

Open rajendrarox opened 8 months ago

rajendrarox commented 8 months ago

java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at org.cosmicide.rewrite.util.MultipleDexClassLoader.loadDex(MultipleDexClassLoader.kt:45) at org.cosmicide.rewrite.util.MultipleDexClassLoader.loadDex(MultipleDexClassLoader.kt:51) at org.cosmicide.fragment.ProjectOutputFragment$runClass$1.invokeSuspend(ProjectOutputFragment.kt:125) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108) at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684) Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@243234d, Dispatchers.IO] Caused by: java.lang.SecurityException: Writable dex file '/storage/emulated/0/Android/data/org.cosmicide/files/projects/Javalearning/build/bin/classes.dex' is not allowed. at dalvik.system.DexFile.openDexFileNative(Native Method) at dalvik.system.DexFile.openDexFile(DexFile.java:406) at dalvik.system.DexFile.(DexFile.java:128) at dalvik.system.DexFile.(DexFile.java:101) at dalvik.system.DexPathList.loadDexFile(DexPathList.java:438) at dalvik.system.DexPathList.makeDexElements(DexPathList.java:387) at dalvik.system.DexPathList.addDexPath(DexPathList.java:220) at dalvik.system.BaseDexClassLoader.addDexPath(BaseDexClassLoader.java:287) at dalvik.system.BaseDexClassLoader.addDexPath(BaseDexClassLoader.java:279) ... 12 more kotlinx.coroutines.CoroutinesInternalError: Fatal exception in coroutines machinery for DispatchedContinuation[Dispatchers.IO, Continuation at org.cosmicide.fragment.ProjectOutputFragment$runClass$1.invokeSuspend(ProjectOutputFragment.kt)@55be313]. Please read KDoc to 'handleFatalException' method and report this incident to maintainers at kotlinx.coroutines.DispatchedTask.handleFatalException$kotlinx_coroutines_core(DispatchedTask.kt:146) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:117) at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684) Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@243234d, Dispatchers.IO] Caused by: android.os.DeadObjectException at android.os.BinderProxy.transactNative(Native Method) at android.os.BinderProxy.transact(BinderProxy.java:639) at android.os.IMessenger$Stub$Proxy.send(IMessenger.java:118) at android.os.Messenger.send(Messenger.java:59) at com.haroldadmin.whatthestack.WhatTheStackExceptionHandler.uncaughtException(WhatTheStackExceptionHandler.kt:24) at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1071) at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1066) at kotlinx.coroutines.internal.CoroutineExceptionHandlerImplKt.propagateExceptionFinalResort(CoroutineExceptionHandlerImpl.kt:35) at kotlinx.coroutines.internal.CoroutineExceptionHandlerImpl_commonKt.handleUncaughtCoroutineException(CoroutineExceptionHandlerImpl.common.kt:52) at kotlinx.coroutines.CoroutineExceptionHandlerKt.handleCoroutineException(CoroutineExceptionHandler.kt:32) at kotlinx.coroutines.StandaloneCoroutine.handleJobException(Builders.common.kt:194) at kotlinx.coroutines.JobSupport.finalizeFinishingState(JobSupport.kt:231) at kotlinx.coroutines.JobSupport.tryMakeCompletingSlowPath(JobSupport.kt:910) at kotlinx.coroutines.JobSupport.tryMakeCompleting(JobSupport.kt:867) at kotlinx.coroutines.JobSupport.makeCompletingOnce$kotlinx_coroutines_core(JobSupport.kt:832) at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:100) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108) ... 6 more android.os.DeadObjectException at android.os.BinderProxy.transactNative(Native Method) at android.os.BinderProxy.transact(BinderProxy.java:639) at android.os.IMessenger$Stub$Proxy.send(IMessenger.java:118) at android.os.Messenger.send(Messenger.java:59) at com.haroldadmin.whatthestack.WhatTheStackExceptionHandler.uncaughtException(WhatTheStackExceptionHandler.kt:24) at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1071) at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1066) at kotlinx.coroutines.internal.CoroutineExceptionHandlerImplKt.propagateExceptionFinalResort(CoroutineExceptionHandlerImpl.kt:35) at kotlinx.coroutines.internal.CoroutineExceptionHandlerImpl_commonKt.handleUncaughtCoroutineException(CoroutineExceptionHandlerImpl.common.kt:52) at kotlinx.coroutines.CoroutineExceptionHandlerKt.handleCoroutineException(CoroutineExceptionHandler.kt:32) at kotlinx.coroutines.DispatchedTask.handleFatalException$kotlinx_coroutines_core(DispatchedTask.kt:148) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:117) at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684) Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: EmptyCoroutineContext io.appwrite.exceptions.AppwriteException: Document with the requested ID already exists. Try again with a different ID or use ID.unique() to generate a unique ID. at io.appwrite.Client$awaitResponse$2$1.onResponse(Client.kt:490) at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644) at java.lang.Thread.run(Thread.java:1012) android.os.DeadObjectException at android.os.BinderProxy.transactNative(Native Method) at android.os.BinderProxy.transact(BinderProxy.java:639) at android.os.IMessenger$Stub$Proxy.send(IMessenger.java:118) at android.os.Messenger.send(Messenger.java:59) at com.haroldadmin.whatthestack.WhatTheStackExceptionHandler.uncaughtException(WhatTheStackExceptionHandler.kt:24) at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1071) at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1066) at kotlinx.coroutines.internal.CoroutineExceptionHandlerImplKt.propagateExceptionFinalResort(CoroutineExceptionHandlerImpl.kt:35) at kotlinx.coroutines.internal.CoroutineExceptionHandlerImpl_commonKt.handleUncaughtCoroutineException(CoroutineExceptionHandlerImpl.common.kt:52) at kotlinx.coroutines.CoroutineExceptionHandlerKt.handleCoroutineException(CoroutineExceptionHandler.kt:32) at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:117) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684) android.os.DeadObjectException at android.os.BinderProxy.transactNative(Native Method) at android.os.BinderProxy.transact(BinderProxy.java:639) at android.os.IMessenger$Stub$Proxy.send(IMessenger.java:118) at android.os.Messenger.send(Messenger.java:59) at com.haroldadmin.whatthestack.WhatTheStackExceptionHandler.uncaughtException(WhatTheStackExceptionHandler.kt:24) at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1071) at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1066) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:587) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)

PranavPurwar commented 8 months ago

@androidbulb This error has already been fixed in the debug CI builds