defold / editor2-issues

DEPRECATED
45 stars 4 forks source link

App crashes on android after hitting build #609

Closed MrStevns closed 7 years ago

MrStevns commented 7 years ago

F/defold (58511618): FATAL:ENGINE: Unable to load project file: 'http://null:49888/build/game.projectc'

Expected behaviour

Application works, game starts loading

Actual behaviour

Application crashes.

Steps to reproduce

  1. Connect phone to pc/mac
  2. hit build in editor 2.0 (make sure you target the right address)

Step to analyze

  1. adb logcat -s defold
Defold version1.2.100
Defold sha171fc6c2c8a850f276e3d2517d8677ba93d7643c
Build time2017-03-21T17:37:36.467205
OS nameMac OS X
OS version10.11.6
OS archx86_64
Java version1.8.0_102-b14
Malmer commented 7 years ago

Same thing happens to me on iOS.

RagnarSvenssonKing commented 7 years ago

Is this when you have manually specified an IP address? After having investigated a bit, it seems like that will crash the engine 100%.

MrStevns commented 7 years ago

I haven't tried without specifying my ip, but yes that may be the reason. It worked prior to the newest engine release and a couple of editor 2 updates though. I'll remove my ip when I get home and see if that fixes the problem.

MrStevns commented 7 years ago

I have removed the ip (it says null because I left the field empty) then started dmengine up on my phone, chose the ip from the dropdown menu and hit build but it still crashes.

RagnarSvenssonKing commented 7 years ago

Ok, I did not expect that. To be clear, you selected one of the IPs that were generated in the menu? It would be of great help if you check logcat again to see if there is different info regarding the crash, I'm assuming "'http://null:49888/build/game.projectc'" won't be there anymore. (That was the specific problem about the manually entered IP, it did not receive info from the SSDP broadcasting.)

MrStevns commented 7 years ago

Yes I selected the generated IP from the menu.

This is what i'm getting now from the log: F/defold (91058423): FATAL:ENGINE: Unable to load project file: 'http://0.0.0.0:61371/build/game.projectc'

RagnarSvenssonKing commented 7 years ago

Excellent, thanks, this really helps a lot!

RagnarSvenssonKing commented 7 years ago

Fixed

subsoap commented 7 years ago

I'm getting same error on Android

[Running on target 'Yifang-NX16A8116K' (192.168.0.102)] INFO:ENGINE: Defold Engine 1.2.105 (719697b) FATAL:ENGINE: Unable to load project file: 'http://192.168.0.117:63949/build/game.projectc' INFO:DLIB: SSDP: Done on address 192.168.0.102

2017-05-22 01_44_34-

Pressing build crashed the app. Tested with debug version of APK. IP is right.

base-thomas commented 5 years ago

I'm getting the same error message, same sequence of events. It's worked once or twice, but I've tried restarting everything and can't replicate. Target shows up correctly in the editor (Android 5 phone connected correctly via usb), both IPs are correct.

$ adb logcat -s defold

--------- beginning of system
W/defold  (12246): WARNING:CRASH: Number of modules exceeds capacity
I/defold  (12246): INFO:DLIB: Log server started on port 44805
I/defold  (12246): INFO:ENGINE: Engine service started on port 8001
I/defold  (12246): INFO:ENGINE: Defold Engine 1.2.144 (8def4b5)
I/defold  (12246): INFO:ENGINE: Loading data from: .
I/defold  (12246): INFO:ENGINE: Initialised sound device 'default'
I/defold  (12246):
I/defold  (12246): INFO:DLIB: SSDP: Started on address 192.168.0.13
I/defold  (12246): INFO:ENGINE: Defold Engine 1.2.144 (8def4b5)
F/defold  (12246): FATAL:ENGINE: Unable to load project file: 'http://192.168.0.11:52802/build/game.projectc' (-1)
I/defold  (12246): INFO:CRASH: Successfully wrote Crashdump to file: /data/data/com.defold.dmengine/files/_crash

Also: when I try to use "Target IP" in the project menu, I get this error: 192.168.0.13 could not be reached from this host