I click Build HTML5 or Bundle HTML5 Application and get a web game to share out
Actual behaviour
I get a null reference exception
Steps to reproduce
I don't have solid repro steps, my project is broken on two machines. The strangest thing about it is that I copied default.render and default.render_script out for some camera work.
If it helps, this is my error log:
2019-11-17 01:43:31.712 160034 [JavaFX Application Thread] ERROR editor.error-reporting - {:line 98}
java.lang.NullPointerException: null
at com.dynamo.bob.fs.DefaultFileSystem.get(DefaultFileSystem.java:34)
at com.dynamo.bob.Project.getResource(Project.java:1341)
at com.dynamo.bob.pipeline.BuilderUtil.checkResource(BuilderUtil.java:22)
at com.dynamo.bob.pipeline.LuaBuilder.build(LuaBuilder.java:184)
at com.dynamo.bob.Project.runTasks(Project.java:1021)
at com.dynamo.bob.Project.doBuild(Project.java:822)
at com.dynamo.bob.Project.build(Project.java:437)
at editor.pipeline.bob$run_commandsBANG$fn40588.invoke(bob.clj:86)
at editor.pipeline.bob$run_commandsBANG.invokeStatic(bob.clj:85)
at editor.pipeline.bob$bob_buildBANG.invokeStatic(bob.clj:127)
at editor.disk$async_bob_buildBANG$fn41610$fn41613$fn41614.invoke(disk.clj:205)
at clojure.core$binding_conveyor_fn$fn__5739.invoke(core.clj:2030)
at clojure.lang.AFn.call(AFn.java:18)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2019-11-17 01:43:40.410 168732 [Timer-0] INFO editor.updater - {:line 283, :message "Checking for updates", :url "https://d.defold.com/editor2/channels/editor-alpha/update-v3.json"}
2019-11-17 01:43:40.922 169244 [Timer-0] INFO editor.updater - {:line 290, :message "No update found"}
Some additional information: I do occasionally see a similar null reference exception dialog box when debugging (pressing f5). I can usually test by doing a normal build and debugging functionality tends to return over time. I do notices as well that some long-running openjdk process seems to get stuck running after exiting Defold - I tend to have to reboot to terminate it.
Ok, the initial problem you had was that you weren't able to make an HTML build. Can you confirm that this works?
And the problem you have now is that you are unable to debug? If that is the case it feels like a completely different problem that should be reported in a new issue.
Expected behaviour
I click Build HTML5 or Bundle HTML5 Application and get a web game to share out
Actual behaviour
I get a null reference exception
Steps to reproduce
I don't have solid repro steps, my project is broken on two machines. The strangest thing about it is that I copied default.render and default.render_script out for some camera work.
If it helps, this is my error log: 2019-11-17 01:43:31.712 160034 [JavaFX Application Thread] ERROR editor.error-reporting - {:line 98} java.lang.NullPointerException: null at com.dynamo.bob.fs.DefaultFileSystem.get(DefaultFileSystem.java:34) at com.dynamo.bob.Project.getResource(Project.java:1341) at com.dynamo.bob.pipeline.BuilderUtil.checkResource(BuilderUtil.java:22) at com.dynamo.bob.pipeline.LuaBuilder.build(LuaBuilder.java:184) at com.dynamo.bob.Project.runTasks(Project.java:1021) at com.dynamo.bob.Project.doBuild(Project.java:822) at com.dynamo.bob.Project.build(Project.java:437) at editor.pipeline.bob$run_commandsBANG$fn40588.invoke(bob.clj:86) at editor.pipeline.bob$run_commandsBANG.invokeStatic(bob.clj:85) at editor.pipeline.bob$bob_buildBANG.invokeStatic(bob.clj:127) at editor.disk$async_bob_buildBANG$fn41610$fn41613$fn41614.invoke(disk.clj:205) at clojure.core$binding_conveyor_fn$fn__5739.invoke(core.clj:2030) at clojure.lang.AFn.call(AFn.java:18) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) 2019-11-17 01:43:40.410 168732 [Timer-0] INFO editor.updater - {:line 283, :message "Checking for updates", :url "https://d.defold.com/editor2/channels/editor-alpha/update-v3.json"} 2019-11-17 01:43:40.922 169244 [Timer-0] INFO editor.updater - {:line 290, :message "No update found"}
Some additional information: I do occasionally see a similar null reference exception dialog box when debugging (pressing f5). I can usually test by doing a normal build and debugging functionality tends to return over time. I do notices as well that some long-running openjdk process seems to get stuck running after exiting Defold - I tend to have to reboot to terminate it.
And this doesn't happen with other projects? Would you be able to share the project (bjorn@defold.com)?
The 'Roids sample project does work as expected (I can debug and export an HTML 5 bundle). I've also sent my code your way.
The problem is that you require the camera_data.lua using a relative path in your render script:
You should not use relative paths. It may work but you will likely run into problems when bundling. Change to:
PS You should change from / to . as path separator.
That fixes my ability to build, but I still can't debug:
Ok, the initial problem you had was that you weren't able to make an HTML build. Can you confirm that this works?
And the problem you have now is that you are unable to debug? If that is the case it feels like a completely different problem that should be reported in a new issue.