Search Unity

[Unity 5.6.0f3] Android network client spam errors after OnPause -> OnResume

Discussion in 'Editor & General Support' started by DrSpritz, May 10, 2017.

  1. DrSpritz

    DrSpritz

    Joined:
    Oct 6, 2013
    Posts:
    29
    Hello!

    I ran into a serious error that does not allow me to publish my game. The essence of the error lies in the fact that after game minimizing on Android device, the game do not restore the connection to server and gives an error "host id out of bound id {0} max id should be greater 0 and less than {0}". I tryed use this project on Unity 5.5.1f1 and all works perfectly!
    To reproduce this error, you must perform the following actions:
    1. Download attached project
    2. Build application for android
    3. Run server in editor
    4. Connect with android device to the server
    5. On the android device, you need to minimize the application and go back to it
    6. Profit in spam of "host id out of bound id {0} max id should be greater 0 and less than {0}" after OnResume in Android device logs
    Guys, i realy need help! If someone knows how to i can fix this error on 5.6.0f3 please tell me, this problem does not allow me to publish the game in playmarket. I can't downgrade my project to 5.5.1f1 because i use some features that exist only in 5.6.0f3.

    Sorry for my English and thanks in advance!

    Server (Editor Windows x64) log
    Client (Android) log
     

    Attached Files:

  2. DrSpritz

    DrSpritz

    Joined:
    Oct 6, 2013
    Posts:
    29