Skip to main content
Participant
October 24, 2011
Question

[AIR 3.0] AIR app crash on attachCamera()

  • October 24, 2011
  • 6 replies
  • 10133 views

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 has been closed for replies.

6 replies

kkm19
Participant
February 24, 2015

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

Participant
February 11, 2015

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!

Inspiring
August 14, 2013

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.

chris.campbell
Community Manager
Community Manager
August 15, 2013

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?

August 8, 2013

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

Participating Frequently
August 9, 2013

Hi Amitabh,

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

chris.campbell
Community Manager
Community Manager
August 9, 2013

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

Participating Frequently
November 20, 2011

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

chris.campbell
Community Manager
Community Manager
November 21, 2011

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

chris.campbell
Community Manager
Community Manager
November 29, 2011

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

October 25, 2011

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!

Participating Frequently
October 28, 2011

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.

October 31, 2011

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!