Closed DrMoriarty closed 6 years ago
I checked the ios exporting and the application run successfully. Scene was loaded without any errors, but after loading I see a lot of 502 errors in xcode console:
2018-06-27 12:05:28.357561+0300 Godot-Nim-Stub[2867:5743374] 502 error
2018-06-27 12:05:28.378690+0300 Godot-Nim-Stub[2867:5743374] 502 error
2018-06-27 12:05:28.387347+0300 Godot-Nim-Stub[2867:5743374] 502 error
2018-06-27 12:05:28.404656+0300 Godot-Nim-Stub[2867:5743374] 502 error
It appears many times per second. I think that something gets wrong gateway error but have no idea what part of code is it.
godot-nim does work both on iOS and Android and here is a game in production built with it: https://www.summonage.com/
This issue should've been filed in godot-nim-stub repo. That project's build scripts should be extended to properly support mobile.
502 error
is printed for any Godot game on iOS, not sure where it comes from, but it's not related to godot-nim.
Android's NilAccessError
likely also comes from Godot, since there is no Nim stack trace. Remove import segfaults
from the project and you'll have a native crash tombstone that you can investigate.
You are right! I commended out importing segfaults module and it shows me the root of problem:
06-27 14:46:50.111: E/godot(18164): **ERROR**: Condition ' _first != __null ' is true.
06-27 14:46:50.111: E/godot(18164): At: core/self_list.h:100:~List() - Condition ' _first != __null ' is true.
Possibly way off-topic; but not maybe. The example game of summonage
you linked to appears to be incompatible, per the Play Store, with all my devices. From an old Nexus 5 to a Google Pixel XL running the latest Android version. Do you think this a setting in GoDot or something messed up at the Play store?
@JohnAD I installed and played summonage on my Redmi 5 successfully. It have Android 7.1.2.
@JohnAD it's compatible with my Redmi 4 Prime with custom ROM with Android 8.1
I just figured it out. I next went to the Play Store on the Pixel XL device. Could not find the app; which makes sense since it is not available for it. So, I then went to the web site and followed the link, which forced the Play store to show the entry. It says "This item isn't available in your country." which is much more descriptive.
So, not a problem. It is simply not available in the US.
Just FYI:
My Pixel XL is running Android 8.1.0. Screenshot from web: https://www.dropbox.com/s/atta7i6fnf9m9fs/summonage_screenshot.png?dl=0
Hello! I successfully built godot-nim-stub for android (my fork: https://github.com/DrMoriarty/godot-nim-stub) It starts and shows correct fps counter. But it crashes when I pressed the main scene. I added some debug output in https://github.com/DrMoriarty/godot-nim-stub/blob/master/src/mainpanel.nim so log is:
The last two lines repeated more than 100 times and then application closes. I tried to change compilation flags. I disabled threads and tlsEmulation but it have absolutely no effect.
Also I changed android compilation from clang to gcc because of errors (https://forum.nim-lang.org/t/3981) I don't know if it affect to this issue.
Macosx: 10.13.4 Godot: 3.0.4 Android: 7.1.2 Android NDK: r14b