Search Unity

UnityPlayerNativeActivity Failed to receive dispatch signal

Discussion in 'Editor & General Support' started by sunny___, Jun 10, 2013.

  1. sunny___

    sunny___

    Joined:
    Jun 10, 2013
    Posts:
    2
    There is error message keep displayed when I touch the screen of nexus one.
    The error message is:
    E/NativeActivity(10892): channel '41f90ff0 com.abc.abc/com.unity3d.player.UnityPlayerNativeActivity
    (client)' ~ Failed to receive dispatch signal. status=-11

    I have updated Unity from 4.1.2 to 4.1.5. The error message was not appeared in 4.1.2.
    The error message appears in Nexus One (Android 2.3.6) and Galaxy Tab 8.9 (Android 4.0.4), but it is not appearing in Nexus 4 (Android 4.2.2)

    part of my AndroidManifest file on UnityPlayerNativeActivity:
    <activity android:name="com.unity3d.player.UnityPlayerNativeActivity" android:label="@string/app_name"
    android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
    <meta-data android:name="android.app.lib_name" android:value="unity" />
    <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" />
    </activity>

    Is there a solution to fix that? thanks
     
  2. eezSZI

    eezSZI

    Joined:
    Nov 16, 2012
    Posts:
    121
    Seeing the same thing on a Kindle here. Just updated to 4.1.5.
     
  3. CoderBear

    CoderBear

    Joined:
    Feb 27, 2013
    Posts:
    12
    I am also getting that issue. It used to be only during a release build and on a Tab 8.9 on the pause-quit to main menu or end game-quit to main menu. Yet only after the second time consistently. Yet it has transferred to also in Development mode. This was just yesterday I was told about this.
     
  4. CoderBear

    CoderBear

    Joined:
    Feb 27, 2013
    Posts:
    12
  5. CoderBear

    CoderBear

    Joined:
    Feb 27, 2013
    Posts:
    12
    anybody care to address this issue, I reported it to unity. Yet this is stalling the release of the game or at the very least excluding a whole swath of potential users.
     
  6. eezSZI

    eezSZI

    Joined:
    Nov 16, 2012
    Posts:
    121
    Is this breaking anything for you? We are seeing it as well but haven't noticed any negative results in the app. But it's still clearly an issue.
     
  7. bitter

    bitter

    Unity Technologies

    Joined:
    Jan 11, 2012
    Posts:
    530
    Hi, unfortunately there is little we can do to avoid that message in the log. The reason the log gets spammed is because of a workaround for a deadlock in the android input system. Once google has released a fix we can also remove our workaround, but as of JB MR1 the issue is still present.
     
  8. poshaughnessey

    poshaughnessey

    Joined:
    Jul 12, 2012
    Posts:
    45
    Seeing the same thing with Google Glass when using the touch pad. No touches are being delivered as far as i can tell.
     
  9. deathtour

    deathtour

    Joined:
    Apr 16, 2013
    Posts:
    3
    on a Kindle 100 percent reproduction!
    tried Unity 4.1.3, 4.1.5, 4.2. Unity developers seem to have reconciled ((
    on a Unity3D_4.0.1f2 all works
     
    Last edited: Aug 9, 2013
  10. Joe ByDesign

    Joe ByDesign

    Joined:
    Oct 13, 2005
    Posts:
    841
    Seeing this here too. ANY idea on a fix?
     
  11. raj_87

    raj_87

    Joined:
    Apr 27, 2013
    Posts:
    1
    When I'm trying to run even an empty Unity project on Kindle Fire HD 7", I get the same error on tap or swipe.

    E/NativeActivity(11561): channel '41a24ba8 com.unity3d.player/com.unity3d.player.UnityPlayerNativeActivity (client)' ~ Failed to receive dispatch signal. status=-11

    I'm using Unity ver4.2.0f4.

    Can any of the Unity Devs tell us if this is a Unity issue or a device specific issue?
    Is there any other way to fix this error?
     
    Last edited: Aug 19, 2013
  12. riskysalmon

    riskysalmon

    Joined:
    Jun 23, 2013
    Posts:
    3
    I've started getting the same thing on my end in the logcat on a Samsung Galaxy SII, not getting any touch response at all on the device.
    I can't replicate what it was that caused it to happen, its as if it started happening for no reason at all.
     
  13. tumashov

    tumashov

    Joined:
    Apr 27, 2013
    Posts:
    18
    Up!
    Asus TF101 and Unity 4.2.0f4 (4.1.5f1, 4.1.2f1 also...)
    How i can fix it? What version Unity good for production?
     
    Last edited: Aug 31, 2013
  14. atrbx5

    atrbx5

    Joined:
    Oct 3, 2013
    Posts:
    1
    well this bug slowing down "mid end" devices because of bunch of pushed logs, how to fix it or maybe disable logs? i don't know
     
  15. Axelofthekey

    Axelofthekey

    Joined:
    Oct 10, 2013
    Posts:
    2
    Been getting this on a variety of Android devices, preventing me from receiving touch input. It seems to be related to the EZGUI package for me, but I'm not sure.
     
  16. Enzign

    Enzign

    Joined:
    Aug 20, 2010
    Posts:
    169
    It has nothing to do with EZGUI. As soon as you put a finger on the screen you get this message. Seems to be slowing some devices down, but it's hard to tell, since i don't know how to get rid of the msg. With slowing down i mean not registering presses as readily as it should.
     
  17. Axelofthekey

    Axelofthekey

    Joined:
    Oct 10, 2013
    Posts:
    2
    Yeah, I tried working with EZGUI and it wasn't the fix. It prevents me from receiving touch input at all, though.
     
  18. taiji_k0325

    taiji_k0325

    Joined:
    Oct 14, 2013
    Posts:
    1
    I solved this problem. My Unity version is 4.2.

    In AndroidManifest.xml,
    the property "unityplayer.ForwardNativeEventsToDalvik" of UnityPlayerNativeActivity,

    You should change value "false" to "true".
     
  19. Fabian-Haquin

    Fabian-Haquin

    Joined:
    Dec 3, 2012
    Posts:
    231
    Hello, I have the same issue with my Asus Transformer TF101.

    I tested my game on Galaxy S4 and others devices and it run at 60 FPS but on my Asus Transformer TF101 my game is still running with 15-20 FPS.
    When I touch the screen 'Android Debug Monitor' shows me:
    And I tried to set 'unityplayer.ForwardNativeEventsToDalvik' to 'true' but nothing change.
    This only happen on my Transformer TF101...

    Is there any other solution to fixe that ?

    Thanks
     
    Last edited: Oct 20, 2013
  20. BehindTheCode

    BehindTheCode

    Joined:
    Nov 18, 2013
    Posts:
    2
  21. asduffo

    asduffo

    Joined:
    Jun 3, 2013
    Posts:
    13
    Getting a similiar message:

    *[lots of pointless stuff*...com.chartboost.sdk.unity.CBUnityPlayerNativeActivity (client)' Failed to receive dispatch signal. status=-11

    I'm getting this since i updated unity to 4.3 with chartboost interstials.

    EDIT: actually it wasn't a problem of unity: i forgot to renable the test mode from the dashboard XD
     
    Last edited: Nov 20, 2013
  22. asduffo

    asduffo

    Joined:
    Jun 3, 2013
    Posts:
    13
    Sorry for the double post.
    However the problem is persisting and the cause is not the one i wrote above. I contacted chartboost and they told me that this problem is caused by too fast fingers to send. Since is getting pretty annoying and is an unity bug, does anyone know a way to fix it? Any hope for an fix in the next engine update?
     
  23. naveen.pambi

    naveen.pambi

    Joined:
    Jul 22, 2013
    Posts:
    2
    i have the same issue when i tap on the Kindle device i found an error in log

    NativeActivity: /com.unity3d.player.UnityPlayerNativeActivity
    Failed to receive dispatch signal status=-11

    and when i continuously tap, it is crashing and
    showing error
    ActivityManager Reason: keyDispatchingTimedOut
     
  24. Nolex

    Nolex

    Joined:
    Dec 10, 2010
    Posts:
    116
    Hmm, I had the same problem!

    I dont understand your last message. What is the test mode? Please details!

    I tried to build EMPTY project on Unity3d 4.1.5 , 4.2.0, 4.3.1 and Windows 7, 8.1 (x64), and Java 6, 7, but return errors when I tap screen:

    Code (csharp):
    1. 11-06 01:03:02.430: E/NativeActivity(1484): channel '421913f0 com.my.game/com.unity3d.player.UnityPlayerNativeActivity (client)' ~ Failed to receive dispatch signal.  status=-11
    Tested on diffents devices - problem is stays.

    Please help and sorry for my english! )
     
    Last edited: Feb 22, 2014
  25. Jaro

    Jaro

    Joined:
    Jul 26, 2013
    Posts:
    16
    Same problem here on HTC ONE V. Unity 4.3.4f1 Pro Trial. When I hold finger on the screen fps drops by 5.

    EDIT:

    I see in logcat that this error occurs even on splash screen so it's not script problem.
     
    Last edited: Mar 12, 2014
  26. dttngan91

    dttngan91

    Joined:
    Nov 21, 2013
    Posts:
    80
    The same problem with Galaxy S2, S3. Is there any solution for that?
     
  27. MoCoder

    MoCoder

    Joined:
    Dec 4, 2012
    Posts:
    7
    The same problem with Galaxy S2.
     
  28. yuchi

    yuchi

    Joined:
    Mar 27, 2014
    Posts:
    1
    The same problem happens here with Galaxy S2.
     
  29. DjEmix

    DjEmix

    Joined:
    Feb 7, 2013
    Posts:
    11
    Here the problem too! In Sony Xperia Arc S. But in my tablet work good the same project...
    Someone knows what happen?
     
  30. zrongcondihocz

    zrongcondihocz

    Joined:
    Apr 4, 2014
    Posts:
    1
    Easy, You just change "public class UnityPlayerNativeActivity extends NativeActivity" to "public class UnityPlayerNativeActivity extends Activity"
     
    Last edited: Apr 4, 2014
  31. silviobadseed

    silviobadseed

    Joined:
    Nov 28, 2013
    Posts:
    32
    I tried @zrongcondihocz to change from NativeActivity to Activity and so importing the right libraries to do that but it doen's work anyway!
     
  32. tyoc213

    tyoc213

    Joined:
    Nov 14, 2011
    Posts:
    168
    How exactly I do this???

    ANSWER: I did go to temp generated folder and inside in the android part copy the AndroidManifest.xml to plugins/Android of the original project.







    Im having this problem also on a xperia-p Unity 4.3.4f1 on OSX 10.9.2. But the same code is working on a tablet and a phone with 4.1.2.

    $failing android version.png
     
    Last edited: May 12, 2014
  33. Frank Nguyen

    Frank Nguyen

    Joined:
    Mar 3, 2014
    Posts:
    4
    The same problem with Galaxy S2.
     
  34. imtrobin

    imtrobin

    Joined:
    Nov 30, 2009
    Posts:
    1,548
    Getting this error in Unity 4.5 on S2, which is Android 4.0.3 using my own android plugin. On Note 2 (Android 4.3), no error. Same apk.
     
  35. Grhyll

    Grhyll

    Joined:
    Oct 15, 2012
    Posts:
    119
    Same here :/ Since this topic is more than one year old, I'm not sure it will ever be fixed...
     
  36. koki

    koki

    Joined:
    Nov 27, 2009
    Posts:
    43
    I'm getting this too. My game runs very slow in 2.3 Android devices and i get this error all the time in the console. Tried all tips in this thread but none did the trick.
    I've developed lot of games in Unity but never got this error before.
     
  37. HevyDevy83

    HevyDevy83

    Joined:
    Jan 22, 2014
    Posts:
    12
    I have to push this again... the problem is still occuring on many older devices (Nexus 4 with Android 4.1.2, HTC One Desire with Android 2.3.5) and is really slowing down the app. Is there any know fix or workaround for this issue?
     
  38. kreso

    kreso

    Joined:
    Sep 7, 2013
    Posts:
    147
    Getting this error on Kindle with Unity 4.5.4p3
    It does work eventually (takes about 3 seconds to react)
     
  39. RMGK

    RMGK

    Joined:
    Sep 30, 2011
    Posts:
    75
    Any traction on this guys?
     
  40. RMGK

    RMGK

    Joined:
    Sep 30, 2011
    Posts:
    75
    Is this still the case? No fix from Google?
     
  41. RMGK

    RMGK

    Joined:
    Sep 30, 2011
    Posts:
    75
    Are you sure this is not the other way round? Mine was "True" as default
     
  42. kreso

    kreso

    Joined:
    Sep 7, 2013
    Posts:
    147
    I found out that my problem was loading time of level.
    The error did pop up, but it didn't break anything.
    Separate issue was that error popped up because pressing button to load level. I incorrectly assumed error caused the delay, but it was caused by loading level - which I then fixed by adding a loader.

    Good luck!
     
  43. Benjames

    Benjames

    Joined:
    Oct 18, 2013
    Posts:
    3
    Look in the file path "\Unity\Editor\Data\PlaybackEngines\androidplayer" for the original android manifest
     
  44. RMGK

    RMGK

    Joined:
    Sep 30, 2011
    Posts:
    75
    Still getting this on Kindle Fire HD but not on the latest Nexus 7. I have a totally empty project and it happens when I touch the screen (as per all the notes above). unityplayer.ForwardNativeEventsToDalvik=true/false does not fix.
     
  45. siddharth3322

    siddharth3322

    Joined:
    Nov 29, 2013
    Posts:
    1,049
    I am also facing same problem with Unity 4.5.5
    Any solution now exist for this problem?
     
  46. tripknotix

    tripknotix

    Joined:
    Apr 21, 2011
    Posts:
    744
    I thought this was causing a crash since its the last things to display in the log, its not, its something else in the scene, minimal scene works, so now to hunt down the issue.
     
    Last edited: Aug 16, 2015