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

Showing HDR Environment is broken #266

Closed
MeFisto94 opened this issue Apr 6, 2020 · 5 comments · Fixed by #438
Closed

Showing HDR Environment is broken #266

MeFisto94 opened this issue Apr 6, 2020 · 5 comments · Fixed by #438
Labels

Comments

@MeFisto94
Copy link
Member

com.jme3.asset.AssetNotFoundException: Textures/Sky/Path.hdr (Flipped)
    at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:382)
    at com.jme3.asset.DesktopAssetManager.loadTexture(DesktopAssetManager.java:404)
    at com.jme3.util.SkyFactory.createSky(SkyFactory.java:291)
    at com.jme3.gde.core.scene.SceneApplication$11.run(SceneApplication.java:640)

I wonder how this could happen, given that I just added this feature very recently.
The file should stem from testdata.

@MeFisto94 MeFisto94 added the bug label Apr 6, 2020
@MeFisto94
Copy link
Member Author

This isn't the case, but:

            Calling pack200(/usr/lib/jvm/java-11-openjdk-amd64/bin/pack200) on /home/marc/Dokumente/02_GIT/sdk/build/installer/nbi_all/ext/infra/build/products/helloworld/build/temp/jmonkeyplatform/libs/jme3-testdata.jar to /home/marc/Dokumente/02_GIT/sdk/build/installer/nbi_all/ext/infra/build/products/helloworld/build/temp/jmonkeyplatform/libs/jme3-testdata.jar.pack.gz
  [package] 
  [package] Warning: The pack200 tool is deprecated, and is planned for removal in a future JDK release.
  [package] 
  [package] OpenJDK 64-Bit Server VM warning: Ignoring option PermSize; support was removed in 8.0
  [package] OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
  [package] Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
  [package]     at java.base/java.util.Arrays.copyOf(Arrays.java:3745)
  [package]     at java.base/java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:120)
  [package]     at java.base/java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:95)
  [package]     at java.base/java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:156)
  [package]     at java.base/java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:187)
  [package]     at java.base/com.sun.java.util.jar.pack.Package$File.writeTo(Package.java:845)
  [package]     at java.base/com.sun.java.util.jar.pack.PackageWriter.writeFiles(PackageWriter.java:820)
  [package]     at java.base/com.sun.java.util.jar.pack.PackageWriter.write(PackageWriter.java:76)
  [package]     at java.base/com.sun.java.util.jar.pack.PackerImpl$DoPack.flushPackage(PackerImpl.java:583)
  [package]     at java.base/com.sun.java.util.jar.pack.PackerImpl$DoPack.flushAll(PackerImpl.java:537)
  [package]     at java.base/com.sun.java.util.jar.pack.PackerImpl$DoPack.run(PackerImpl.java:473)
  [package]     at java.base/com.sun.java.util.jar.pack
  [package] .PackerImpl.pack(PackerImpl.java:92)
  [package]     at java.base/com.sun.java.util.jar.pack.Driver.main(Driver.java:322)
  [package] 
  [package] 1

happens during Installer Build.

@grizeldi
Copy link
Member

Most HDRIs are usually pretty big in size, so maybe it runs out of memory when copying it or something?

@MeFisto94
Copy link
Member Author

Should be fixed in efd8093, but I guess this shouldn't be the problem because I tried to build it locally.
I should be part of TestData since a few versions anyway, though...

@neph1
Copy link
Contributor

neph1 commented Oct 12, 2022

Still happens in main branch. Slightly shifted stacktrace:

com.jme3.asset.AssetNotFoundException: Textures/Sky/Path.hdr (Flipped)
	at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:385)
	at com.jme3.asset.DesktopAssetManager.loadTexture(DesktopAssetManager.java:407)
	at com.jme3.util.SkyFactory.createSky(SkyFactory.java:305)

@tonihele
Copy link
Contributor

tonihele commented Nov 2, 2022

To reproduce, click the toggle skybox button in Scene composer
image

@tonihele tonihele self-assigned this Nov 2, 2022
@tonihele tonihele added this to the 3.5 release milestone Nov 2, 2022
@tonihele tonihele modified the milestones: 3.5 release, 3.x release Nov 6, 2022
@tonihele tonihele removed their assignment Nov 6, 2022
neph1 added a commit to neph1/sdk that referenced this issue Dec 12, 2022
neph1 added a commit that referenced this issue Dec 17, 2022
propose to fix #266 by moving installed jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants