josuigoa / CameraMic

Camera & Microphone OpenFL native extension
32 stars 6 forks source link

App crash when photo is taken and ready to go back #7

Open justnajm opened 9 years ago

justnajm commented 9 years ago

Hi,

I tried your test project using android, its work perfectly for audio and camera (half part) as well but their is a problem, after taking photo it stores it in the app directory "cameraMicTest/images/" successfully. Also a copy been saved in the gallery. But when I tried to go back to app using attach icon in the camera. The app crashes every time, with message "The application CameraMic_test (process test.josuigoa.cameramic) has topped unexpectedly. Please try again"

josuigoa commented 9 years ago

Hi,

yes, I know it does another copy in the gallery folder. I thought it was easier to avoid that copy, but I couldn't get it working. I'll fix it someday.

In the other hand, I don't understand where crashes the app. After take the photo, before you return to the app, when click the 'Ok' button?

justnajm commented 9 years ago

When I click on the 'Ok' button. On my phone it is 'Attach' button. But yes it is the button which send me back to app. But as I press it app crashes with the message.

josuigoa commented 9 years ago

ok. Do you have eclipse ADT installed? If so, could you open it while running the app and paste here the error message that appears in the LogCat console?

justnajm commented 9 years ago

I do not have eclipse but I debugged using openfl -debug. And had very strange behaviour that pressing ok works fine and captured image is shown in the app (no crash occur).

This is the last part of log where I can see error reported in last lines.

