Asked — Edited
Resolved Resolved by DJ Sures!

Crashing While Using Ar Drone (1.0) Camera In ARC

Hey. Thanks for a great program, but i need some help.

I can control my AR DRONE 1.0 from the ARC. BUT, when i add camera controller component in the program it takes about 15-30 seconds, then the program crashes with the following error reports:

OS: Windows 8 64bit


- System 

  - Provider 

   [ Name]  Application Error 
 
  - EventID 1000 

   [ Qualifiers]  0 
 
   Level 2 
 
   Task 100 
 
   Keywords 0x80000000000000 
 
  - TimeCreated 

   [ SystemTime]  2014-11-24T20:14:22.000000000Z 
 
   EventRecordID 15106 
 
   Channel Application 
 
   Computer Zoulburner 
 
   Security 
 

- EventData 

   ARC.exe 
   2014.11.18.0 
   546b9f48 
   gdiplus.dll 
   6.3.9600.17415 
   54503bef 
   c0000005 
   000e9d85 
   1bd0 
   01d00822b25a65f7 
   C:\Program Files (x86)\EZ-Robot Inc\EZ-Builder\EZ-Builder.exe 
   C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.9600.17415_none_dad8722c5bcc2d8f\gdiplus.dll 
   79e47332-7416-11e4-8312-50e549c467c1 

This event is not displayed correctly because the underlying XML is not well formed. Below is the raw text of the event.

1026200x8000000000000015105ApplicationZoulburnerApplication: ARC.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.AccessViolationException Stack: at System.Drawing.SafeNativeMethods+Gdip.GdipDrawImageI(System.Runtime.InteropServices.HandleRef, System.Runtime.InteropServices.HandleRef, Int32, Int32) at System.Drawing.Graphics.DrawImage(System.Drawing.Image, Int32, Int32) at EZ_B.Camera.(System.Object) at System.Threading.ThreadHelper.ThreadStart_Context(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at System.Threading.ThreadHelper.ThreadStart(System.Object) 

Anyone know what to do? Best regards. Fredrik Sweden


ARC Pro

Upgrade to ARC Pro

Experience early access to the latest features and updates. You'll have everything that is needed to unleash your robot's potential.

#42  

Crashed with that one also :-(


.NET Runtime

Application: ARC.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
Stack:
   at System.Drawing.SafeNativeMethods+Gdip.GdipDrawImageI(System.Runtime.InteropServices.HandleRef, System.Runtime.InteropServices.HandleRef, Int32, Int32)
   at System.Drawing.Graphics.DrawImage(System.Drawing.Image, Int32, Int32)
   at EZ_B.Camera.(System.Object)
   at EZ_B.Camera.SetCaptureImage(System.Drawing.Bitmap)
   at EZ_B.Camera.(System.Drawing.Bitmap)
   at EZ_B.ARDrone.ARDrone.()
   at EZ_B.ARDrone.ARDrone.(System.Object, System.ComponentModel.DoWorkEventArgs)
   at System.ComponentModel.BackgroundWorker.OnDoWork(System.ComponentModel.DoWorkEventArgs)
   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(System.Object)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr, System.Object[], System.Object, System.Object[] ByRef)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessageSink)
   at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(System.Object)
   at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

Application error

Faulting application name: ARC.exe, version: 2014.11.29.0, time stamp: 0x547a5620
Faulting module name: gdiplus.dll, version: 6.3.9600.17415, time stamp: 0x54503bef
Exception code: 0xc0000005
Fault offset: 0x000e9d85
Faulting process id: 0x173c
Faulting application start time: 0x01d00c8c709fc333
Faulting application path: C:\Program Files (x86)\EZ-Robot Inc\ARC.ARC.exe
Faulting module path: C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.9600.17415_none_dad8722c5bcc2d8f\gdiplus.dll
Report Id: dc3b1577-787f-11e4-8314-c98303d51552
Faulting package full name: 
Faulting package-relative application ID: 
PRO
Synthiam
#43  

Okay - try this.... I would like you to uninstall the developer version of ARC that I sent you and install the latest production version. Here are the instructions:

  1. Uninstall ARC (Because if you do not, there will be an error when installing the production copy)

  2. Download the latest from: http://synthiam.com/Products/ARC

  3. Try it

#44  

Tried it, failed..

Same results as before.

What system are you using?

i am using windows 8.1 64-bit

8 core cpu..

Bulgaria
#45  

Hey. I am wondering if this have something to do with some sort of unhanded exception. Seems like as faster it is acquiring the pictures from the network stream, the faster it crashing.

PRO
Synthiam
#46  

There are no unhandled exceptions - I have made sure of that the other day. The reason it appears this way is because the error is bypassing the exception handling is due to the type of error that is being thrown. The access violation error requires a compiler parameter on the method which tells the runtime interpreter to handle the access violation as a managed exception. Handling an access violation exception in this context will not help us.

It appeared the error was an access violation due to a cross threading issue. I moved the thread further back in the callstack and combined processing of two threads into one - which will actually speed up the camera processing. The AR Drone v1 returns a pixel format which is incompatible with the 24bit rgb that is required for vision analysis - the method in which the pixel format was modified was changed as well. I ran performance tests on the new method which is significantly faster. Because the process which receives, decodes and creates the drone image is in a background thread, I also walked through the entire trace to ensure every object was invoked if required.

The computer(s) that I have run this on vary from 8 core to 4 core. My laptop is a 2 core 4 logical i7-4500 @ 1.8ghz

User-inserted image

User-inserted image

Are you certain the error is the same as before? The latest ARC that I had you just install has a different call trace to the error before. The error stack trace must be different on the latest ARC that i asked you to install from this page: https://synthiam.com/EZ-Builder

The AR Drone v1 is very old and has been discontinued for quite a few years - are you upgrading to the v2 for increased stability and additional features?

#47  

That post was too technical for me. ;-)

And yes it is crashing as before.

Not sure what event viewer said this time tho..

I see no other option but to uppgradera to V2 because i want the tracking to work.

Do you sell V2?