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

com.jme3.asset.AssetKey - Asset path is outside assetmanager root #23

Open
ghost opened this issue Feb 4, 2018 · 4 comments
Open

com.jme3.asset.AssetKey - Asset path is outside assetmanager root #23

ghost opened this issue Feb 4, 2018 · 4 comments

Comments

@ghost
Copy link

ghost commented Feb 4, 2018

No description provided.

@ghost
Copy link
Author

ghost commented Feb 4, 2018

Can you tell me how to fix it?
Thank you very much!

@msavva
Copy link
Member

msavva commented Feb 18, 2018

Hi @axiaoyi ,
Can you provide us the following to help us debug the issue:

  • Steps you followed to set up the data locally
  • Command after which error is printed
  • Log of the console output when the error is printed

@ghost
Copy link
Author

ghost commented Feb 22, 2018

1.steps I follow to set up the data:
viewer.commands = [
"register shapeNetCore /mnt/hgfs/share/ShapeNetCore.v1"
"set screenshotDir /mnt/hgfs/share/workv3/"
"load model random 3dw bowl"
"save model screenshots all 3dw bowl"
]
2.after I input "save model screenshots all 3dw bowl",error is printed.
3.Log of the console output :
19:39:22.129 [jME3 Main] INFO scala.Console - Opening /mnt/hgfs/share/workv3///modelsByCategory/bowl/summary.csv
19:39:22.180 [jME3 Main] INFO e.s.graphics.shapenet.util.IOUtils$ - Opening file for output /mnt/hgfs/share/workv3///modelsByCategory/bowl/summary.csv
19:39:22.222 [jME3 Main] INFO scala.Console - Process action Action(SetScreenshotDir,WrappedArray(/mnt/hgfs/share/workv3///modelsByCategory/bowl//3dw/d162f269bc5fb7da85df81f999944b5d/))
19:39:22.230 [jME3 Main] INFO scala.Console - Process action Action(GenImagesForScene,WrappedArray(3dw.d162f269bc5fb7da85df81f999944b5d, edu.stanford.graphics.shapenet.jme3.viewer.SceneImagesGenerator$$anon$1@7e605119))
19:39:22.232 [jME3 Main] INFO scala.Console - Need to load scene 3dw.d162f269bc5fb7da85df81f999944b5d
19:39:22.239 [pool-1-thread-1] INFO e.s.g.s.data.DataManager$$anon$1 - Format is null
19:39:22.252 [pool-1-thread-1] INFO e.s.g.s.data.DataManager$$anon$1 - Format is null
19:39:22.262 [pool-1-thread-1] INFO e.s.g.shapenet.jme3.JmeAssetCreator - load model 3dw.d162f269bc5fb7da85df81f999944b5d from https://www.shapenet.org/shapenet/data//d/1/6/2/f/269bc5fb7da85df81f999944b5d/d162f269bc5fb7da85df81f999944b5d/Collada/d162f269bc5fb7da85df81f999944b5d.kmz
19:39:23.264 [pool-1-thread-1] INFO jme3dae.collada14.ColladaDocumentV14 - ColladaParser v. 0.1
19:39:23.265 [pool-1-thread-1] ERROR com.jme3.asset.AssetKey - Asset path is outside assetmanager root
19:39:23.275 [pool-1-thread-1] WARN com.jme3.asset.AssetManager - Cannot locate resource: ../images/texture0.jpg (Flipped)

what can I do for it ? Thank you

@Wei2624
Copy link

Wei2624 commented Jun 27, 2018

@msavva Hi, I am still encountering this problem.

I got this issue right after I ran ./script/view.sh. The part of output screen is like:

Jun 27, 2018 6:56:03 PM de.lessvoid.nifty.Nifty registerStyle
WARNING: Style: nifty-panel was already registered. The new definition will override the previous.
Jun 27, 2018 6:56:03 PM de.lessvoid.nifty.Nifty registerStyle
WARNING: Style: nifty-panel-red was already registered. The new definition will override the previous.
Jun 27, 2018 6:56:03 PM de.lessvoid.nifty.Nifty registerStyle
WARNING: Style: nifty-panel-no-shadow was already registered. The new definition will override the previous.
Jun 27, 2018 6:56:03 PM de.lessvoid.nifty.Nifty registerStyle
WARNING: Style: nifty-panel-red-no-shadow was already registered. The new definition will override the previous.
Jun 27, 2018 6:56:03 PM de.lessvoid.nifty.Nifty registerStyle
WARNING: Style: nifty-panel-simple was already registered. The new definition will override the previous.
Jun 27, 2018 6:56:03 PM de.lessvoid.nifty.Nifty registerStyle
WARNING: Style: nifty-panel-bright was already registered. The new definition will override the previous.
Jun 27, 2018 6:56:04 PM de.lessvoid.xml.tools.ClassHelper getInstance
WARNING: class [edu.stanford.graphics.shapenet.viewer.ViewerController] could not be instantiated (java.lang.ClassNotFoundException: edu.stanford.graphics.shapenet.viewer.ViewerController)
Jun 27, 2018 6:56:04 PM de.lessvoid.nifty.loaderv2.types.ScreenType create
WARNING: Missing ScreenController for screen [menu] using DefaultScreenController() instead but this might not be what you want.
Jun 27, 2018 6:56:04 PM de.lessvoid.nifty.loaderv2.types.ScreenType create
WARNING: Missing ScreenController for screen [end] using DefaultScreenController() instead but this might not be what you want.

18:56:04.104 [jME3 Main] INFO  u.o.l.s.context.SysOutOverSLF4J - Replaced standard System.out and System.err PrintStreams with SLF4JPrintStreams
18:56:04.106 [jME3 Main] INFO  u.o.l.s.context.SysOutOverSLF4J - Redirected System.out and System.err to SLF4J for this context
18:56:04.239 [jME3 Main] WARN  com.jme3.input.InputManager - Attempted to add mapping "ScreenShot" twice to trigger.
18:56:05.078 [pool-1-thread-1] INFO  e.s.g.shapenet.jme3.JmeAssetCreator - load model 3dw.111cb08c8121b8411749672386e0b711 from https://www.shapenet.org/shapenet/data//1/1/1/c/b/08c8121b8411749672386e0b711/111cb08c8121b8411749672386e0b711/Collada/111cb08c8121b8411749672386e0b711.kmz
18:56:05.155 [pool-1-thread-1] INFO  jme3dae.collada14.ColladaDocumentV14 - ColladaParser v. 0.1
18:56:05.171 [pool-1-thread-1] ERROR com.jme3.asset.AssetKey - Asset path is outside assetmanager root
18:56:05.172 [pool-1-thread-1] WARN  com.jme3.asset.AssetManager - Cannot locate resource: ../images/texture0.jpg (Flipped)
18:56:05.182 [pool-1-thread-1] INFO  j.materials.FXBumpMaterialGenerator - Generating Material 
18:56:05.186 [pool-1-thread-1] INFO  j.materials.FXBumpMaterialGenerator - Generating Material 
18:56:05.187 [pool-1-thread-1] INFO  j.materials.FXBumpMaterialGenerator - Generating Material images/texture0.jpg
18:56:05.188 [pool-1-thread-1] INFO  j.materials.FXBumpMaterialGenerator - Generating Material 
18:56:05.188 [pool-1-thread-1] INFO  j.c.t.LibraryMaterialsTransformer - GOOGLEEARTH double sided attribute detected

However, I could view the demo without any problem.

I would very appreciate if you could provide some suggestions on this one! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants