sekdariusz / andar

Automatically exported from code.google.com/p/andar
0 stars 0 forks source link

freeze at initial screen #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. using

if (Integer.parseInt(Build.VERSION.SDK) <= 4) {
//for android 1.5 compatibility reasons:
try {
camera.setPreviewDisplay(glSurfaceView.getHolder());
} catch (IOException e1) {
e1.printStackTrace();
}
}

from OpenGLCamActivity.java, cause i have an android 1.5 device with me

2. run

What is the expected output? What do you see instead?
- the camera is working
- grey box shows up if the marker is captured
- the screen freeze(with or without the grey box, the screen freeze after
about 1sec) and not refreshing (i'm not sure if i use the right term)

What version of the product are you using? On what operating system?
SDK r5, NDK r3, windows vista, device is hTC hero

is AndOpenGLCam support android 1.5? i jus cant figure out whats going wrong
p/s:im a newbie in android, sorry if i'm asking stupid question.

thanks

Original issue reported on code.google.com by Gnic...@gmail.com on 15 Apr 2010 at 8:27

GoogleCodeExporter commented 9 years ago
Hi,

Is there anything that looks like an error printed in the log? ( capture the 
output
from 'adb logcat' when you run the app). 

Original comment by suzy...@gmail.com on 15 Apr 2010 at 12:42

GoogleCodeExporter commented 9 years ago
here's the logcat

V/QualcommCameraHardware(   37): startPreview E
V/QualcommCameraHardware(   37): camera hardware has been started already
V/QualcommCameraHardware(   37): initPreview: preview size=240x160
V/QualcommCameraHardware(   37): constructing MemPool preview backed by pmem 
pool
/dev/pmem_adsp: 3 frames @ 57600 bytes, offset 72, buffer size 76872
V/QualcommCameraHardware(   37): pmem pool /dev/pmem_adsp ioctl(PMEM_GET_SIZE) 
is 262144
V/QualcommCameraHardware(   37): constructing PreviewPmemPool
I/libqcamera(   37): libqcamera:camera_add_pmem_fd:1000 module 
/dev/adsp/VFETASK:
(enabled 0) added pmem 0x40e28000 fd 24 len 262144 flags 0 to pmem map!
V/QualcommCameraHardware(   37): ----------------------------------    camera 
start
preview  !!!
V/QualcommCameraHardware(   37): get_preview_mem: base 0x40e28000 MALLOC size 
76872
index 0 --> 0x40e28000
V/QualcommCameraHardware(   37): get_preview_mem: base 0x40e28000 MALLOC size 
76872
index 1 --> 0x40e3ac48
V/QualcommCameraHardware(   37): get_preview_mem: base 0x40e28000 MALLOC size 
76872
index 2 --> 0x40e4d890
V/QualcommCameraHardware(   37): waiting for QCS_PREVIEW_IN_PROGRESS
I/libqcamera(   37): libqcamera:VFE_RTOSMsgCBHandler:2519 VFE_RTOSMsgCBHandler:
Unknown MsgID:65535
I/libqcamera(   37): libqcamera:VFE_ConfigureVideo:2902 Output1 is configure 
larger
than camsensor FOV.
I/libqcamera(   37): libqcamera:VFE_ResetCamif_2:2572 -----------------send VFE 
DSP
CAMIF reset 2---------------
I/libqcamera(   37): libqcamera:VFE_UpdateScaleOutput1CfgCmd:7650 Output1 Y 
PolyPhase
Scaler is configured larger than input.
V/QualcommCameraHardware(   37): STATE CAMERA_FUNC_START_PREVIEW // STATUS 0
V/QualcommCameraHardware(   37): camera_cb: state transition
QCS_INTERNAL_PREVIEW_REQUESTED --> QCS_PREVIEW_IN_PROGRESS
V/QualcommCameraHardware(   37): startPreview X
V/QualcommCameraHardware(   37): getPreviewHeap
I/ActivityManager(   71): Displayed activity
edu.dhbw.andopenglcam/.OpenGLCamActivity: 2785 ms
I/MarkerInfo(  476): setting screen width(480) and height(320)
I/MarkerInfo(  476): going to initialize the native library now
D/dalvikvm(  476): +++ not scanning '/system/lib/libwebcore.so' for 
'artoolkit_init'
(wrong CL)
D/dalvikvm(  476): +++ not scanning '/system/lib/libmedia_jni.so' for
'artoolkit_init' (wrong CL)
I/AR      (  476): --------------------------------------
I/AR      (  476): SIZE = 240, 160
I/AR      (  476): Distortion factor = 119.437500 98.812500 186.311111 1.012757
I/AR      (  476): 262.85680 0.00000 118.68750 0.00000
I/AR      (  476): 0.00000 272.28532 90.56250 0.00000
I/AR      (  476): 0.00000 0.00000 1.00000 0.00000
I/AR      (  476): --------------------------------------
I/MarkerInfo(  476): alright, done initializing the native library
I/MarkerInfo(  476): going to draw opengl stuff now
D/ConversionWorker(  476): starting conversion
D/dalvikvm(  476): +++ not scanning '/system/lib/libwebcore.so' for 
'yuv420sp2rgb'
(wrong CL)
D/dalvikvm(  476): +++ not scanning '/system/lib/libmedia_jni.so' for 
'yuv420sp2rgb'
(wrong CL)
D/dalvikvm(  476): +++ not scanning '/system/lib/libwebcore.so' for
'artoolkit_detectmarkers' (wrong CL)
D/dalvikvm(  476): +++ not scanning '/system/lib/libmedia_jni.so' for
'artoolkit_detectmarkers' (wrong CL)
D/ConversionWorker(  476): handing frame over to sink
D/dalvikvm(  476): +++ not scanning '/system/lib/libwebcore.so' for 'draw' 
(wrong CL)
D/dalvikvm(  476): +++ not scanning '/system/lib/libmedia_jni.so' for 'draw' 
(wrong CL)
D/dalvikvm(  476): GC freed 1516 objects / 101072 bytes in 127ms
I/MarkerInfo(  476): going to draw opengl stuff now
D/dalvikvm(   71): GC freed 1680 objects / 107432 bytes in 225ms
D/dalvikvm(  309): GC freed 2031 objects / 121776 bytes in 159ms
D/dalvikvm(  126): GC freed 549 objects / 24696 bytes in 173ms

Original comment by Gnic...@gmail.com on 16 Apr 2010 at 3:19

GoogleCodeExporter commented 9 years ago
try setting the USE_ONE_SHOT_PREVIEW in the Config class to false. 

I don't have any android 1.5 device at hand...yet

though I might get one temporarly, soon.

Original comment by tdomhan on 16 Apr 2010 at 8:11

GoogleCodeExporter commented 9 years ago
yes it works! after setting the USE_ONE_SHOT_PREVIEW to false, AndOpenGLCam work
perfectly in my hTc Hero!
but here comes another problem,
1) after i run the AndOpenGLCam, marker detected and grey box appear
2) exit using back or home button,
3) then re-open AndOpenGLCam (not rerun, just select it in the android menu),  
camera
works but doesn't see the grey box
4) if i shut down the phone and reopen AndOpenGLCam, it works like normal

any idea?

Original comment by Gnic...@gmail.com on 19 Apr 2010 at 2:52

GoogleCodeExporter commented 9 years ago
yeah, this is a known bug that has been fixed.
the other bug was also fixed in the new version.
can you check out the newest version of AndAR and set  USE_ONE_SHOT_PREVIEW to 
true. It 
should work.

will close this issue for now, feel free to reopen it, if it still fails.

Original comment by tdomhan on 23 Apr 2010 at 3:17

GoogleCodeExporter commented 9 years ago
hi, i tried the new andar,
with the USE_ONE_SHOT_PREVIEW set to true or false, it comes a beautiful white 
screen.

ps:the previous version of andar do give me a green cube

Original comment by Gnic...@gmail.com on 26 Apr 2010 at 2:39

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by tdomhan on 27 Apr 2010 at 5:31

GoogleCodeExporter commented 9 years ago
could you run the attached version and provide the output of adb logcat to me?
it has logging enabled.

Original comment by tdomhan on 27 Apr 2010 at 5:38

Attachments:

GoogleCodeExporter commented 9 years ago
updated in issue 11

Original comment by Gnic...@gmail.com on 28 Apr 2010 at 3:18

GoogleCodeExporter commented 9 years ago
alright, fixed by commit 117-120

Original comment by tdomhan on 30 Apr 2010 at 6:46