defold / editor2-issues

DEPRECATED
44 stars 4 forks source link

java.lang.NullPointerException: Unknown error produced when bundling for iOS #2938

Open vgreen7 opened 4 years ago

vgreen7 commented 4 years ago

Expected behaviour

Bundle Defold project as iOS application

Actual behaviour

reported error canceling build stating: java.lang.NullPointerException: Unknown

Screen Shot 2020-04-01 at 9 44 06 AM

Steps to reproduce

Tried to bundle multiple times. Observed error.


Build time2020-03-30T15:27:54.357768
Defold channeleditor-alpha
Defold editor shab673cc217e4b968a58c922f4b724657b4f7255c0
Defold engine sha96f7a5e4f617d5f6f4645f30a3e6ff656689435d
Defold version1.2.167
Error57c09dd981384b59a30c75a1afba7970
GPUNVIDIA GeForce 9400M OpenGL Engine
GPU Driver2.1 NVIDIA-10.4.14 310.90.30.05b27
Java version11.0.1+13
OS archx86_64
OS nameMac OS X
OS version10.13.6
britzl commented 4 years ago

And this only happens when you bundle to iOS? The same project can be bundled to macOS for instance? Can you bundle an empty project to iOS?

vgreen7 commented 4 years ago

No, I was not able to bundle to any other platform. An empty project bundled fine.

The issue turned out to be that I called a lua script as ".onscreen" when I should have had it as "blank.onscreen." By putting onscreen.lua into a folder and calling it from there it removed the issue. Forum Post

britzl commented 4 years ago

It should also work to remove the initial dot and keep the file in the root of the project. It is cleaner though to have the files in folders.