Log in or register to post comments

(HELP) Facing CRASH while using Vuforia 2.0.31 in Unity 4.1.2

April 19, 2013 - 4:58am #1

====================================================================
Rigidbody null reference issue / crash, when target is lost / found continously repeatedly.
in Vuforia 2.0.31 and Unity 4.1.2   (Whereas in Unity 3.5.6 it works fine)
====================================================================

Description with steps to reproduce:

Hello,

Please download the project source files from the below dropbox link. It contains the project source code files, and two text files in assets folder which explains the issue, steps to reproduce and untiy's editor log of the crash.

https://www.dropbox.com/s/a2j1cik4g8p1c24/ARGame_180413.zip
 

Below is the text copied from the "Read me" file of the project in case if you cannot download that.   
    
>>>    ISSUE:  
--------------------------------------------------------
    This project, if you run, will let you move a ball on a plane, according to you moving your target image.
    But in Unity 4.1.2 it is crashing when the target is lost and visible repeateady quickly quickly.
    Whereas In Unity 3.5.6 is working fine.
    
    ("Repeatedly quickly quickly" means as fast as you can move in and out the image target from the camera view.
        But keep it at that pace that it should alteast be be detectable.
        In just 5-6 times of doing this, will not show you the real error or issue)
   
    
>>>    ISSUE (In details), ITS CAUSE and TEMPORARY SOLUION :-
--------------------------------------------------------
    
    1) While running the game, When the marker (trackerable image) continuesly appears and dis-appears
    in front of the camera then the game crashes in iphone, giving me some Physics (PhyX) error in XCode console.
        Below is the error give by Xcode console:
                0xc472f4:  beq    0xc47310;
                ContactMessage::onContactNotify(NxContactPair&, unsigned int) + 104 at PhysicsManager.cpp:230
    
    2) When I do this same thing in Unity 4.1.2 PRO editor itself, on my mac. Then, It quites the unity program
    itself. And when I checked the Editor log. It displayed 'Null Reference'
    
    3) When I debuged my script Ball.cs by using couple of Debug.Logs, I found that it is giving me 'null refernce'
    due to the current rigidbody object i.e my variable "_thisRigidbody"
    (i.e ball's own rigidbody, that I assign in the awake function)
    
    4) And If I comment all the two lines inside the PauseBallBehaviour() and ResumeBallBehaviour() functions.
    Then this error doesn't happens. Which makes me even more sure that my _thisRigidbody variable is giving null reference.
    
    5) SURPRIZINGLY. Its happens in unity 4.1.2 editor and xcode project build from Unity 4.1.2
    either its pro or basic.
    BUT. This issue does not happens in unity 3.5.6 editor and not even in xcode project build from Unity 3.5.6.
    
    so, does that means UNTIY 4.1.2 is having some issue ?
        or Vuforia SDK 2.0.31 is having some problem with Unity 4.1.2 ??
        or Does I am doing something wrong with rigidbody or something else ???
        
    
>>>    Note:
--------------------------------------------------------
    a) If Xcode project build, is giving you any error regarding QCAR, then manually add the "QCARUnityPlayer.h"
    to your xcode project, from Assets > Plugins > ios > QCARUnityPlayer.h
    
    b) I am using  Unity 4.1.2 + ios Basic license, Xcode 4.6.1, OSX Lion  10.7.5, ipod Touch ios 5.1.1, iphone 3gs ios 6.1.2
            
            
    I am bady before this issue to solve it. But not lucky enough to see some success.
    PLEASE REPLY ME IF YOU FIND ANY GOOD SOLUTION TO IT.  OR ANY SUGGESTION.
    
    
Thank you.

(HELP) Facing CRASH while using Vuforia 2.0.31 in Unity 4.1.2

July 30, 2013 - 5:30am #10

Thankyou so much AlessandroB. I am hoping to create more fun apps with the vuforia AR SDK

Cheers and thanks again. :)

 

(HELP) Facing CRASH while using Vuforia 2.0.31 in Unity 4.1.2

July 30, 2013 - 5:23am #9

Thankyou so much AlessandroB. I am hoping to create more fun apps with the vuforia AR SDK

Cheers and thanks again. :)

(HELP) Facing CRASH while using Vuforia 2.0.31 in Unity 4.1.2

July 30, 2013 - 1:29am #8

Glad to see that you have made such a nice app. Looks really cool!

And glad to have been useful for your project.

 

(HELP) Facing CRASH while using Vuforia 2.0.31 in Unity 4.1.2

July 30, 2013 - 12:23am #7

Hello Friends,

I am very glad that my first Vuforia Augmented Reality Game
i.e Real Maze 3D Augmented Reality has been approved by apple and google play.

Special Thanks to @NalinS and @AlessandroB who had helped me out a serious issue some time back on the game.

And sorry for posting late, i was busy in some client project. But Finally I have it there now.

Friends, please check out my game and give me any feedback, or suggestion for that.
Download links are below:-

REAL MAZE 3D Augmented Reality    - ANDROID version
https://play.google.com/store/apps/details?id=com.mahadevinteractive.realmaze

REAL MAZE 3D Augmented Reality    - IOS version
https://itunes.apple.com/us/app/real-maze-3d-augmented-reality/id641528473?mt=8

Big Thanks to Vuforia and Cheers ;)
- Ashish
 

(HELP) Facing CRASH while using Vuforia 2.0.31 in Unity 4.1.2

April 22, 2013 - 2:42am #6

Sounds great! thanks for sharing your solution (and thanks NalinS)

(HELP) Facing CRASH while using Vuforia 2.0.31 in Unity 4.1.2

April 22, 2013 - 12:54am #5

-------FINALLY CRASH FIXED------

Hi all, if anybody else here facing  the same kind of crash issue in Unity 4.x,

then do just a simple thing. Remove or comment-out the below line from the Default Trackable EvenHandler .CS

// Disable colliders

foreach (Collider component in colliderComponents)

{

   component.enabled = false;

}

 

this FIXED the unity 4.x CRASH issue in my case.

I Will also post my game link here once it is uploaded.

 

Big Thanks to 'NalinS' (Vuforia-AR Moderator)

 

 

-Ashish

 

(HELP) Facing CRASH while using Vuforia 2.0.31 in Unity 4.1.2

April 20, 2013 - 12:59pm #4

Hi, you can follow up with Nalin in that thread, as he already made a deep analysis of the issue.

Thanks.

(HELP) Facing CRASH while using Vuforia 2.0.31 in Unity 4.1.2

April 20, 2013 - 2:32am #3

Hi Alessandro,

I and NalinS (Moderator) are checking the things. But still not got any solid result.

Please once check that post once and if you had delt with similar situation before, please share some info.

https://developer.vuforia.com/forum/issues-and-bugs/crash-target-lost-found-continously-vuforia-sdk-2031-and-unity-412#comment-2025875

thanks

-ashish

(HELP) Facing CRASH while using Vuforia 2.0.31 in Unity 4.1.2

April 19, 2013 - 6:39am #2
Log in or register to post comments