Welcome to Synthiam!

Program robots using technologies created from industry experts. ARC is our free-to-use robot programming software that makes features like vision recognition, navigation and artificial intelligence easy.

Get Started
Asked — Edited
Resolved Resolved by DJ Sures!

Crashing While Using Ar Drone (1.0) Camera In Ez Builder

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

I can control my AR DRONE 1.0 from the EZ Builder.
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

Code:


- 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

EZ-Builder.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

Code:


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

1026200x8000000000000015105ApplicationZoulburnerApplication: EZ-Builder.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

AI Support Bot
Related Content
Synthiam
Based on your post activity, we found some content that may be interesting to you. Explore these other tutorials and community conversations.
#40  
Ok. Thanks for your input.

I will wait a little more then..

:-)
#42  
Crashed with that one also :-(

Code:



.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()


Code:



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: http://www.ez-robot.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?
#49  
... and if all else fails there are lots on eBay....:)
#50  
Yes. I saw that.

Time to sell my V1.0
#51  
With the BeeBop about to be released, the price of used v2s will probably drop dramatically soon.

No idea if or when EZ-Robot will support the BeeBop. Parrot made a lot of changes between the v1 and v2 and didn't publish the SDK so it took a lot of time for DJ to add support for the v2.

Alan
#53  
I will try it when i come home from work. Thank you for really trying.
:-)
#54  
Hey man.

It SEEMS like the issue is gone after i installed "visual Studio 2013#" from microsoft on my pc.

Can it be the solution? maybe my pc wanted some drivers or dll´s from the Visual Studio 2013?

i mean, you have it on your pc right?

If it is the soultion, maybe you can make a new build and restore all the
things you have changed in the program so it is a "final release"
that everyone can download and that it is not "modified" just to
suite my problem?

Best regards.
Fredrik
Sweden
#55  
Never mind, it crashed but took longer time..

i will try with the new build that you gave me..
#56  
ok, im giving up!

The build you gave me also crashes..
Saving the time and some money to buy AR Drone 2.0 instead.

Thank you for the time you have spent trying to help me

Really good support man!

I will recommend you :-)
#57  
Thanks for the help.

i mark this one as resolved ;-)
Bulgaria
#58  
Seems like the market strategy of selling the new one overcome the support of the old one. Pity. Very pity.
#59  
@Yordan... Ahh, but ez robot does not sell the ar drone so they have no ulterior motives here....