Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

BB10 Multithreading Issues

Discussion in 'BlackBerry' started by Extrawurst, Jul 28, 2013.

  1. Extrawurst

    Extrawurst

    Joined:
    May 22, 2013
    Posts:
    43
    Does anyone successfully do multithreading on a BB10 device ?
    I have my AI calculations in a separat Thread on every other platform without problems. On BB10 it crashes as soon as the GC has to kick in on the other thread. Problem is, this only happens on the device. The repro code is totally simple, just start a thread and append to a List<> in there for a couple of seconds...

    Last log messages on the device befor the crash:

    Collecting from unknown thread.
    Stacktrace:

    at (wrapper managed-to-native) object.__icall_wrapper_mono_array_new_specific (intptr,int) <0xffffffff>
    at System.Array.Resize<int> (int[],int,int) <0x00078>
    at System.Array.Resize<int> (int[],int) <0x00047>
    at System.Collections.Generic.List`1<int>.set_Capacity (int) <0x0003b>
    at System.Collections.Generic.List`1<int>.GrowIfNeeded (int) <0x00057>
    at System.Collections.Generic.List`1<int>.Add (int) <0x00037>
    at crash.ThreadFun () <0x0005f>
    at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0x00073>

    See the Official Bug report here:
    https://fogbugz.unity3d.com/default.asp?553153_446dfsrhtb5u9pig
     
  2. TuesdayNinja

    TuesdayNinja

    Unity Technologies

    Joined:
    Apr 23, 2013
    Posts:
    17
    Mr. Wuerst -

    We have reproduced the issue and our lead BlackBerry developer is currently plugging away at it. We'll post our findings and any resolution as soon as we've found a conclusive answer.


    Thanks for your patience,

    Adam D.
    Multiclassed Test Engineer/Harbinger of Pizza
    Unity Technologies
     
  3. Extrawurst

    Extrawurst

    Joined:
    May 22, 2013
    Posts:
    43
    Any news about this one? I get horrible performance on bb10 because of this one :(
     
  4. AlexThibodeau

    AlexThibodeau

    Unity Technologies

    Joined:
    Jul 23, 2013
    Posts:
    309
    No news yet unfortunately. We're still attempting to narrow down the root cause of the issue.
     
  5. VolureDarkAngel

    VolureDarkAngel

    Joined:
    Jun 27, 2013
    Posts:
    10
    I appear to be getting the same issue.

    is there any resolution in the last three weeks ??



    Stacktrace:

    at (wrapper managed-to-native) System.Threading.Monitor.Enter (object) <IL 0x00021, 0xffffffff>
    at Mono.Security.Protocol.Tls.SslStreamBase/InternalAsyncResult.SetComplete (System.Exception,int) <IL 0x0000d, 0x00088>
    at Mono.Security.Protocol.Tls.SslStreamBase/InternalAsyncResult.SetComplete () <IL 0x00003, 0x00053>
    at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (System.IAsyncResult) <IL 0x000a1, 0x0049f>
    at (wrapper runtime-invoke) object.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <IL 0x0001e, 0x0014f>
     
  6. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    Was there ever a solution to this? I'm getting an intermittent crash from the GC on another thread issue.
     
  7. Extrawurst

    Extrawurst

    Joined:
    May 22, 2013
    Posts:
    43
  8. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    Doh, well I fixed my issue by carefully placing GC.Collect() in the right places and pooling the objects passed to the other thread...at least it seems to be fixed time will tell!! Good luck with yours!
     
  9. TuesdayNinja

    TuesdayNinja

    Unity Technologies

    Joined:
    Apr 23, 2013
    Posts:
    17
    Mr. Wurst -

    This issue is just more complex than most bugs. We don't put anything in the bug reports unless it's absolutely pertinent to the issue, that way we keep the report detailed but clean. I can assure you it is something we're giving attention to.
     
  10. AlexThibodeau

    AlexThibodeau

    Unity Technologies

    Joined:
    Jul 23, 2013
    Posts:
    309
    Update for everyone. A fix for this problem has been released with Unity 4.3.1. Feel free to give it a spin!