jMonkeyEngine / jMonkeyEngine/jmonkeyengine

Android: Textures no longer loading in 3.10.0

Open
#2,930 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Documentation
Dominant language
Java
Stars
4.3k
Forks
1.2k
Avg merge
4d 7h
Merged PRs (30d)
14

Description

Issue:
After upgrading android app from 3.9.0-stable to 3.10.0-beta2: custom textures (in png and jpg format) did not load.

AI told me this:

General.cfg now points png/jpg loading at StbImageLoader, which lives in
jme3-plugins (not a dependency of jme3-android, and not Android-viable
anyway), so no loader ends up registered for those extensions. Registered the
existing AndroidBufferImageLoader for png/jpg/jpeg/bmp/gif manually in
simpleInitApp().

The workaround was to call
assetManager.registerLoader(AndroidBufferImageLoader.class, "png", "jpg", "jpeg", "bmp", "gif");

in simpleInitApp()

In the log I note a lot of "Cannot find loader" warnings including this one:

WARNING Cannot find loader com.jme3.texture.plugins.StbImageLoader

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing AndroidBufferImageLoader registration and the General.cfg references to StbImageLoader, using the reported upgrade path to reproduce the missing-loader warnings. Check the Android asset-loading setup and verify that custom PNG and JPG textures load without the application-level workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
57/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.