Author Topic: Crash occurs in kitkat (under opengl 2.0)  (Read 37604 times)

tayl0r

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: Crash occurs in kitkat (under opengl 2.0)
« Reply #30 on: June 27, 2014, 10:35:37 AM »
The Unity 4.5 release notes say this:

* Fixed crash on Android 4.4.2 when running on certain Adreno GPUs.

And I'm assuming that is referring to this issue. Can anyone confirm? It seems fixed to me but a guy on the tk2d forums is saying its not.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,154
  • Toronto, Canada
    • View Profile
Re: Crash occurs in kitkat (under opengl 2.0)
« Reply #31 on: June 27, 2014, 12:26:17 PM »
NGUI "fixed" it a few months ago (with a work-around), so it's unlikely that you will run into this even prior to 4.5, assuming you're using the latest NGUI version.

Russel

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 23
    • View Profile
Re: Crash occurs in kitkat (under opengl 2.0)
« Reply #32 on: July 07, 2014, 06:34:42 AM »
The bug is present again in Android 4.4.4  :(.

These devices are currently affected:
- Sony Xperia Z1
- Sony Xperia Z1 Compact
- Sony Xperia Z Ultra

http://www.androidcentral.com/sony-android-444-xperia-z1-compact

We use Unity 4.5.1p3 and NGUI 3.6.5.

Russel

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 23
    • View Profile
Re: Crash occurs in kitkat (under opengl 2.0)
« Reply #33 on: July 08, 2014, 02:55:19 AM »
We have a new (libc.memcpy) Bug Report in our Google Play Developer Console:

java.lang.Error: FATAL EXCEPTION [UnityMain]
Unity version : 4.5.1p3
Device model : HUAWEI HUAWEI G6-U10
Device fingerprint: Huawei/G6-U10/hwG6-U10:4.3/HuaweiG6-U10/C900B116:user/ota-rel-keys,release-keys

Caused by: java.lang.Error: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 71d35000
Build fingerprint: 'Huawei/G6-U10/hwG6-U10:4.3/HuaweiG6-U10/C900B116:user/ota-rel-keys,release-keys'
Revision: '0'
pid: 23425, tid: 23460, name: UnityMain >>> de.bla.bla <<<
r0 71d35000 r1 65bcc050 r2 00000780 r3 c28c5a12
r4 00000780 r5 60c45c60 r6 71d35000 r7 65bcc010
r8 00000780 r9 00000001 sl 65bcc280 fp 00000001
ip 00000013 sp 60c45bd8 lr 00000280 pc 40064250 cpsr 2f303155

at libc.memcpy(memcpy:272)
at Unknown.0000077c(Unknown Source)

These devices are currently affected:
- Sony Xperia M2 with Android 4.3
- Huawei Ascend G6 with Android 4.3
« Last Edit: July 09, 2014, 04:22:40 AM by Russel »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,154
  • Toronto, Canada
    • View Profile
Re: Crash occurs in kitkat (under opengl 2.0)
« Reply #34 on: July 08, 2014, 12:10:30 PM »
You should submit that to Unity, Russel.

gdeglin

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 18
    • View Profile
Re: Crash occurs in kitkat (under opengl 2.0)
« Reply #35 on: July 09, 2014, 02:09:04 AM »
Also experiencing this problem. Seems like we'll have to delay the release of our game because of it.

Someone mentioned that NGUI 3.4.9 doesn't have this problem, but I would hate to have to downgrade so far back.

@Russel Did you submit this to Unity? Could you post the bug number if you have one.

Russel

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 23
    • View Profile
Re: Crash occurs in kitkat (under opengl 2.0)
« Reply #36 on: July 09, 2014, 04:10:28 AM »
Here is the Unity Forum Link:
http://forum.unity3d.com/threads/crash-occurs-in-kitkat-under-opengl-2-0.232643/

How do I get a bug number?

chowon

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Re: Crash occurs in kitkat (under opengl 2.0)
« Reply #37 on: July 09, 2014, 04:13:21 AM »
I had the same problem. No problem in OpenGL ES 3.0(in KitKat). OpenGL ES 2.0 only problem(in KitKat).
However, there are many devices that use OpenGL ES 2.0. That's why I can not build OpenGL ES 3.0.
This is a very serious issue that our development team.
« Last Edit: July 09, 2014, 04:19:16 AM by chowon »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,154
  • Toronto, Canada
    • View Profile
Re: Crash occurs in kitkat (under opengl 2.0)
« Reply #38 on: July 09, 2014, 05:13:33 PM »
Help -> Report a Bug

gdeglin

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 18
    • View Profile
Re: Crash occurs in kitkat (under opengl 2.0)
« Reply #39 on: July 09, 2014, 08:27:02 PM »
Just reported it myself. Case 618714 http://fogbugz.unity3d.com/default.asp?618714_cqbtk45pudo6t8if

My attempts to put together a test case have failed so far, so I pointed them at this thread and a few others threads about this issue I found on the Unity forum. If you don't mind submitting your project to Unity, please use the report a bug feature too and reference Case 618714.

gdeglin

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 18
    • View Profile
Re: Crash occurs in kitkat (under opengl 2.0)
« Reply #40 on: July 09, 2014, 09:45:06 PM »
Hey all. We might have a fix.

In UIDrawCall change:
  1. #if !UNITY_4_3 || !UNITY_ANDROID
  2.         // If the number of vertices in the buffer is less than half of the full buffer, trim it
  3.         if (!trim && (verts.size << 1) < verts.buffer.Length) trim = true;
  4. #endif
  5.  
to
  1. #if !UNITY_ANDROID
  2.         // If the number of vertices in the buffer is less than half of the full buffer, trim it
  3.         if (!trim && (verts.size << 1) < verts.buffer.Length) trim = true;
  4. #endif
  5.  

Let me know if this works for you!


Russel

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 23
    • View Profile
Re: Crash occurs in kitkat (under opengl 2.0)
« Reply #41 on: July 10, 2014, 04:11:52 AM »
@ArenMook Thank you!

@gdeglin We don't have a test device where the issue occurs. Thanks for your help!


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,154
  • Toronto, Canada
    • View Profile
Re: Crash occurs in kitkat (under opengl 2.0)
« Reply #42 on: July 10, 2014, 09:01:20 PM »
This was supposedly fixed in Unity 4.5 according to version notes, so if that's not the case then Unity should certainly be made aware of the problem. The #if section @gdeglin mentioned was a hack around the problem, and it's not used in 4.5 as Unity said they fixed it.

gdeglin

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 18
    • View Profile
Re: Crash occurs in kitkat (under opengl 2.0)
« Reply #43 on: July 10, 2014, 09:08:30 PM »
Yep, that's the conclusion I reached too. Explains why the error went away and then came back though -- it was due to people upgrading to Unity 4.5.

We've been testing our game quite a bit and it seems stable now after the change. Hopefully someone else can test and confirm if this workaround fixes things through.

No response to my Unity bug ticket yet.

Skjalg

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: Crash occurs in kitkat (under opengl 2.0)
« Reply #44 on: August 26, 2014, 06:32:39 AM »
Any update from unity on this issue? We're experiencing crashes on xperia devices too. (using unity 4.5.2)