You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I developed a program based on FXGL 21.1 and customized the IntroScene. When the program started and the IntroScene was displayed, I clicked the Exit button in the upper right corner of the window, and the following exception occurred:
11:12:49.703 [JavaFX Application Thread] FATAL FXGLApplication - Uncaught Exception:
kotlin.UninitializedPropertyAccessException: lateinit property bundle has not been initialized
at [email protected]/com.almasb.fxgl.app.services.SystemBundleService.getBundle$fxgl(SystemBundleService.kt:27)
at [email protected]/com.almasb.fxgl.app.services.SystemBundleService.saveSystemData(SystemBundleService.kt:66)
at [email protected]/com.almasb.fxgl.app.services.SystemBundleService.onExit(SystemBundleService.kt:49)
at [email protected]/com.almasb.fxgl.app.Engine.stopLoopAndExitServices(Engine.kt:166)
at [email protected]/com.almasb.fxgl.app.FXGLApplication.exitFXGL(FXGLApplication.kt:299)
at [email protected]/com.almasb.fxgl.dsl.FXGL$Companion$controller$1.exit(FXGL.kt:148)
at [email protected]/com.almasb.fxgl.app.FXGLApplication$GameApplicationService$onInit$2.invoke(FXGLApplication.kt:425)
at [email protected]/com.almasb.fxgl.app.FXGLApplication$GameApplicationService$onInit$2.invoke(FXGLApplication.kt:419)
at [email protected]/com.almasb.fxgl.app.PrimaryStageWindow.initStage$lambda$2$lambda$0(MainWindow.kt:398)
at [email protected]/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
at [email protected]/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:232)
at [email protected]/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:189)
at [email protected]/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
at [email protected]/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
at [email protected]/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at [email protected]/com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
at [email protected]/com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
at [email protected]/javafx.event.Event.fireEvent(Event.java:198)
at [email protected]/com.sun.javafx.stage.WindowPeerListener.closing(WindowPeerListener.java:100)
at [email protected]/com.sun.javafx.tk.quantum.GlassWindowEventHandler.run(GlassWindowEventHandler.java:147)
at [email protected]/com.sun.javafx.tk.quantum.GlassWindowEventHandler.run(GlassWindowEventHandler.java:40)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at [email protected]/com.sun.javafx.tk.quantum.GlassWindowEventHandler.lambda$handleWindowEvent$4(GlassWindowEventHandler.java:178)
at [email protected]/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:424)
at [email protected]/com.sun.javafx.tk.quantum.GlassWindowEventHandler.handleWindowEvent(GlassWindowEventHandler.java:176)
at [email protected]/com.sun.glass.ui.Window.handleWindowEvent(Window.java:1259)
at [email protected]/com.sun.glass.ui.Window.notifyClose(Window.java:1164)
at [email protected]/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at [email protected]/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:185)
at java.base/java.lang.Thread.run(Thread.java:1575)
The text was updated successfully, but these errors were encountered:
I developed a program based on FXGL 21.1 and customized the IntroScene. When the program started and the IntroScene was displayed, I clicked the Exit button in the upper right corner of the window, and the following exception occurred:
11:12:49.703 [JavaFX Application Thread] FATAL FXGLApplication - Uncaught Exception:
kotlin.UninitializedPropertyAccessException: lateinit property bundle has not been initialized
at [email protected]/com.almasb.fxgl.app.services.SystemBundleService.getBundle$fxgl(SystemBundleService.kt:27)
at [email protected]/com.almasb.fxgl.app.services.SystemBundleService.saveSystemData(SystemBundleService.kt:66)
at [email protected]/com.almasb.fxgl.app.services.SystemBundleService.onExit(SystemBundleService.kt:49)
at [email protected]/com.almasb.fxgl.app.Engine.stopLoopAndExitServices(Engine.kt:166)
at [email protected]/com.almasb.fxgl.app.FXGLApplication.exitFXGL(FXGLApplication.kt:299)
at [email protected]/com.almasb.fxgl.dsl.FXGL$Companion$controller$1.exit(FXGL.kt:148)
at [email protected]/com.almasb.fxgl.app.FXGLApplication$GameApplicationService$onInit$2.invoke(FXGLApplication.kt:425)
at [email protected]/com.almasb.fxgl.app.FXGLApplication$GameApplicationService$onInit$2.invoke(FXGLApplication.kt:419)
at [email protected]/com.almasb.fxgl.app.PrimaryStageWindow.initStage$lambda$2$lambda$0(MainWindow.kt:398)
at [email protected]/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
at [email protected]/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:232)
at [email protected]/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:189)
at [email protected]/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
at [email protected]/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
at [email protected]/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at [email protected]/com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
at [email protected]/com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
at [email protected]/javafx.event.Event.fireEvent(Event.java:198)
at [email protected]/com.sun.javafx.stage.WindowPeerListener.closing(WindowPeerListener.java:100)
at [email protected]/com.sun.javafx.tk.quantum.GlassWindowEventHandler.run(GlassWindowEventHandler.java:147)
at [email protected]/com.sun.javafx.tk.quantum.GlassWindowEventHandler.run(GlassWindowEventHandler.java:40)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at [email protected]/com.sun.javafx.tk.quantum.GlassWindowEventHandler.lambda$handleWindowEvent$4(GlassWindowEventHandler.java:178)
at [email protected]/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:424)
at [email protected]/com.sun.javafx.tk.quantum.GlassWindowEventHandler.handleWindowEvent(GlassWindowEventHandler.java:176)
at [email protected]/com.sun.glass.ui.Window.handleWindowEvent(Window.java:1259)
at [email protected]/com.sun.glass.ui.Window.notifyClose(Window.java:1164)
at [email protected]/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at [email protected]/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:185)
at java.base/java.lang.Thread.run(Thread.java:1575)
The text was updated successfully, but these errors were encountered: