Skip to main content
Participant
Oct 24, 2011 1:30 PM UTC
Question

[AIR 3.0] AIR app crash on attachCamera()

edit:

I'v changed the topic because the App chrashes on the attachCamera() function, not during Camera.getCamera()

Hi,

I'm developing an AIR App using Flash CS4 on windows 7 (64 bit), macbook pro. I catch the built In webcam (iSight...) with Camera.getCamera() and apply it to a Sprite on the stage.

All works fine when I run the app using "control+enter" in Flash CS4.

But when I install the published AIR package and run the standalone AIR app it crashes at Camera.getCamera() videoContainer.attachCamera(camera) and the usual windows error message appears. VideoContainer is a object from the class Video.

any idea?

This topic is closed to new replies. Start a new post to keep the conversation going.

35 replies

kkm19
Participant
Feb 24, 2015 2:40 AM UTC

I confirm. my simple source:

        camera = Camera.getCamera("1");

        vid = new Video();

        vid.attachCamera(camera);

and my phone get strange shake on display like dance.

my phone is Alcatel OneTouch POP C7 and Adobe air 17 and 4.2.2

Translate
Participant
Feb 11, 2015 1:00 PM UTC

Open Windows Event Log -> Application Log and find adl error. Open Details and you see what dll is launching the error. In my case was the FFSplit software. After uninstall worked fine!

Translate
Inspiring
Aug 14, 2013 10:56 AM UTC

Hi,

I have the same problem. I'm developing tha desktop app. It's all fine on my machine but it crashed on my client machine.

I have test it with remote teamviewer and I'm sure now that calling 'camera.names' crash the app. I used Camera.getCamera and it's all fine, but I can't call camera.names. I know that my client have built in camera installed on his laptop.

Translate
chris.campbell
Legend
Aug 15, 2013 3:29 AM UTC

If it's simply a matter of those files being in place, can someone send them to me (ccampbel@adobe.com) so I can put them into the proper path and reproduce the crash?

Translate
Aug 8, 2013 9:40 PM UTC

Hi,

         I had also faced this problem. And then came up with a solution. Don't know will work for you or not.

What happens, when AIR is try to access camera some Bluetooth software's libs (dlls) causing problem. And AIR is crashing with unknown reason because it's not able to access camera.

I figured it out that there are two bluetooth software's dlls cause this problem. One is motorola, don't remember the name of other one. These dlls do not do much functions anyways for users. So Now my app searches them, if found then delete then before access cameras.

And now it's all working. If this solution is fine with you then I can dig into my code and can tell you the  complete path for them. Or will share the code.

Amitabh Arya

Translate
Participating Frequently
Aug 9, 2013 5:08 PM UTC

Hi Amitabh,

Could you, please, tell us the name and/or the location of this DLL?

Translate
chris.campbell
Legend
Aug 9, 2013 10:51 PM UTC

It would be great if we can find the specific driver/dll's that need to be in place to reproduce this.  I recall giving this a try once before but was unable to get the crash to occur.  However, I didn't have the hardware so that might have stopped the drivers from interfering.

I'll ask the team to investigate, but I suspect we're going to need to narrow down the hardware / drivers to get this to reproduce (and fix).

Translate
Participating Frequently
Nov 20, 2011 7:44 PM UTC

I'm having a similar problem. I've been doing some tests with the following code

trace("Camera.isSupported=",Camera.isSupported);

trace("Camera.getCamera=",Camera.getCamera());

trace("Camera.names=",Camera.names)

trace("camNames=",camNames.toString());

trace("END")

the buggy behavior only happens testing it as an AIR application, not an ordinary SWF. it crashes just before the 3rd trace. so the output is only

[SWF] testcam%20bug.swf - 3051 bytes after decompression

Camera.isSupported= true

Camera.getCamera= [object Camera]

Test Movie terminated.

I can use getCamera, but i cant retrieve the list of camera names. my notebook has only 1 camera, but i also have installed google talk video plugin (which creates 2 dummy cameras) and facebook video calling plugin. when i enter flash configuration through right click in a flash animation at any web page, i get 4 cameras:

USB Webcam

Google Cmaera Adapter 0

Google Cmaera Adapter 1

VDP source

Windows 7 tells me USB Webcam's drivers are updated. Then i uninstalled both GTalk and Facebook plugins. The bug persisted.

Flash Version 11.1.102.55

Flash Pro Version CS 5.5

AIR Plugin version: didn't know where to check, but i think it is 3

AIR SDK version set in Flash Pro: 2.6

Thanks

Translate
chris.campbell
Legend
Nov 21, 2011 10:21 PM UTC

I'm going to reach out to Yang to see if we have an internal bug on this issue.  In the meantime, could someone effected by this issue please open a new bug over at bugbase.adobe.com, please include sample project and a description of steps and hardware required.  If you can provide a built app that would be great too.  Once added, please post back with the bug title and I'll find it in the system and escalate the issue.

Thanks,

Chris

Translate
chris.campbell
Legend
Nov 29, 2011 8:50 PM UTC

I've talked with Yang and we did receive a crash dump from someone on this thread, unfortunately after loading it into dev studio the call stack pane is empty.  I've tried reproducing this using a test app I built (see attachments) but so far I've been unable to reproduce it on my macbook pro (running win7 x64) or a number of Dell, HP, and Lenovo systems.

Would anyone be willing to give my test app a try?  If it crashes, can you please send the crash dump to ccampbel@adobe.com?

Thanks,

Chris

Translate
Oct 25, 2011 2:28 AM UTC

Hello,

Thanks for your reporting. Could you please provide us a simple application or some key code snippets for the issue? Then we could do the further investigation.

Thanks!

Translate
Participating Frequently
Oct 28, 2011 2:39 PM UTC

Hi, i have a similiar Problem here:

If i start my AIR application it crashes on one of our laptops, a new Sony Z21 (on all other computers including Apple it works fine). The Camera is a "USB2.0 Camera" stated in Windows Hrdware Manager. But it also crashes without camera or with an external USB Camera which works on the other computer. I tried to target AIR 2.5, 2.6 , 2.7 and 3.0. It crashes on all runtimes.

if i log with flashlog.txt these are the latest entries:

2116 AVMINF: MTHD global$init ()

2116 AVMINF: MTHD flash.media::Camera$cinit ()

2116 AVMINF: MTHD flash.media::Camera/get anmes ()

I made a new Project with a small test application which only calls Camera.names. This application still crashes. On the notebook but runs fine on other computers.

This is the Sourcecode:

<?xml version="1.0" encoding="utf-8"?>

<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">

    <mx:Script>

        <![CDATA[

            import flash.media.Camera;

            var cArray:Array = Camera.names;

        ]]>

    </mx:Script>

</mx:WindowedApplication>

Message was edited by: AnonymousScreenUser BTW, i tried an flash applet within a browser which accesses camera.names. This works even on the notebook.

Translate
Oct 31, 2011 2:27 AM UTC

Could you update the driver of the camera to the latest version for a try? If the crash still occurs, please get the machine information following http://kb2.adobe.com/cps/839/cpsid_83952.html#main_Report_a_video_playback_issue_to_Adobe and paste it here. Thanks!

Translate