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. Dismiss Notice

Profiling with Instruments in simulator

Discussion in 'iOS and tvOS' started by stopiccot, Sep 3, 2016.

  1. stopiccot

    stopiccot

    Joined:
    May 2, 2013
    Posts:
    26
    Exported Simulator SDK project to make some measurements in simulator.
    App crashes upon start with such crash log:

    Code (csharp):
    1. Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    2. 0   libsystem_c.dylib                 0x000000010d839f92 strlen + 18
    3. 1   libsystem_c.dylib                 0x000000010d87fc14 __vfprintf + 5713
    4. 2   libsystem_c.dylib                 0x000000010d8a7745 __v2printf + 609
    5. 3   libsystem_c.dylib                 0x000000010d8a79d7 __xvprintf + 538
    6. 4   libsystem_c.dylib                 0x000000010d87e5ae vfprintf + 89
    7. 5   com.Company.ProductName           0x00000001062d33bd printf_consolev(LogType, char const*, __va_list_tag*) + 122 (LogAssert.cpp:753)
    8. 6   com.Company.ProductName           0x00000001062d3497 printf_console + 159 (LogAssert.cpp:826)
    9. 7   com.Company.ProductName           0x000000010625d96d PlayerConnection::InitializeListenSocket(ServerSocket&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) + 51 (PlayerConnection.cpp:234)
    10. 8   com.Company.ProductName           0x000000010625d525 PlayerConnection::CreateListenSocket() + 69 (PlayerConnection.cpp:226)
    11. 9   com.Company.ProductName           0x000000010625d002 PlayerConnection::PlayerConnection(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned short, bool) + 480 (PlayerConnection.cpp:112)
    12. 10  com.Company.ProductName           0x000000010625da71 PlayerConnection::Initialize(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) + 205 (PlayerConnection.cpp:315)
    13. 11  com.Company.ProductName           0x000000010620035e InitializeEngineNoGraphics() + 46 (SaveAndLoadHelper.cpp:186)
    14. 12  com.Company.ProductName           0x00000001061eaa7d PlayerInitEngineNoGraphics(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 55 (Player.cpp:409)
    15. 13  com.Company.ProductName           0x0000000106686a32 UnityInitApplicationNoGraphics + 284 (LibEntryPoint.mm:189)
    16. 14  com.Company.ProductName           0x0000000105c6fd6a -[UnityAppController application:didFinishLaunchingWithOptions:] + 370 (UnityAppController.mm:234)
    17. 15  com.apple.UIKit                   0x000000010adcd9ac -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 272
    18. 16  com.apple.UIKit                   0x000000010adcec0d -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3415
    19. 17  com.apple.UIKit                   0x000000010add5568 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1769
    20. 18  com.apple.UIKit                   0x000000010add2714 -[UIApplication workspaceDidEndTransaction:] + 188
    21. 19  com.apple.FrontBoardServices     0x000000010eb6c8c8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
    22. 20  com.apple.FrontBoardServices     0x000000010eb6c741 -[FBSSerialQueue _performNext] + 178
    23. 21  com.apple.FrontBoardServices     0x000000010eb6caca -[FBSSerialQueue _performNextFromRunLoopSource] + 45
    24. 22  com.apple.CoreFoundation         0x000000010c9a5301 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    25. 23  com.apple.CoreFoundation         0x000000010c99b22c __CFRunLoopDoSources0 + 556
    26. 24  com.apple.CoreFoundation         0x000000010c99a6e3 __CFRunLoopRun + 867
    27. 25  com.apple.CoreFoundation         0x000000010c99a0f8 CFRunLoopRunSpecific + 488
    28. 26  com.apple.UIKit                   0x000000010add1f21 -[UIApplication _run] + 402
    29. 27  com.apple.UIKit                   0x000000010add6f09 UIApplicationMain + 171
    30. 28  com.Company.ProductName           0x0000000105c5ac0d main + 141 (main.mm:32)
    31. 29  libdyld.dylib                     0x000000010d7f092d start + 1
     
  2. stopiccot

    stopiccot

    Joined:
    May 2, 2013
    Posts:
    26
    Event if it's some kind of Apple bug it's better to start with UnityEngine.Diagnostics.PlayerConnection.connected set to false than just crash.
     
  3. povilas

    povilas

    Unity Technologies

    Joined:
    Jan 28, 2014
    Posts:
    427
    Could you please submit a bug report with reproduction Unity project attached? Please post the case number here. Thanks!