Skip to content

TestQ3 throws AssetLoadException and crashes #2754

@stephengold

Description

@stephengold

With my jmonkeyengine source tree synched to commit c46a9bb, I ran TestQ3 in jme3-examples on my Linux Mint laptop.
The application crashed due to an uncaught AssetLoadException. Here is the console output:

May 09, 2026 1:04:01 PM com.jme3.app.SimpleApplication start
INFO: AppSettings not set, creating default settings.
May 09, 2026 1:04:01 PM com.jme3.awt.AWTSettingsDialog <init>
INFO: Loading AppSettings from PreferenceKey: jMonkeyEngine 3.10.0-SNAPSHOT
May 09, 2026 1:04:01 PM com.jme3.system.AppSettings printPreferences
INFO: Preferences for key: jMonkeyEngine 3.10.0-SNAPSHOT
 * B_CenterWindow = true
 * B_DisableJoysticks = true
 * B_Fullscreen = false
 * B_GammaCorrection = true
 * B_OpenCL = false
 * B_Resizable = false
 * B_SwapBuffers = true
 * B_UseInput = true
 * B_UseRetinaFrameBuffer = false
 * B_VSync = true
 * B_X11PlatformPreferred = false
 * F_JoysticksAxisJitterThreshold = 1.0E-4
 * F_JoysticksTriggerToButtonThreshold = 0.5
 * I_BitsPerPixel = 24
 * I_DepthBits = 24
 * I_Display = 0
 * I_FrameRate = -1
 * I_Frequency = -1
 * I_Height = 480
 * I_MinHeight = 0
 * I_MinWidth = 0
 * I_Samples = 0
 * I_StencilBits = 0
 * I_Width = 640
 * I_WindowHeight = -2147483648
 * I_WindowWidth = -2147483648
 * I_WindowXPosition = 0
 * I_WindowYPosition = 0
 * S_AudioRenderer = LWJGL
 * S_JoysticksMapper = JOYSTICKS_XBOX_MAPPER
 * S_OpenCLPlatformChooser = com.jme3.opencl.DefaultPlatformChooser
 * S_Renderer = LWJGL-OpenGL3
 * S_SDLGameControllerDBResourcePath = 
 * S_SettingsDialogImage = /com/jme3/app/Monkey.png
 * S_Title = jMonkeyEngine 3.10.0-SNAPSHOT
May 09, 2026 1:04:02 PM com.jme3.awt.AWTSettingsDialog verifyAndSaveCurrentSelection
INFO: Saving AppSettings to PreferencesKey: jMonkeyEngine 3.10.0-SNAPSHOT
May 09, 2026 1:04:02 PM com.jme3.system.AppSettings printPreferences
INFO: Preferences for key: jMonkeyEngine 3.10.0-SNAPSHOT
 * B_CenterWindow = true
 * B_DisableJoysticks = true
 * B_Fullscreen = false
 * B_GammaCorrection = true
 * B_OpenCL = false
 * B_Resizable = false
 * B_SwapBuffers = true
 * B_UseInput = true
 * B_UseRetinaFrameBuffer = false
 * B_VSync = true
 * B_X11PlatformPreferred = false
 * F_JoysticksAxisJitterThreshold = 1.0E-4
 * F_JoysticksTriggerToButtonThreshold = 0.5
 * I_BitsPerPixel = 24
 * I_DepthBits = 24
 * I_Display = 0
 * I_FrameRate = -1
 * I_Frequency = -1
 * I_Height = 480
 * I_MinHeight = 0
 * I_MinWidth = 0
 * I_Samples = 0
 * I_StencilBits = 0
 * I_Width = 640
 * I_WindowHeight = -2147483648
 * I_WindowWidth = -2147483648
 * I_WindowXPosition = 0
 * I_WindowYPosition = 0
 * S_AudioRenderer = LWJGL
 * S_JoysticksMapper = JOYSTICKS_XBOX_MAPPER
 * S_OpenCLPlatformChooser = com.jme3.opencl.DefaultPlatformChooser
 * S_Renderer = LWJGL-OpenGL3
 * S_SDLGameControllerDBResourcePath = 
 * S_SettingsDialogImage = /com/jme3/app/Monkey.png
 * S_Title = jMonkeyEngine 3.10.0-SNAPSHOT
