Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TerrainGridTest throws AssetLoadException #998

Closed
stephengold opened this Issue Dec 31, 2018 · 4 comments

Comments

Projects
None yet
1 participant
@stephengold
Copy link
Contributor

commented Dec 31, 2018

Currently (in master branch at 3.3-6689) the jme3test.terrain.TerrainGridTest app generates the following stack trace:

Dec 31, 2018 10:39:51 AM com.jme3.material.plugins.J3MLoader readTechnique
WARNING: Fixed function technique was ignored
Dec 31, 2018 10:39:51 AM com.jme3.material.plugins.J3MLoader readTechnique
WARNING: Fixed function technique 'Default' was ignored for material Common/MatDefs/Terrain/HeightBasedTerrain.j3md
com.jme3.asset.AssetLoadException: The given image cannot be loaded Scenes/TerrainMountains/terrain_-1_-1.png (Flipped)
	at com.jme3.texture.plugins.AWTLoader.load(AWTLoader.java:194)
	at com.jme3.asset.DesktopAssetManager.loadLocatedAsset(DesktopAssetManager.java:259)
	at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:373)
	at com.jme3.asset.DesktopAssetManager.loadTexture(DesktopAssetManager.java:390)
	at com.jme3.terrain.geomipmap.grid.ImageTileLoader.getHeightMapAt(ImageTileLoader.java:117)
	at com.jme3.terrain.geomipmap.grid.ImageTileLoader.getTerrainQuadAt(ImageTileLoader.java:160)
	at com.jme3.terrain.geomipmap.TerrainGrid$UpdateQuadCache.run(TerrainGrid.java:152)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	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)
@stephengold

This comment has been minimized.

Copy link
Contributor Author

commented Dec 31, 2018

This issue came up at the Forum back in 2013:
https://hub.jmonkeyengine.org/t/implementing-terraingrid/26827/5

Of course, the URL in the Forum post no longer works, but it provides enough of a hint ...

@stephengold

This comment has been minimized.

Copy link
Contributor Author

commented Dec 31, 2018

Nope. That just leads me back to the URL that's currently used in master. Perhaps the contents of TerrainGridTestData.zip have changed since it was archived.

stephengold added a commit that referenced this issue Jan 6, 2019

@stephengold

This comment has been minimized.

Copy link
Contributor Author

commented Jan 6, 2019

Fixed in master. I recovered TerrainGridTestData.zip via the Internet Archive's Wayback Machine.

@stephengold stephengold closed this Jan 6, 2019

@stephengold stephengold added the defect label Jan 7, 2019

@stephengold stephengold added this to the v3.2.3 milestone Feb 19, 2019

@stephengold

This comment has been minimized.

Copy link
Contributor Author

commented Feb 21, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.