E/CameraHal( 1463): hardware/ti/omap3/camera-omap4/src/CameraHal.cpp:524 setParameters - Burst set 0 E/CameraHal( 1463): hardware/ti/omap3/camera-omap4/src/CameraHal.cpp:583 setParameters - Captured picture file format = jpeg E/OMXCameraAdapter( 1463): hardware/ti/omap3/camera-omap4/src/OMXCameraAdapter/OMXCameraAdapter.cpp:2439 setVFramerate - VFR Configured Successfully [30:30] E/OMXCameraAdapter( 1463): hardware/ti/omap3/camera-omap4/src/OMXCameraAdapter/OMXCameraAdapter.cpp:964 setParameters - ISO mode arrived in HAL : auto E/OMXCameraAdapter( 1463): Flash Setting off E/OMXCameraAdapter( 1463): FlashMode 1 E/OMXCameraAdapter( 1463): hardware/ti/omap3/camera-omap4/src/OMXCameraAdapter/OMXCameraAdapter.cpp:1166 setParameters - IPP Mode set 3 E/OMXCameraAdapter( 1463): hardware/ti/omap3/camera-omap4/src/OMXCameraAdapter/OMXCameraAdapter.cpp:1437 setParameters - AutoConvergenceMode mode-frame, value = 20 E/OMXCameraAdapter( 1463): hardware/ti/omap3/camera-omap4/src/OMXCameraAdapter/OMXCameraAdapter.cpp:1638 setParameters - EXIF Model: LG-SU760 E/OMXCameraAdapter( 1463): hardware/ti/omap3/camera-omap4/src/OMXCameraAdapter/OMXCameraAdapter.cpp:1648 setParameters - EXIF Make: LG Electronics E/CameraHal( 1463): hardware/ti/omap3/camera-omap4/src/CameraHal.cpp:998 setParameters - Positive bracketing range 1 E/CameraHal( 1463): hardware/ti/omap3/camera-omap4/src/CameraHal.cpp:1009 setParameters - Negative bracketing range 1 E/===ArcCamera===1.1.1.11.20111118( 4775): CameraEngine:=== Current Parameters ==== [ipp=ldc-nsf;zoom=0;face-detection-data=0;ipp-values=ldc-nsf,ldc,nsf,off;zoom-supported=true;sensor-orientation=0;sei-encoding-type=sei_enc_none;sharpness=100;contrast=100;whitebalance=auto;scene-mode=auto;jpeg-quality=75;manual-convergence-values=20;s3d-supported=false;preview-format-values=yuv422i-yuyv,yuv420sp,rgb565;rotation=0;jpeg-thumbnail-quality=60;preview-format=yuv420sp;s3d-frame-layout=0;lge-camera=0;gps-timestamp=1426229473;preview-size=640x480;focal-length=4.6;exposure-mode-values=off,auto,night,backlighting,spotlight,sports,snow,beach,aperture,smallaperture,face-priority;exif-make=LG Electronics;s3d2d-preview=on;iso=auto;vnf=0;flash-mode-values=off,on,auto,torch;s3d2d-preview-values=0;preview-frame-rate-values=30,24,20,15,10;sensor-orientation-values=0,90,180,270;preview-frame-rate=30;camera-name=PrimaryCamera;focus-mode-values=auto,infinity,macro,continuous-video,extended,portrait,touch,face-priority;face-detection-enable=disable;s3d-frame-layout-values=0;jpeg-thumbnail-width=160;scene-mode-values=auto,manual,sports,portrait,landscape,night,sunset;exif-model=LG-SU760;preview-fps-range-values=(10000,20000),(10000,30000),(15000,30000),(20000,30000);jpeg-thumbnail-size-values=0x0,160x120,320x240,512x384;zoom-ratios=100,104,107,111,115,119,123,127,132,137,141,146,152,157,162,168,174,180,187,193,200,207,214,222,230,238,246,255,264,273,283,293,303,314,325,336,348,361,373,386,400,414,429,444,459,476,492,510,528,546,566,586,606,628,650,673,696,721,746,773,800;preview-size-values=720x480,640x480,320x240;camera-index=1;exposure=auto;picture-size-values=2592x1944,2048x1536,1600x1200,1280x960,640x480;preview-fps-range=10000,24000;min-exposure-compensation=-30;antibanding=60hz;auto-convergence=mode-frame;vertical-view-angle=48.2;burst-capture=0;auto-convergence-mode=0;horizontal-view-angle=62.1;mode=high-quality;brightness=54;jpeg-thumbnail-height=120;padded-height=480;iso-mode-values=auto,100,200,400,800;smooth-zoom-supported=true;focus-mode=infinity;padded-width=640;vstab-values=0,1;video-frame-format=yuv420sp;picture-format-values=jpeg,yuv422i-yuyv,yuv420sp,rgb565,raw;max-exposure-compensation=30;exposure-compensation=0;auto-preview=false;exposure-compensation-step=0.1;flash-mode=off;effect-values=none,negative,solarize,sepia,mono,natural,vivid,colourswap,blackwhite,whiteboard,blackboard,aqua,posterize;picture-size=640x480;max-zoom=60;effect=none;saturation=100;whitebalance-values=auto,daylight,cloudy-daylight,shade,tungsten,fluorescent,incandescent,horizon,face-priority,sunset,twilight,warm-fluorescent;vstab=0;picture-format=jpeg;focus-distances=Infinity,Infinity,Infinity;vnf-values=0,1;current-iso=0;antibanding-values=off,auto,50hz,60hz] E/===ArcCamera===1.1.1.11.20111118( 4775): CameraEngine: suspend<--- E/CameraHal( 1463): hardware/ti/omap3/camera-omap4/src/BaseCameraAdapter.cpp:248 disableMsgType - Message type 0x200 subscription no supported yet! E/OverlayDisplayAdapter( 1463): hardware/ti/omap3/camera-omap4/src/OverlayDisplayAdapter.cpp:964 handleFrameReturn - Last frame dequeued from display E/OMXCameraAdapter( 1463): hardware/ti/omap3/camera-omap4/src/OMXCameraAdapter/OMXCameraAdapter.cpp:3971 stopPreview - Average framerate: 4.203270 E/CameraService( 1463): park Not skype!!!!!!!!!! E/CameraHal( 1463): hardware/ti/omap3/camera-omap4/src/BaseCameraAdapter.cpp:248 disableMsgType - Message type 0x200 subscription no supported yet! E/TIOverlay( 1881): overlay_destroyOverlay:IN dev (0x29ed28) and overlay (0x64879000) E/CameraHal( 1463): hardware/ti/omap3/camera-omap4/src/AppCallbackNotifier.cpp:1488 stop - AppCallbackNotifier already in stopped state E/===ArcCamera===1.1.1.11.20111118( 4775): CameraEngine: suspend---> E/ActivityManager( 1881): pausing activity is camera or videoplayer or youtube..., increase pause timeout value to 5 secs.. I/trace ( 4653): Main.hx:127: HX: /mnt/sdcard/cameraMicTest/images/1426229451144.jpg exists: true I/trace ( 4653): Main.hx:130: input.width 640 E/===ArcCamera===1.1.1.11.20111118( 4775): CameraEngine: close<--- E/===ArcCamera===1.1.1.11.20111118( 4775): CameraEngine: close---> I/trace ( 4653): Main.hx:152: photoPath: /mnt/sdcard/cameraMicTest/images/1426229451144.jpg E/Real3D ( 4653): unpacking : disableAutoDetection = falseformat = 0order = 0 E/OpenAL_SLES( 4653): openal resume E/ ( 1463): Error ProcMgr_waitForMultipleEvents -1892966397 E/ ( 1463): Cannot perform error recovery. E/OMXCameraAdapter( 1463): hardware/ti/omap3/camera-omap4/src/OMXCameraAdapter/OMXCameraAdapter.cpp:8803 Handler - Exiting command handler

josuigoa commented 9 years ago

so, it works with -debug flag, but not with -release flag?

justnajm commented 9 years ago

yes

josuigoa commented 9 years ago

Ok, I'll try it next week

justnajm commented 9 years ago

gr8 :)

josuigoa commented 9 years ago

hi,

I've been trying the test project and it works for me (LG G2). What's your phone model? maybe I can get one and try with it

justnajm commented 9 years ago

If above error can give you any idea, why this is the case in my phone. I will also try in any different mobile, I have this mobile: http://www.gsmchoice.com/en/catalogue/lg/su760/LG-SU760.html