Very strange Playfab, Nakama, Fmod issues

#1

Hi!

It seems to me that the playfab example is not working. I have just downloaded it. When I load the project I get the error: java.lang.NullPointerException: Unknown from the editor. Moreover when I run it then it is stuck in “waiting for connection…” and if I press “more info” I see:

Listening on interfaces:
fe80::18a9::8831::7f74::be73
182.168.1.6

Any help?

0 Likes

#2

And same problems with the Nakama example. It seems that the editor is not loading the full project…

EDIT: something very strange is happening… the same problem also for fmod… error in the editor and waiting when run. What am I doing wrong? I remember I have already run these examples with no issues in the past.

Please help!

0 Likes

#3

I just build the Namaka and it works for me. It seems to me there is something blocks the network.
Do you have firewall which might block access to https://build.defold.com (for fmod) and 182.168.1.6(general- your local IP) ?

0 Likes

#4

No, at all. Never had.
I think the problem is in the editor, it does not load the full project. There are a lot of file missing in the project.

0 Likes

#5

How do you know that?

What is your Log file say? (Help -> Show Logs -> latest file)

0 Likes

#6

In the Assets window I don’t see the file game.project (for example) and I see in the project directory that there is a game.project file (of course).

Help -> show logs -> the project I just opened.

Please note that each time I open any of these projects I always get the error: java.lang.NullPointerException: Unknown from the editor.

0 Likes

#7

This is weird. It should open the logs folder. Log files are in:

  • Windows: C:\Users\ **Your Username** \AppData\Local\Defold
  • macOS: /Users/ **Your Username** /Library/Application Support/ or ~/Library/Application Support/Defold
  • Linux: ~/.Defold

Can you check this folder please, it should be there?

I’m totally lost here…
Is this may be related to read-write access/permissions?

0 Likes

#8

Found the logs. I opened once more the fmod example and this is the first error in the editor log:

2020-07-03 18:47:12.444 16513 [Thread-24] ERROR org.eclipse.jgit.util.FS - xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

Then there many many more lines…

I am using Mac. Does xcrun is a reference to XCode? I never installed XCode and I have launched Fmod in the past without any issue.

0 Likes

#9

Not sure if xcode is required (since I always have). Yes, this is related to xcode tools. But I have doubt this may be a problem about the git.
You may try this if you like:

I think @JCash has a better answer to this.

0 Likes

#10

Thanks for your answer and for the link. Very strange that now I need XCode… I do tested the fmod extension since I have always planned to is it. I do remember Defold making sounds! :slight_smile:

I will wait for an answer from @JCash then.

Again my thanks for your help!

0 Likes

#11
$ xcode-select --install

You’re welcome.
Just for an info; this is not going to install entire xcode. It is for installing Xcode Command Line Tools

0 Likes

#12

Ah! I will try soon then!

0 Likes

#13

Since the error points the org.eclipse.jgit you can also try to remove .git related files and folder from project. This may do the trick. But of course this is not a proper solution.

0 Likes

#14

I don’t understand… I have downloaded the fmod example from git. How may the fmod example work properly? In general I have no problem running Defold. Indeed I am continuing coding something else… as always… :slight_smile:

0 Likes

#15

I’m a bit at a loss as well, but yeah, for macOS and iOS certain tools such as codesign is needed. Have your recently updated macOS? Also the command line tools provided by xcode include things such as git support. And I believe the built in git support in the editor calls out to os provided git commands if they exist. If macOS or xcode has been updated you need to agree to xcode terms and conditions again before you can use any command line tools provided by xcode.

0 Likes

#16

I have done

xcode-select --install

and after installation

sudo xcode-select --reset

and now the xcode error seems gone. But still I get this error from the editor:

[JavaFX Application Thread] ERROR editor.error-reporting - {:line 110}
java.lang.NullPointerException: null
at editor.app_view$refresh_app_title_BANG_.invokeStatic(app_view.clj:1346)
at editor.app_view$make_app_view$fn__46948.invoke(app_view.clj:1458)
at editor.ui$__GT_timer$fn__13986$fn__13987.invoke(ui.clj:1923)
at clojure.lang.AFn.run(AFn.java:22)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)

And still I may see that the project is not fully loaded.

0 Likes

#17

Can you please try and close Defold, remove the .internal folder of the project and open the project again?

0 Likes

#18

This is what I see in the fmod folder:
37
I don’t see the .internal folder of the project…

0 Likes

#19

Ok, and when you open that project in Defold it looks incomplete? Is it only the game.project file that seems to be missing?

0 Likes

#20

I would say that almost nothing has been loaded, only the builtins. Here it is:

0 Likes