Log in or register to post comments

Obb2d::getrotation is crashing

July 31, 2014 - 7:44am #1
Hi All,
 
We have a big isue with our Space Needle app, where we're receiving big number of crash reports related to QCAR::Obb2D::getRotation() const from crash reporting tools and we weren't able to exactly reproduce the issue in a way we would be able to get the crash everytime we try.
 
Crashlog from Crashlytics crash reporting tool is accessible at http://crashes.to/s/88b4af19876
 
Implementation overview:
  • We don't use Unity's exported Xcode project as a final app (will use UXP shortcut). We have a native iOS app Xcode project (will use NXP shortcut) and Unity is imported as a part of it.
  • Required resources are extracted from UXP and imported to NXP
  • UXP Objective c .h/.m/.mm files are imported as a part of NXP
  • We are using NXP app delegate to start the app as usual. All UIApplicationDelegate messages are forwarded from NXP app delegate to UXP delegate UnityAppController
  • When Unity part of the app is started, it automatically set app main key window. We override this by bringing NXP app window back to front and key window and therefore effectively hiding Unity window until we need it
  • The scene has 7 image markers, where we use extended tracking on 4 of them
  • Project includes two scenes, loader and runtime, just for Android and OBB files, otherwise it would not be there - Loader is empty and is loading runtime
  • All scripts used in the project are from Vuforia, with no changes nor modifications. 
  • Rotation seems to be an internal part of Vuforia and we can’t change that
 
We’d be grateful for your view or any advice on this issue. 
 
Many thanks in advance,
 
Jakub

Obb2d::getrotation is crashing

September 4, 2014 - 10:00am #11

Hi,

Whenever the application is sent to the background or paused on any way we should stop the camera and the trackers. You can check on the sample code onPause and onResume methods. We are calling resumeAR() and pauseAR() which are stopping/starting the camera and the trackers. This could be the reason of the crash (if the camera and trackers are not being stopped upon pause). Note that we call in turn doStopTrackers() and doStartTrackers() which is implemented in the activity class.

Obb2d::getrotation is crashing

September 3, 2014 - 1:15am #10

Thanks pjacobs, will try that - i barely remember whether was a certain reason for the tracker to run. 

Jakub

Obb2d::getrotation is crashing

September 3, 2014 - 12:33am #9

I upgraded to 3.0.9, and it was still crashing, but what I determined is if the app enters the background while the tracker is running, the crash occurs, so the simple solution is to just stop the tracker when entering the background.  Obviously there is no need for it to run while the app is in the background.

Obb2d::getrotation is crashing

August 12, 2014 - 4:43pm #8

For what it's worth, one other piece of information that I can offer is that the app crashes while in the background while the tracker is running.  Will update to the latest version for the next app submission to see if the crash goes away.

Obb2d::getrotation is crashing

August 11, 2014 - 4:18pm #7

Unfortunately, I cannot provide steps to reproduce it, as it is happening out in the field, and I have not reproduced it myself.  I will release the app with the latest version of Vuforia and see if it still crashes.

Obb2d::getrotation is crashing

August 11, 2014 - 10:00am #6

Hi,

We would need the steps to reproduce this for us to solve it. Have you tried with a recent version?

Obb2d::getrotation is crashing

August 9, 2014 - 9:39pm #5

I too have just noticed this crash, although I am not using Unity.  I'm running a somewhat old version of Vuforia now, 2.6.8.  Here is a link to the crash report.  As I have just noticed it, I do not have a reliable way to reproduce it, but it may be a similiar issue to the one discovered in the Space Needle app.

http://crashes.to/s/674a48325ab

 

Obb2d::getrotation is crashing

August 6, 2014 - 9:20am #4

Hi, we need to know the steps to reproduce the issue for us to find a solution. Is this happening only after you rotate between portrait and landscape? Are you able to reproduce this in one of the sample applications? Are you using only image targets or are you using any other tracker? If you could help us reproducing this issue it would be very useful.

Obb2d::getrotation is crashing

August 4, 2014 - 10:15am #3

Hi, we're using 4.5.2f1 and Vuforia 3.0.6. It all goes with camera rotation as perthe Crashlytics report below but we were not able to reproduce the bug in a way to say "OK, those are the steps to crash it" unfortunately. Sometimes when the image target has been loaded, you go to your home screen on the iPhone, turn on "paused" Vuforia, turn on the rotation etc... it seems bit random to be honest, so we were thinking of actually disabling the landscape mode in Unity3D, but this would be the latest option.. 

Thanks,

Jakub

Obb2d::getrotation is crashing

July 31, 2014 - 11:17am #2

Hi,

We would need more information. Which version of the sdk and unity are you using? Are you able to reproduce it in one of the sample apps? Could you provide the steps to reproduce this? 

Log in or register to post comments