When starting the runJVM for the particles example, the demo runs and shows the desired particle effect. But in the console it prints the error that the texture.png is missing.
Search path: \resources\texture.png
Actual path: \resources\particle\texture.png
⚡ StackTrace
Couldn't read native image: java.io.FileNotFoundException: C:\Users\tobse\IdeaProjects\samples\korge-samples\samples\particles\src\commonMain\resources\texture.png (The system cannot find the specified file)
#24: glGetError after glGenVertexArrays
java.io.FileNotFoundException: C:\Users\tobse\IdeaProjects\samples\korge-samples\samples\particles\src\commonMain\resources\texture.png (The system cannot find the specified file)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at com.soywiz.korim.awt.AwtExtKt$awtReadImageInWorker$4.invokeSuspend(AwtExt.kt:155)
at com.soywiz.korim.awt.AwtExtKt$awtReadImageInWorker$4.invoke(AwtExt.kt)
at com.soywiz.korim.awt.AwtExtKt$awtReadImageInWorker$4.invoke(AwtExt.kt)
at com.soywiz.korio.async.AsyncExtJvmKt$executeInWorkerJVM$2.invokeSuspend(AsyncExtJvm.kt:20)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
java.io.FileNotFoundException: C:\Users\tobse\IdeaProjects\samples\korge-samples\samples\particles\src\commonMain\resources\texture.png (The system cannot find the specified file)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at com.soywiz.korim.awt.AwtExtKt$awtReadImageInWorker$4.invokeSuspend(AwtExt.kt:155)
at com.soywiz.korim.awt.AwtExtKt$awtReadImageInWorker$4.invoke(AwtExt.kt)
at com.soywiz.korim.awt.AwtExtKt$awtReadImageInWorker$4.invoke(AwtExt.kt)
at com.soywiz.korio.async.AsyncExtJvmKt$executeInWorkerJVM$2.invokeSuspend(AsyncExtJvm.kt:20)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
java.io.FileNotFoundException: C:\Users\tobse\IdeaProjects\samples\korge-samples\samples\particles\src\commonMain\resources\texture.png (The system cannot find the specified file)
at java.io.RandomAccessFile.open0(Native Method)
at java.io.RandomAccessFile.open(RandomAccessFile.java:316)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)
at com.soywiz.korio.file.std.LocalVfsJvm$readRange$$inlined$executeIo$1.invokeSuspend(LocalVfsJvm.kt:476)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.internal.DispatchedContinuationKt.resumeCancellableWith(DispatchedContinuation.kt:377)
at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable(Cancellable.kt:30)
at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable$default(Cancellable.kt:25)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:170)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at com.soywiz.korio.file.std.LocalVfsJvm.readRange(LocalVfsJvm.kt:477)
at com.soywiz.korio.file.VfsFile.readRangeBytes(VfsFile.kt:75)
at com.soywiz.korio.file.Vfs$Proxy.readRange$suspendImpl(Vfs.kt:161)
at com.soywiz.korio.file.Vfs$Proxy.readRange(Vfs.kt)
at com.soywiz.korio.file.VfsFile.readRangeBytes(VfsFile.kt:75)
at com.soywiz.korio.file.Vfs$Proxy.readRange$suspendImpl(Vfs.kt:161)
at com.soywiz.korio.file.Vfs$Proxy.readRange(Vfs.kt)
at com.soywiz.korio.file.VfsFile.readRangeBytes(VfsFile.kt:75)
at com.soywiz.korio.file.Vfs$Proxy.readRange$suspendImpl(Vfs.kt:161)
at com.soywiz.korio.file.Vfs$Proxy.readRange(Vfs.kt)
at com.soywiz.korio.file.VfsFile.readRangeBytes(VfsFile.kt:75)
at com.soywiz.korio.file.Vfs$Proxy.readRange$suspendImpl(Vfs.kt:161)
at com.soywiz.korio.file.Vfs$Proxy.readRange(Vfs.kt)
at com.soywiz.korio.file.VfsFile.readAll(VfsFile.kt:79)
at com.soywiz.korio.file.VfsFile.read(VfsFile.kt:81)
at com.soywiz.korim.format.KorioExtKt.readBitmap(KorioExt.kt:120)
at com.soywiz.korim.format.KorioExtKt$readBitmap$3.invokeSuspend(KorioExt.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at com.soywiz.korgw.GameWindowCoroutineDispatcher.executePending-_rozLdE(GameWindow.kt:128)
at com.soywiz.korgw.GameWindow.frameUpdate-_rozLdE(GameWindow.kt:441)
at com.soywiz.korgw.GameWindow.frame-eeKXlv4(GameWindow.kt:372)
at com.soywiz.korgw.GameWindow.frame-eeKXlv4$default(GameWindow.kt:365)
at com.soywiz.korgw.GameWindow.frame(GameWindow.kt:359)
at com.soywiz.korgw.awt.BaseAwtGameWindow.paintInContext(BaseAwtGameWindow.kt:201)
at com.soywiz.korgw.awt.BaseAwtGameWindow$paintInContextDelegate$1.invoke(BaseAwtGameWindow.kt:113)
at com.soywiz.korgw.awt.BaseAwtGameWindow$paintInContextDelegate$1.invoke(BaseAwtGameWindow.kt:112)
at com.soywiz.korgw.platform.BaseOpenglContext$DefaultImpls.useContext(BaseOpenglContext.kt:36)
at com.soywiz.korgw.win32.Win32OpenglContext.useContext(Win32Tools.kt:202)
at com.soywiz.korgw.awt.BaseAwtGameWindow.framePaint(BaseAwtGameWindow.kt:108)
at com.soywiz.korgw.awt.AwtGameWindow$frame$1.paint(AwtGameWindow.kt:132)
at javax.swing.RepaintManager$4.run(RepaintManager.java:842)
at javax.swing.RepaintManager$4.run(RepaintManager.java:814)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
at javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
RESTART
completed.running=false
GameWindow.close
GameWindowCoroutineDispatcher.close
When starting the
runJVM
for theparticles
example, the demo runs and shows the desired particle effect. But in the console it prints the error that thetexture.png
is missing.Search path:
\resources\texture.png
Actual path:
\resources\particle\texture.png
⚡ StackTrace