Search Issue Tracker

Fixed in Unity 2018.2

Votes

30

Found in

5.4.3p2

Issue ID

878407

Regression

No

[Android] PhysX crash when calling Physics.OverlapBoxNonAlloc or OverlapBox

Mobile

-

-

Priority: 3Not yet prioritized for a release

-

Severity: 1Crash, freeze, data loss, work stops

How to reproduce:
1. Open the attached project
2. Build and run on Android device
3. Play the game, use skills by pressing any of the 4 round buttons at the bottom of the screen
Result: after few minutes (till reaching level 4) application crashes

Note: User calls Physics.OverlapBoxNonAlloc ( UnityEngine.Physics.OverlapBox also lead to crash) in PhysicsSystem.cs. Application doesn't crash if that part in the script is commented

Reproducible: 5.4.3p2, 5.4.4p2, 5.5.1p3
Haven't been able to test on 5.3.7p4 because project has too many scripting errors.
Haven't been able to reproduce on 5.6.0b7 because after project is loaded I get an error "APIUpdater encountered some issues and was not able to finish.", which leads to unsuccessful building with an error "Error building Player because scripts have compile errors in the editor"

DUT (reproducible):
LG G5 [LG-H850], Qualcomm Snapdragon 820, Adreno 530, OS 6.0.1
Also tested on iPhone 6+ (iOS 10.1), application doesn't work there

Comments (12)

  1. Cde44805abc7629bec4db77ee8a92597?d=mm

    dmytro-hreshchik

    Apr 02, 2018 13:38

    I have this crash with OverlapCapsuleNonAlloc and OverlapBoxNonAlloc in version 2017.3.0f3.

  2. 162782902a85928256d1d1e7b617ab78?d=mm

    roberto_sc

    Feb 28, 2018 23:02

    Have this crash and also with OverlapCapsule in 2017.2.0.

  3. 88280ce878af552d033172956d82c677?d=mm

    Dvorgaz

    Dec 21, 2017 16:54

    I have this crash with OverlapCapsule in version 2017.3.0f3.

  4. 4ab7b4fc7963f46d7d0313c40f90b341?d=mm

    daxiongmao

    Oct 13, 2017 07:11

    Seeing this with capsule check on both versions of 2017

  5. B6d5e6943dcbc2c367eb46ca382bc8cf?d=mm

    forrestthewoods

    Aug 17, 2017 18:25

    Update: this bug has not been fixed in 2017.1.0f3

  6. B6d5e6943dcbc2c367eb46ca382bc8cf?d=mm

    forrestthewoods

    Aug 10, 2017 17:00

    Does anyone know if this has been fixed in Unity 2017?

  7. Be04a49e2ccb7e63fd4be2d80907e354?d=mm

    jknight-nc

    Aug 02, 2017 16:45

    I used Bunzaga's code to reimplement the OverlapBox api. More info can be found here:

    http://www.00jknight.com/blog/physics-overlapbox-workaround

  8. 3b0cd7ba9bd3e86d4d73d0af9dde472f?d=mm

    Whipexx

    Jul 05, 2017 16:57

    Still occurring on unity 5.6.2; although it only happens consistently when the collider that gets hit is a trigger collider.

  9. 5031625094223b8cf90c3ad824044158?d=mm

    Pin-Bender

    Jun 29, 2017 18:12

    Why is this priority 5? It's a reproducible crash bug for a critical API on a common platform. (We are also encountering this issue on 5.6.1p4, btw.)

  10. 02e297d8c9ef6a68f22ed1aafe658ecc?d=mm

    nindim

    Jun 16, 2017 16:16

    I'm having the same issue as this with Physics.OverlapCapsuleNonAlloc and Unity 5.6.1p3, random crashes on Android within a few minutes every playthrough.

    Some conversation about this bug here:

    https://forum.unity3d.com/threads/solved-unfixable-bug-random-crashes-within-overlapbox-on-android.410868/

    It's marked as solved but only because the OP wrote his own collision detection system :/

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.