Zoulburner
Sweden
Asked
— Edited
Resolved by DJ Sures!
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
Are you using the latest ARC?
Do you see any of the camera video before the error?
Can you please use the Diagnostic Report and paste the response here? Diagnostic report can be found under Add Control -> General -> Diagnostic Report
Have you performed the usual Microsoft Windows debugging procedures? Such as uninstall application, reboot, install application?
Hello, Thanks for the fast reply.
2)I see the camera from the drone like 15-30 seconds. And if i use a webcamera it doesnt crash at all.
3
Thank you so much for helping. Best regards. Fredrik Sweden
See anything wrong? I am really interested in getting color tracking to work :-) my firmware on the Drone is 1.11.5 i have also tested 1.7.6 but no difference..
Looks like your PC is surely fast enough - my first thought was an error due to performance issue. It works on our PC's here for testing, so let me walk through a few things we can do to diagnose the issue...
i'd like you to configure the tracking speed to very slow half speed before connecting to the AR Drone. When you do this, does the camera last longer?
Ill try.. wait 5 min :-)
No..
It crashes in less than a minute.
I can give you access to my pc through teamviewer If you want to test something..? Just give me an email to send number and password to.
Actually, If I set the tracking speed to slowest it takes like 1 minute before it crashes.. and if set to fastest it takes like 30 seconds...
And if i use my ps3 eyetoy camera it doesn't crash at all... :-/
To clarify...
I tested again.
All the way to the left: ~1 minute then crash.
All the way to the right: still running after 10 minutes it seems now..
Hmm...
And now.. after 12 minutes it crashed with the slider all the way to the right.
okay, so the slider to the right takes longer to crash - interesting... let me take a look over here locally and see what I can find.
The video stream is decoded using the ffmpeg library - so the issue appears to be with the framerate specified through that library. I'll take a look and get back to you
Ok. Thanks. But i dont understand why it doesn't crash when i do the exact think but with the ps3 eye camera.. and when using that one i can have the slider all respekt way to the left and it still doesn't crash..
Well.. lets see it you find anything. :-)
The reason it does not crash when not using the AR Drone camera is the reason stated above - which I am investigating. The AR Drone uses the ffmpeg library for decoding the video stream. The AR Drone (only the ar drone) appears to have an issue with ffmpeg library. I am investigating
Believe I have solved this issue - however, I cannot be certain because I'm unable to reproduce it on our PC's. I will post an update for you to test in this thread later tonight.
Yay!
You are the best..
Thanks! :-)
And later tonight is? cause it seems that you COME to work when i come HOME from mine ;-)
its 19:45 CET here in Sweden :-)
Otherwise, if you wanna test it yourself i can give you the teamviewer adress so you can control my pc, just send a mail to me: dracospiritus@gmail.com
Thats also the booking email for worlds best firebreather ;-)
https://www.google.se/?gws_rd=ssl#q=guinness+world+records+fredrik+karlsson&spell=1
Try this: https://www.dropbox.com/s/u0pr12d40k1ot8t/EZ-Builder%20Installer.msi?dl=0
Nope, Crashing Copy pasted from event viewer:
Interesting - okay... i'll look deeper into the code
When you use the camera control, are any Tracking Modes specified? For example, do you have color tracking or anything checked?
Yes. I have tracking enabled. even if i just have camera stream aktive and no tracking it still crashes.
Probably won't make any difference but in your first post you stated you have Windows 8.... 8.1 is a free upgrade and you never know it might even fix your camera issues...
Thx. But i have 8.1 :-) My bad.
I borrowed a windows 7 pc and it worked alot better on that one..
Sadla i am using windows 8.1 on my own pc..
Is there a time difference between crashing with and without tracking modes specified?
Yes. It seems that the program crashes earlier when i activate tracking.
Okay, i'll continue to look into this.
Thx man!
I Bought a laptop with windows 7 today and thought that would help.
Crashed in below 20 seconds. this is what the log looks like if it helps you.
Not too strange it crashed almost instant with the laptop.
The ARC software i Downloaded today 2014-11-26 was set to highest (to the most left) in tracking speed by Default.
Moved the slider a bit to the right and it took atleast 3 minutes until it crashed again.
This is really a strange situation - yesterday I was flying our AR Drone v2 around the office until the batteries died with zero problems. We have many people using the Drone v2 with ARC without issues as well - i'm struggling to understand what can be causing this...
The strack trace mentions a thread - which a cross-threading issue would be my first solution. However, the invoke is called on the object when required and tested successfully yesterday. The access violation tells me the object may be attempted to be referenced twice during threading - but I do not see how that can happen either.
There are no blocks of code missing exception handling throughout the entire video system - .Net is surely behaving different within your environment and I do not know why.
I will create another build for you that removes the threading. It will slow the camera and interface down considerably, but if it works that will identify the issue.
Have you created a project for this example? If so, will you share it with me? Use the ATTACH FILE button in this forum to include the project
DJ, note that he is using a Drone 1, not a 2. Could something have broken when you added support for the 2?
Oh! He's using a v1? How did i not see that - geez! I must be losing my mind, it even says v1 in the subject and it still didn't click
Okay, i have been diving into the v2 code and pulling my hair out. Looks like i need to take a look at the v1 code. I know the v1 works, but haven't spent any time testing toward this issue because I thought it was the v2.
I am not using any specific project.
I just add drone and camera and go to settings under drone control to change to V1 and Click connect. I haven't saved any project yet cause it crashes..
And yeah. Drone 1.0 it is :-)
Seems its not an issue with my specific pc. I have tried several different pc's with same results.
Have a nice weekend and i hope you find the issue.
Wonder if it's an issue with the country configuration? Do you have your locale set to Sweden and is the keyboard different?
I'm unable to reproduce the issue. We have many computers here and it works with all the ones I tested. I'm confuzzled
I tried to change the region without luck.
But its still confusing that the ps eye is working flawless..
i begin to loose my hair
you are more then welcome to try my pc over teamviewer.
Have a good saturday!
I'm working on it today further - losing my hair as well
Maybe you sell Ar drone 2.0?
Im starting to give up..
The Drone 2 is significantly more stable than the drone 1, and is compatible with the Flight Recorder/GPS chip which allows some really cool stuff, but don't upgrade just because of ARC. I am sure DJ will figure this out.
Alan
Ok. Thanks for your input.
I will wait a little more then..
:-)
Try this: https://www.dropbox.com/s/u0pr12d40k1ot8t/EZ-Builder%20Installer.msi?dl=0
I'm not sure what else can be done...
Crashed with that one also :-(
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:
Uninstall ARC (Because if you do not, there will be an error when installing the production copy)
Download the latest from: http://synthiam.com/Products/ARC
Try it
Tried it, failed..
Same results as before.
What system are you using?
i am using windows 8.1 64-bit
8 core cpu..
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.
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
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?
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?
EZ-Robot doesn't sell the Parrot AR Drone. In Sweden, this is probably your best source: https://www.parrotshopping.com/se/p_parrot_listing.aspx?f=3378 although local hobby resellers may have it.
In the USA, we have a chain store called Brookstone that keeps it in stock, and of course Amazon sells it and ships anywhere.
Alan
... and if all else fails there are lots on eBay....
Yes. I saw that.
Time to sell my V1.0
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
How about this: http://www.dropbox.com/s/gskd48kimn2mybj/EZ-Builder%20Installer%20-%20test%201.msi?dl=0
you will need to uninstall the current installation before installing this
I will try it when i come home from work. Thank you for really trying. :-)
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
Never mind, it crashed but took longer time..
i will try with the new build that you gave me..
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 :-)
Thanks for the help.
i mark this one as resolved ;-)
Seems like the market strategy of selling the new one overcome the support of the old one. Pity. Very pity.
@Yordan... Ahh, but ez robot does not sell the ar drone so they have no ulterior motives here....