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

Unity 4.6 Beta RC3 - Blackscreen on Android 4.2.2

Discussion in 'UGUI & TextMesh Pro' started by Droidspirit, Dec 2, 2014.

  1. Droidspirit

    Droidspirit

    Joined:
    Aug 16, 2014
    Posts:
    43
    Hello,

    a user reported an blackscreen on start of my game. The error occurs on a Samsung Galaxy Tab 3 (GT-P5210) with Android 4.2.2 stock rom. But i cannot reproduce it on emulator (genymotion).

    An another game with the same player-settings, but compiled with Unity 4.6 RC1, works fine on the galaxy tab.

    My PlayerSettings:

    Resolution and Presentation
    Use 32-bit Display Buffer = true
    Use 24-bit Display Buffer = true
    Show Loading Indicator = Dont´t Show

    Configuration
    Graphics Level (OpenGL 3.0, 2.0) = Auto
    Device Filter = FAT (ARMv 7+x 86)
    Submit HW Statistics = true

    Optimization
    Api Compatibility Level = .NET 2.0 Subset
    Enable Internal Profilder = false
    Optimize Mesh Data = false

    Publishing Settings
    Split Application Binary = false

    Does anyone have an idea?

    Best regards
     
  2. Ramsdal

    Ramsdal

    Joined:
    Oct 18, 2013
    Posts:
    251
    Well if you cannot reproduce then testing might be a bit difficult ;) but I previously had some problems as well, might be entirely unrelated but try setting Graphics Level to force OpenGL ES 2.0 and see if that helps?

    Edit: might not be a solution, but might narrow down the problem!
     
  3. Droidspirit

    Droidspirit

    Joined:
    Aug 16, 2014
    Posts:
    43
    The user can test it for me ;-)
    ...i will send him an apk with OpenGL ES 2 and report again.
     
  4. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    why not upgrade to final version.
     
  5. Droidspirit

    Droidspirit

    Joined:
    Aug 16, 2014
    Posts:
    43
    MrEquire, thank you for the hint. I have not seen that the final version was released.
     
  6. Droidspirit

    Droidspirit

    Joined:
    Aug 16, 2014
    Posts:
    43
    Hello,

    i compiled the game with the final release 4.6 and sent it to the user.

    1. Apk with OpenGL 3.0
    2. Apk with OpenGL 2.0

    But both apks occurs an black screen on start

    Any idea?

    ...or does anyone have a tablet with Android 4.2.2 and would try run the game wether the black screen occurs too?

    Here is the game:
    https://play.google.com/store/apps/details?id=de.chickenpou
     
    Last edited: Dec 2, 2014
  7. Ramsdal

    Ramsdal

    Joined:
    Oct 18, 2013
    Posts:
    251
    Hi, I just tried on my phone (do not have any tablet) and it starts up fine here. As expected you might say since it is not a tablet. However though there is no black screen at startup, it does tend to crash after some time. I reported the crash so maybe you can see something from it :)
     
  8. Droidspirit

    Droidspirit

    Joined:
    Aug 16, 2014
    Posts:
    43
    Hi Ramsdal,

    thank you. Here is your crash report :)

    Code (csharp):
    1.  
    2. java.lang.Error: FATAL EXCEPTION [UnityMain]
    3. Unity version : 4.6.0f3
    4. Device model : HTC HTC One_M8
    5. Device fingerprint: htc/htc_europe/htc_m8:4.4.4/KTU84P/389838.9:user/release-keys
    6.  
    7. Caused by: java.lang.Error: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000005
    8. Build fingerprint: 'htc/htc_europe/htc_m8:4.4.4/KTU84P/389838.9:user/release-keys'
    9. Revision: '0'
    10. pid: 12672, tid: 12693, name: UnityMain >>> de.chickenpou <<<
    11. r0 00000001 r1 7c9d418c r2 00000001 r3 00003195
    12. r4 00000001 r5 7c9d418c r6 7c9d41a4 r7 00000001
    13. r8 00000000 r9 ffffffff sl 7a1c2018 fp 00000000
    14. ip 00000001 sp 7a1c1f98 lr 798741c4 pc 798a01a4 cpsr 33383938
    15.  
    16. at libunity.004ce1a4(Native Method)
    17. at libunity.004a21c0(Native Method)
    18. at libunity.0047fff4(Native Method)
    19. at libunity.0047fecc(Native Method)
    20. at libunity.000c2664(Native Method)
    21. at libunity.000c2b08(Native Method)
    22. at libunity.000c2bcc(Native Method)
    23. at libunity.0042d42c(Native Method)
    24. at Unknown.00003aa0(Unknown Source)
    25. at GameObject.SetActive(Native Method)
    26. at <WerfeItem>c__Iterator3.MoveNext(<0x00064>:100)
    27. at <Module>.runtime_invoke_bool__this__(Native Method)
    28. at MonoBehaviour.StartCoroutine_Auto(Native Method)
    29. at MonoBehaviour.StartCoroutine(<0x00024>:36)
    30. at <NaechsterWurf>c__Iterator2.MoveNext(<0x000a3>:163)
    31. at <Module>.runtime_invoke_bool__this__(Native Method)
    32. at libmono.00023b17(Native Method)
    33. at libmono.mono_runtime_invoke(mono_runtime_invoke:144)
    34. at libunity.00216d20(Native Method)
    35. at libunity.002cfd38(Native Method)
    36. at libunity.002cfd0c(Native Method)
    37. at libunity.002cfcc0(Native Method)
    38. at libunity.00200f48(Native Method)
    39. at libunity.00200ed4(Native Method)
    40. at libunity.001e7140(Native Method)
    41. at libunity.0029fdac(Native Method)
    42. at libunity.003c8a50(Native Method)
    43. at libunity.003d1e38(Native Method)
    44. at libdvm.dvmPlatformInvoke(dvmPlatformInvoke:112)
    45. at libdvm.dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)(dvmCallJNIMethod:428)
    46. at libdvm.00029f60(Native Method)
    47. at libdvm.dvmMterpStd(Thread*)(dvmMterpStd:76)
    48.  
    Hmm, you use kitkat. I´m little bit confused :)
    I think its a general problem with the ugui:

    http://forum.unity3d.com/threads/unity-4-6-and-lollipop-ugui-playerprefs-error.283492/
     
  9. SEPasGrave

    SEPasGrave

    Joined:
    Dec 3, 2014
    Posts:
    3
    Hi,
    I've got the same issues with one of my users.
    The error occurs on a Samsung Galaxy Tab 3 (GT-P5210) with Android 4.4.2 stock rom.
    I was working on unity 4.5 but i did the update ( and some modifications ) and i didn"t work anymore.
    So i reinstalled unity 4.5 and do a compilation.
    I wait for the answer of the user and tell you if it's working.
     
    Droidspirit likes this.
  10. SEPasGrave

    SEPasGrave

    Joined:
    Dec 3, 2014
    Posts:
    3
    it's working with unity 4.5 \o/
    Si i hope that if i publish the version compile with unity 4.5 won't break the game on other android version.
     
    Droidspirit likes this.
  11. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Maybe we should make thread on Android section on forum, because maybe not UI team issue.
    We need Unity developer to see this and post bug report
     
  12. rakkarage

    rakkarage

    Joined:
    Feb 3, 2014
    Posts:
    683
    Last edited: Dec 8, 2014
  13. NateJC

    NateJC

    Joined:
    Apr 10, 2012
    Posts:
    58
    I have Unity 4.5.4f1 installed and Unity 4.60f3. I have tested the same project files on a Motorola Droid Razr HD and a Samsung Galaxy Tab 3 in both Unity versions. The black screen occurs every time in 4.6 on both devices, but never occurs on 4.5.4. This issue is most definitely a Unity issue and is a massive concern for me as my client delivery is tomorrow... :(
     
  14. rakkarage

    rakkarage

    Joined:
    Feb 3, 2014
    Posts:
    683
    try 4.6p1 maybe... the bug i mentioned was fixed there
     
  15. NateJC

    NateJC

    Joined:
    Apr 10, 2012
    Posts:
    58
    4.6p1? The version I have installed (4.6.0f3) is the latest version I get when downloading from the Unity website. Is there a different place to download version 4.6p1 from?
     
  16. rakkarage

    rakkarage

    Joined:
    Feb 3, 2014
    Posts:
    683
  17. NateJC

    NateJC

    Joined:
    Apr 10, 2012
    Posts:
    58