Target device (Android) keeps disappearing in menu

As the title says, I encounter a problem when I try to stream my game on Android.
I’m on Win7, I got the DMengine running, and while selecting the target device, the phone appears and disappears randomly.
I don’t think the problem comes from my Wi-Fi network since I can stream videos perfectly from the net between each of my attempts.
Also, when I quickly select the Android as a target device before it disappears and try to build the game, I typically encounter this kind of error :

INFO:ENGINE: Defold Engine 1.2.74 (5d0293a)
INFO:ENGINE: Loading data from: http://192.168.1.68:8080/build/default
INFO:ENGINE: Initialised sound device ‘default’

WARNING:RESOURCE: Unable to create resource: /build/default/level assets/new_file.texturec
WARNING:RESOURCE: Unable to create resource: /build/default/level assets/new_file.texturesetc
WARNING:RESOURCE: Unable to create resource: /build/default/level assets/objects/platform_generated_1.spritec
WARNING:RESOURCE: Unable to create resource: /build/default/level assets/objects/platform.goc
WARNING:RESOURCE: Unable to create resource: /build/default/main/main_generated_0_generated_0.factoryc
WARNING:RESOURCE: Unable to create resource: /build/default/main/main_generated_0.goc
ERROR:GAMEOBJECT: Could not instantiate game object from prototype /main/main_generated_0.goc.
WARNING:RESOURCE: Unable to create resource: /build/default/main/main.collectionc
INFO:DLIB: SSDP: Done on address 192.168.1.70

@Andreas_Tadic knows quite a bit about the discovery function and how we search for and list devices with dmengine running. Andreas do you have any input?

The log states:
Loading data from: http://192.168.1.68 … then
Done on address 192.168.1.70 … which means it has connected to a different host address, which it shouldn’t.

There is a known issue and has an existing JIRA ticket:
“DEF-1515. Dev app tries to load game from wrong network device”

I strongly suspect what you’re experiencing is the same issue. As a quick test, can you pleas disconnect all network connections except Wifi (that is Ethernet and any other connections you might have) and see if that solves it?
Obviously not a solution, but it would tell us if you’re problem is the same as reported already which makes it easier for us to reproduce.

2 Likes