question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jme3test.blender.TestBlenderLoader throws an OutOfMemoryError

See original GitHub issue

Currently (in master branch at 3.3-6680) TestBlenderLoader crashes with the following stack trace:

Dec 29, 2018 10:14:34 AM com.jme3.scene.plugins.blender.file.FileBlockHeader$BlockCode valueOf
WARNING: Unknown block header: PY00
Dec 29, 2018 10:14:34 AM com.jme3.scene.plugins.blender.file.FileBlockHeader$BlockCode valueOf
WARNING: Unknown block header: PY00
Dec 29, 2018 10:14:34 AM com.jme3.scene.plugins.blender.file.FileBlockHeader$BlockCode valueOf
WARNING: Unknown block header: PY00
Dec 29, 2018 10:14:34 AM com.jme3.scene.plugins.blender.animations.AnimationHelper loadAnimations
INFO: Loading animations that will be later applied to scene features.
Dec 29, 2018 10:14:34 AM com.jme3.scene.plugins.blender.animations.AnimationHelper loadAnimations
INFO: Found animation: Dance.
Dec 29, 2018 10:14:34 AM com.jme3.scene.plugins.blender.animations.AnimationHelper loadAnimations
INFO: Found animation: DrawSwords.
Dec 29, 2018 10:14:34 AM com.jme3.scene.plugins.blender.animations.AnimationHelper loadAnimations
INFO: Found animation: HandsClosed.
Dec 29, 2018 10:14:34 AM com.jme3.scene.plugins.blender.animations.AnimationHelper loadAnimations
INFO: Found animation: HandsRelaxed.
Dec 29, 2018 10:14:34 AM com.jme3.scene.plugins.blender.animations.AnimationHelper loadAnimations
INFO: Found animation: IdleBase.
Dec 29, 2018 10:14:34 AM com.jme3.scene.plugins.blender.animations.AnimationHelper loadAnimations
INFO: Found animation: IdleTop.
Dec 29, 2018 10:14:34 AM com.jme3.scene.plugins.blender.animations.AnimationHelper loadAnimations
INFO: Found animation: JumpEnd.
Dec 29, 2018 10:14:34 AM com.jme3.scene.plugins.blender.animations.AnimationHelper loadAnimations
INFO: Found animation: JumpLoop.
Dec 29, 2018 10:14:34 AM com.jme3.scene.plugins.blender.animations.AnimationHelper loadAnimations
INFO: Found animation: JumpStart.
Dec 29, 2018 10:14:34 AM com.jme3.scene.plugins.blender.animations.AnimationHelper loadAnimations
INFO: Found animation: RunBase.
Dec 29, 2018 10:14:34 AM com.jme3.scene.plugins.blender.animations.AnimationHelper loadAnimations
INFO: Found animation: RunTop.
Dec 29, 2018 10:14:34 AM com.jme3.scene.plugins.blender.animations.AnimationHelper loadAnimations
INFO: Found animation: SliceHorizontal.
Dec 29, 2018 10:14:34 AM com.jme3.scene.plugins.blender.animations.AnimationHelper loadAnimations
INFO: Found animation: SliceVertical.
Dec 29, 2018 10:14:35 AM com.jme3.app.LegacyApplication handleError
SEVERE: Uncaught exception thrown in Thread[jME3 Main,5,main]
java.lang.OutOfMemoryError: Java heap space
	at com.jme3.texture.plugins.TGALoader.load(TGALoader.java:205)
	at com.jme3.texture.plugins.TGALoader.load(TGALoader.java:83)
	at com.jme3.asset.DesktopAssetManager.loadLocatedAsset(DesktopAssetManager.java:259)
	at com.jme3.asset.DesktopAssetManager.loadAssetFromStream(DesktopAssetManager.java:341)
	at com.jme3.scene.plugins.blender.textures.ImageLoader.loadTexture(ImageLoader.java:118)
	at com.jme3.scene.plugins.blender.textures.TextureHelper.loadImageAsTexture(TextureHelper.java:255)
	at com.jme3.scene.plugins.blender.BlenderLoader.load(BlenderLoader.java:133)
	at com.jme3.scene.plugins.blender.BlenderLoader.load(BlenderLoader.java:88)
	at com.jme3.asset.DesktopAssetManager.loadLocatedAsset(DesktopAssetManager.java:259)
	at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:373)
	at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:416)
	at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:420)
	at jme3test.blender.TestBlenderLoader.simpleInitApp(TestBlenderLoader.java:53)
	at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:220)
	at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:130)
	at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:211)
	at java.lang.Thread.run(Thread.java:748)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
Ali-RScommented, Dec 5, 2020

Blender importer is removed in the master branch and JME 3.4 will not support importing blender files. You should use Gltf instead.

Maybe we should close this issue or tag it with “wontfix”

1reaction
stephengoldcommented, Apr 21, 2020

The same failure was observed during 3.3.1 testing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Handle the OutOfMemoryError in Java - Rollbar
OutOfMemoryError is a runtime error in Java which occurs when the JVM is ... OutOfMemoryError thrown due to insufficient Java heap space:
Read more >
3.2 Understand the OutOfMemoryError Exception
Usually, this error is thrown when there is insufficient space to allocate an object in the Java heap. In this case, The garbage...
Read more >
How do I resolve "OutOfMemoryError" Hive Java heap space ...
I'm running an Apache Hive query on Amazon EMR. Hive throws an OutOfMemoryError exception while outputting the query results.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found