Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

question of IL2CPP Socket

Discussion in 'iOS and tvOS' started by bigTree, Mar 20, 2015.

  1. bigTree

    bigTree

    Joined:
    Jul 24, 2014
    Posts:
    6
    Hi, my unity project updates to unity4.6.3 from unity4.5.2 to support iOS 64Bit.Now in unity4.6.3, editor state, network project operation is normal, Build to iOS device project multiplayer online battle mode network is failed. But the project is no problem in unity4.5.2. Note: the networking part of the project using WWW classand UDP of socket communication mode, now project card in networking problem here, hope to get the support of Unity technology, thank you very much!
     
  2. bigTree

    bigTree

    Joined:
    Jul 24, 2014
    Posts:
    6
    The networking part of the project using WWW class and UDP of socket communication mode, now the project stopped in networking issue here. Just try toput the project to upgrade to unity5.0, but still have the same problems, I hope to get the support of Unity technology! Look forward to your help! Thanks a million.
     
  3. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,779
    We do have a few bugs related to sockets and networking with the IL2CPP scripting backend. You may want to try the latest 4.6.3 or 5.0.0 patch releases to confirm that we have not already corrected this problem.

    Also, you can still build with the Mono scripting backend to test things out, so it is good to verify that things work with the latest patch releases and the Mono scripting backend. If so, this may confirm that you are seeing a problem specific to IL2CPP. At that point, your best course of action is to submit a bug with a project to reproduce the problem. Then we can try to correct it. Thanks.
     
  4. zackivano

    zackivano

    Joined:
    Mar 20, 2012
    Posts:
    11
    I confirm the problem with the 4.6.3p4 release. I'm using Tnet and I encounter the same behaviour. With mono all is working fine, with IL2CPP it will crash when trying opening a socket. My colleague has uploaded our working project and filled a bug report with instruction to reproduce the problem (simply try to start a server and it will crash...). Please take a look on the socket and networking part of IL2CPP, our client are pushing us to release for iOS and we cannot!
     
  5. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,779
    @zackivano

    Do you know the case number for the reported bug? Thanks.
     
  6. zackivano

    zackivano

    Joined:
    Mar 20, 2012
    Posts:
    11
    Case 686082, thanks.
     
  7. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,779
    @zackivano

    Thanks, it looks like our QA team is processing the bug report now.
     
  8. aastha

    aastha

    Joined:
    Mar 18, 2015
    Posts:
    4
    Hi,
    I am using PUN in my project with unity PRO 4.6.3p4. In editor everything is working fine but when I build my project the build crashes on start of the project with the following error : "game`il2cpp:: os::SocketImpl::GetLastError() const at SocketImpl.cpp:556:"
    Can anyone please help me with the issue?
     
  9. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,779
    @aastha

    After looking at the source code at that location, I'm a bit surprised the problem occurs there. The GetLastError function returns an integer. If possible, can you submit a bug and include your project? That might help us track down the cause of the problem.
     
  10. aastha

    aastha

    Joined:
    Mar 18, 2015
    Posts:
    4
    @JoshPeterson
    This problem is already resolved in unity 4.6.4p1 patch release. I upgraded my unity to that version and it is working fine.
     
  11. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,779
    @aastha

    I'm glad to hear that. Thanks!