May 09, 2026 1:04:02 PM com.jme3.system.JmeDesktopSystem initialize
INFO: Running on jMonkeyEngine 3.10.0-SNAPSHOT
 * Branch: master
 * Git Hash: c46a9bb
 * Build Date: 2026-05-09
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by org.ngengine.saferalloc.NativeLibraryLoader in an unnamed module (file:/mnt/virginia/home/sgold/.gradle/caches/modules-2/files-2.1/org.ngengine/saferalloc/0.0.7/a1c4ea636ef436f9703862d483482b3b88923785/saferalloc-0.0.7.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled

May 09, 2026 1:04:03 PM com.jme3.util.LWJGLSaferAllocMemoryAllocator <init>
INFO: LWJGLSaferAllocMemoryAllocator enabled!
May 09, 2026 1:04:03 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: LWJGL 3.4.1+2 context running on thread jME3 Main
 * Graphics Adapter: GLFW 3.5.0 Wayland X11 GLX Null EGL OSMesa monotonic shared
May 09, 2026 1:04:03 PM com.jme3.util.SaferBufferAllocator <init>
INFO: SaferBufferAllocator enabled!
May 09, 2026 1:04:03 PM com.jme3.renderer.opengl.GLRenderer loadCapabilitiesCommon
INFO: OpenGL Renderer Information
 * Vendor: NVIDIA Corporation
 * Renderer: NVIDIA GeForce RTX 2070/PCIe/SSE2
 * OpenGL Version: 3.2.0 NVIDIA 580.142
 * GLSL Version: 1.50 NVIDIA via Cg compiler
 * Profile: Core
May 09, 2026 1:04:03 PM com.jme3.audio.openal.ALAudioRenderer printAudioRendererInfo
INFO: Audio Renderer Information
 * Device: OpenAL Soft
 * Vendor: OpenAL Community
 * Renderer: OpenAL Soft
 * Version: 1.1 ALSOFT 1.25.1
 * Supported channels: 64
 * ALC extensions: ALC_ENUMERATE_ALL_EXT ALC_ENUMERATION_EXT ALC_EXT_CAPTURE ALC_EXT_debug ALC_EXT_DEDICATED ALC_EXT_direct_context ALC_EXT_disconnect ALC_EXT_EFX ALC_EXT_thread_local_context ALC_SOFT_device_clock ALC_SOFT_HRTF ALC_SOFT_loopback ALC_SOFT_loopback_bformat ALC_SOFT_output_limiter ALC_SOFT_output_mode ALC_SOFT_pause_device ALC_SOFT_reopen_device ALC_SOFT_system_events
 * AL extensions: AL_EXT_ALAW AL_EXT_BFORMAT AL_EXT_debug AL_EXT_direct_context AL_EXT_DOUBLE AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_MULAW AL_EXT_MULAW_BFORMAT AL_EXT_MULAW_MCFORMATS AL_EXT_OFFSET AL_EXT_source_distance_model AL_EXT_SOURCE_RADIUS AL_EXT_STATIC_BUFFER AL_EXT_STEREO_ANGLES AL_LOKI_quadriphonic AL_SOFT_bformat_ex AL_SOFT_bformat_hoa AL_SOFT_block_alignment AL_SOFT_buffer_length_query AL_SOFT_callback_buffer AL_SOFTX_convolution_effect AL_SOFT_deferred_updates AL_SOFT_direct_channels AL_SOFT_direct_channels_remix AL_SOFT_effect_target AL_SOFT_events AL_SOFT_gain_clamp_ex AL_SOFTX_hold_on_disconnect AL_SOFT_loop_points AL_SOFTX_map_buffer AL_SOFT_MSADPCM AL_SOFT_source_latency AL_SOFT_source_length AL_SOFTX_source_panning AL_SOFT_source_resampler AL_SOFT_source_spatialize AL_SOFT_source_start_delay AL_SOFT_UHJ AL_SOFT_UHJ_ex
May 09, 2026 1:04:03 PM com.jme3.audio.openal.ALAudioRenderer initEfx
INFO: Audio effect extension version: 1.0
May 09, 2026 1:04:03 PM com.jme3.audio.openal.ALAudioRenderer initEfx
INFO: Audio max auxiliary sends: 2
May 09, 2026 1:04:04 PM com.jme3.app.LegacyApplication handleError
SEVERE: Uncaught exception thrown in Thread[#42,jME3 Main,5,main]
com.jme3.asset.AssetLoadException: An exception has occurred while loading asset: floor_1.tga (Mipmapped)
	at com.jme3.asset.DesktopAssetManager.loadLocatedAsset(DesktopAssetManager.java:276)
	at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:390)
	at com.jme3.asset.DesktopAssetManager.loadTexture(DesktopAssetManager.java:409)
	at com.jme3.scene.plugins.ogre.MaterialLoader.readTextureImage(MaterialLoader.java:139)
	at com.jme3.scene.plugins.ogre.MaterialLoader.readTextureUnitStatement(MaterialLoader.java:171)
	at com.jme3.scene.plugins.ogre.MaterialLoader.readTextureUnit(MaterialLoader.java:209)
	at com.jme3.scene.plugins.ogre.MaterialLoader.readPassStatement(MaterialLoader.java:257)
	at com.jme3.scene.plugins.ogre.MaterialLoader.readPass(MaterialLoader.java:293)
	at com.jme3.scene.plugins.ogre.MaterialLoader.readTechnique(MaterialLoader.java:309)
	at com.jme3.scene.plugins.ogre.MaterialLoader.readMaterialStatement(MaterialLoader.java:315)
	at com.jme3.scene.plugins.ogre.MaterialLoader.readMaterial(MaterialLoader.java:327)
	at com.jme3.scene.plugins.ogre.MaterialLoader.load(MaterialLoader.java:477)
	at com.jme3.scene.plugins.ogre.MaterialLoader.load(MaterialLoader.java:491)
	at com.jme3.asset.DesktopAssetManager.loadLocatedAsset(DesktopAssetManager.java:274)
	at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:390)
	at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:404)
	at jme3test.bullet.TestQ3.simpleInitApp(TestQ3.java:101)
	at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:307)
	at com.jme3.system.lwjgl.LwjglWindow.initInThread(LwjglWindow.java:710)
	at com.jme3.system.lwjgl.LwjglWindow.run(LwjglWindow.java:813)
	at java.base/java.lang.Thread.run(Thread.java:1474)
Caused by: java.io.IOException: Unsupported number of channels: 0
	at com.jme3.texture.plugins.StbImageLoader.load(StbImageLoader.java:98)
	at com.jme3.asset.DesktopAssetManager.loadLocatedAsset(DesktopAssetManager.java:274)
	... 20 more

Metadata

Metadata

Labels

Type

No type

Projects

Status

tracked

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions