ITT: hunderteins doing wonders working on kernel.
No troll.
Chance appeared.
OK.
What do we have to start with:
Current (kibuuka's) camera implementation is in using camera wrapper / HAL that provides HAL functions, bridging them to libcamera.so
Unfortunately, libcamera uses three overlay functions, used to be in libui in Gingerbread.
Now they are in liboverlay.so (and two haven't exact analogs).
My thoughts:
Does liboverlay actually work?
Can we simply add/replace needed functions -
overlay:: Overlay::setFd(int) _ZN7overlay7Overlay5setFdEi - new impl uses second channel parameter.
overlay:: Overlay::setCrop(unsigned int, unsigned int, unsigned int, unsigned int) _ZN7overlay7Overlay7setCropEjjjj - present as is.
overlay:: Overlay::queueBuffer(void *) _ZN7overlay7Overlay11queueBufferEPv - dunno.
So far: i've made a simple hacks to liboverlay and libcamera - wrappers loads fine.
But on Camera init if fails (seems like on wrapper init):
Code:
I/CameraService( 117): Opening camera 0
D/CameraHAL( 117): qcamera_device_open: name:0 device:0x153e4 cameraId:0
F/libc ( 117): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1)
I/Process ( 184): Sending signal. PID: 653 SIG: 3
I/dalvikvm( 653): threadid=3: reacting to signal 3
I/dalvikvm( 653): Wrote stack traces to '/data/anr/traces.txt'
D/dalvikvm( 250): GC_CONCURRENT freed 285K, 27% free 10229K/13959K, paused 7ms+14ms
D/dalvikvm( 653): GC_CONCURRENT freed 206K, 4% free 9376K/9671K, paused 4ms+11ms
D/dalvikvm( 653): GC_FOR_ALLOC freed 21K, 3% free 9768K/10055K, paused 20ms
I/DEBUG ( 111): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 111): Build fingerprint: 'dell/dell_streak/streak:4.0.4/IMM76L/eng.den.20120711.230916:eng/test-keys'
I/DEBUG ( 111): pid: 117, tid: 117 >>> /system/bin/mediaserver <<<
I/DEBUG ( 111): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
I/DEBUG ( 111): r0 00000000 r1 40f463b0 r2 ffffff54 r3 ffffff58
I/DEBUG ( 111): r4 40f4622c r5 405aa4b1 r6 beb2c9dc r7 00000000
I/DEBUG ( 111): r8 0000028d r9 beb2caa4 10 beb2c9f0 fp 40f462e8
I/DEBUG ( 111): ip ffffff50 sp beb2c970 lr ffffff48 pc 40f44322 cpsr 40000030
I/DEBUG ( 111): d0 496172656d616320 d1 0076007200650035
I/DEBUG ( 111): d2 0065007200610033 d3 0061004300490065
I/DEBUG ( 111): d4 0069007300730069 d5 006f0043006e006f
I/DEBUG ( 111): d6 006f00720074006e d7 00720065006c006c
I/DEBUG ( 111): d8 0000000000000000 d9 0000000000000000
I/DEBUG ( 111): d10 0000000000000000 d11 0000000000000000
I/DEBUG ( 111): d12 0000000000000000 d13 0000000000000000
I/DEBUG ( 111): d14 0000000000000000 d15 0000000000000000
I/DEBUG ( 111): d16 0000000000000000 d17 3fefae147ae147ae
I/DEBUG ( 111): d18 4000000000000000 d19 3fcce748f8ed8687
I/DEBUG ( 111): d20 3f11504c209ef562 d21 bebbb370fb6f0b05
I/DEBUG ( 111): d22 3ff0000000000000 d23 3ff43d16aee00482
I/DEBUG ( 111): d24 3e66376972bea4d0 d25 0000000000000000
I/DEBUG ( 111): d26 0000000000000000 d27 0000000000000000
I/DEBUG ( 111): d28 0000000000000000 d29 0000000000000000
I/DEBUG ( 111): d30 0000000000000000 d31 0000000000000000
I/DEBUG ( 111): scr 20000010
I/DEBUG ( 111):
D/dalvikvm( 653): GC_CONCURRENT freed 15K, 2% free 10233K/10439K, paused 2ms+15ms
I/DEBUG ( 111): #00 pc 00002322 /system/lib/hw/camera.streak.so (_Z21qcamera_set_callbacksP13camera_devicePFviiiPvEPFviPK13camera_memoryjP21camera_frame_metadataS1_EPFvxiS6_jS1_EPFPS4_ijjS1_ES1_)
I/DEBUG ( 111): #01 pc 0000a84a /system/lib/libcameraservice.so (_ZN7android13CameraService6ClientC1ERKNS_2spIS0_EERKNS2_INS_13ICameraClientEEERKNS2_INS_23CameraHardwareInterfaceEEEiii)
I/DEBUG ( 111): #02 pc 0000aba6 /system/lib/libcameraservice.so (_ZN7android13CameraService7connectERKNS_2spINS_13ICameraClientEEEi)
I/DEBUG ( 111): #03 pc 000174b6 /system/lib/libcamera_client.so (_ZN7android15BnCameraService10onTransactEjRKNS_6ParcelEPS1_j)
I/DEBUG ( 111): #04 pc 00008d62 /system/lib/libcameraservice.so (_ZN7android13CameraService10onTransactEjRKNS_6ParcelEPS1_j)
I/DEBUG ( 111): #05 pc 00017ec0 /system/lib/libbinder.so (_ZN7android7BBinder8transactEjRKNS_6ParcelEPS1_j)
I/DEBUG ( 111): #06 pc 0001b1ea /system/lib/libbinder.so (_ZN7android14IPCThreadState14executeCommandEi)
I/DEBUG ( 111): #07 pc 0001b3c6 /system/lib/libbinder.so (_ZN7android14IPCThreadState14joinThreadPoolEb)
I/DEBUG ( 111): #08 pc 00008a96 /system/bin/mediaserver
I/DEBUG ( 111): #09 pc 00016524 /system/lib/libc.so (__libc_init)
I/DEBUG ( 111):
I/DEBUG ( 111): code around pc:
I/DEBUG ( 111): 40f44300 58216029 9d064811 f854600a 5821200c )`!X.H...`T.. !X
I/DEBUG ( 111): 40f44310 c03cf8df f8546013 6808300e 601d4a0d ..<..`T..0.h.J.`
I/DEBUG ( 111): 40f44320 68054b0d 58e358a1 200cf854 94009c07 .K.h.X.XT.. ....
I/DEBUG ( 111): 40f44330 47a0692c bf00bd3e 00001f38 ffffff3c ,i.G>...8...<...
I/DEBUG ( 111): 40f44340 ffffff40 ffffff44 ffffff48 ffffff4c @...D...H...L...
I/DEBUG ( 111):
I/DEBUG ( 111): code around lr:
I/DEBUG ( 111): ffffff28 ffffffff ffffffff ffffffff ffffffff ................
I/DEBUG ( 111): ffffff38 ffffffff ffffffff ffffffff ffffffff ................
I/DEBUG ( 111): ffffff48 ffffffff ffffffff ffffffff ffffffff ................
I/DEBUG ( 111): ffffff58 ffffffff ffffffff ffffffff ffffffff ................
I/DEBUG ( 111): ffffff68 ffffffff ffffffff ffffffff ffffffff ................
I/DEBUG ( 111):
I/DEBUG ( 111): stack:
I/DEBUG ( 111): beb2c930 000224e0 [heap]
I/DEBUG ( 111): beb2c934 4008b498
I/DEBUG ( 111): beb2c938 405abe48 /system/lib/libcameraservice.so
I/DEBUG ( 111): beb2c93c 40057a1d /system/lib/libc.so
I/DEBUG ( 111): beb2c940 000224e0 [heap]
I/DEBUG ( 111): beb2c944 4008b4a8
I/DEBUG ( 111): beb2c948 00013758 [heap]
I/DEBUG ( 111): beb2c94c 000137a4 [heap]
I/DEBUG ( 111): beb2c950 405ae194 /system/lib/libcameraservice.so
I/DEBUG ( 111): beb2c954 beb2c9dc [stack]
I/DEBUG ( 111): beb2c958 00014ad0 [heap]
I/DEBUG ( 111): beb2c95c 000153e0 [heap]
I/DEBUG ( 111): beb2c960 00014ad0 [heap]
I/DEBUG ( 111): beb2c964 000153e0 [heap]
I/DEBUG ( 111): beb2c968 df0027ad
I/DEBUG ( 111): beb2c96c 00000000
I/DEBUG ( 111): #00 beb2c970 00014710 [heap]
I/DEBUG ( 111): beb2c974 405a8571 /system/lib/libcameraservice.so
I/DEBUG ( 111): beb2c978 405a9031 /system/lib/libcameraservice.so
I/DEBUG ( 111): beb2c97c 00013758 [heap]
I/DEBUG ( 111): beb2c980 40f442e9 /system/lib/hw/camera.streak.so
I/DEBUG ( 111): beb2c984 405ab84d /system/lib/libcameraservice.so
I/DEBUG ( 111): #01 beb2c988 405aa4b1 /system/lib/libcameraservice.so
I/DEBUG ( 111): beb2c98c 000153e0 [heap]
I/DEBUG ( 111): beb2c990 00013758 [heap]
I/DEBUG ( 111): beb2c994 00000000
I/DEBUG ( 111): beb2c998 0000fd88 [heap]
I/DEBUG ( 111): beb2c99c beb2ca90 [stack]
I/DEBUG ( 111): beb2c9a0 0000028d
I/DEBUG ( 111): beb2c9a4 405ae194 /system/lib/libcameraservice.so
I/DEBUG ( 111): beb2c9a8 beb2c9dc [stack]
I/DEBUG ( 111): beb2c9ac 405abbab /system/lib/libcameraservice.so
In attach:
libcamera.so (libui reference changed to libov.so, android:: Overlay changed to overlay:: Overlay) and libov.so (quickly built liboverlay variant)
Useful only if you want to debug the issue further.
This libcamera2
https://github.com/Dorregaray/libcamera2
uses the very same Overlay functions. Anyone willing to rewrite?
Some light on ICS camera implementation:
http://marakana.com/static/courseware/android/Aptina-Android-Camera-Internals.pdf
http://forum.xda-developers.com/showthread.php?t=1379368
Looks like this is the only patch we can take.
--
In attach - built lib (/system/lib/hw)
To avoid init error in Camera - do a
chmod -R 666 /dev/msm_camera/*
--
Doesn't work now - but hey, it at least doesn't die
@all the streakers , where are your thanks, don't you see what's going on over here, thank the guy a thousand times.
Thank you , n0p
Need more explanation!
_n0p_ said:
http://forum.xda-developers.com/showthread.php?t=1379368
Looks like this is the only patch we can take.
--
In attach - built lib (/system/lib/hw)
To avoid init error in Camera - do a
chmod -R 666 /dev/msm_camera/*
--
Doesn't work now - but hey, it at least doesn't die
Click to expand...
Click to collapse
I do not really understand this problem! You can add is not clear? camera.streak.zip for any rom? Does the [ROM] [Early pre-alpha] AOSP ICS 4.0.4_r2.1 for DS5.
Thank!
This camera.streak.so is just a quickly built HAL/wrapper for liboemcamera.
Now it only shows blank screen, but it at least:
Allows camera app to work.
Correctly loads our liboemcamera.
Eliminates need of intermidiate libcamera.so.
I hope i'll be able to make it at least shoot, taking sources from old CAF camera libraries.
Too bad I don't have much time, and most important, abilities for that, so the process will be slow.
Other path we could take - fully reimplementing camera support by using kernel msm camera sources as base, but I doubt that I can handle this much of R&D work.
Does it useful for us?
http://forum.xda-developers.com/showthread.php?t=1448303
Or this:
http://www.spinics.net/lists/linux-media/msg51836.html
http://www.spinics.net/lists/linux-omap/msg69649.html
http://www.spinics.net/lists/linux-media/msg37279.html
Thank you! First one is a very nice piece of work!
_n0p_ said:
Thank you! First one is a very nice piece of work!
Click to expand...
Click to collapse
All the thanks to me are belong to you Sergei; you are the man!
---------- Post added at 01:09 PM ---------- Previous post was at 01:02 PM ----------
I have seen another camera development for ics one month ago and the dev wrote that,it can work on ds5 but i forgot the link.
It was on xda too.
The dev have been released a flashable zip which includes all the files required to work camera on ics.
Possible cam issue solution
The link below contains some information about ov5642 and ov 5640 cameras.
The person is a android developer, maybe we can get help from him.
http://cn.linkedin.com/pub/lu-wei/37/602/484
sinan33 said:
All the thanks to me are belong to you Sergei; you are the man!
---------- Post added at 01:09 PM ---------- Previous post was at 01:02 PM ----------
I have seen another camera development for ics one month ago and the dev wrote that,it can work on ds5 but i forgot the link.
It was on xda too.
The dev have been released a flashable zip which includes all the files required to work camera on ics.
Click to expand...
Click to collapse
First link you posted is very valuable. Dunno if it could be directly reused, but patches actually should solve the exact problems we have with our libcamera (overlay libui functions). I will try to apply patches and build libs asap.
We are waiting your great news about ICS progress, n0p. Dont hesitate to let us know if you need any help from us.
Todays log:
Code:
D/CameraHAL( 1274): CameraHAL_GetNum_Cameras: loading libcamera at 0xb000e8a8
I/CameraService( 1274): Opening camera 0
D/CameraHAL( 1274): qcamera_device_open: name:0 device:0x13b64 cameraId:0
D/CameraHAL( 1274): loading libcamera at 0xb000e8a8
D/QualcommCameraHardware( 1274): openDualCamera: E
D/QualcommCameraHardware( 1274): openDualCamera: ov5642 is found
D/PrintK ( 1274): <6>msm_camera: sensor_store: sensor ov5642 found
D/QualcommCameraHardware( 1274): openDualCamera: X, 1
D/QualcommCameraHardware( 1274): createInstance: E
E/QualcommCameraHardware( 1274): Sensor name ov5642 is found
D/PrintK ( 1274): <6>msm_camera: msm_camio_enable: turn on camera power
D/PrintK ( 1274): <6>vreg_enable: wlan enabled
D/PrintK ( 1274): <6>vreg_enable: gp5 enabled
D/PrintK ( 1274): <6>vreg_enable: msme2 enabled
D/PrintK ( 1274): <6>vreg_enable: gp3 enabled
D/dalvikvm( 1286): GC_CONCURRENT freed 199K, 4% free 9354K/9671K, paused 3ms+2ms
D/dalvikvm( 1286): GC_FOR_ALLOC freed 10K, 4% free 9378K/9671K, paused 24ms
D/dalvikvm( 1286): GC_FOR_ALLOC freed 13K, 3% free 9766K/10055K, paused 22ms
D/PrintK ( 1274): <6>msm_camera: ov5642_reg_init(403): 90 ms
D/dalvikvm( 1286): GC_CONCURRENT freed 58K, 3% free 10198K/10439K, paused 3ms+3ms
F/PrintK ( 104): <2>[I2C]IRQ: 78 W33 Error (21D0)
W/PrintK ( 1274): [I2C]Recover (0000) intf 300: Bus busy cleared after 1 clock cycles
D/PrintK ( 1274): <6>msm_camera: ov5642_i2c_burst_write: write 51h 33 bytes successfully at retryCnt=1
D/PrintK ( 1274): <6>msm_camera: ov5642_reg_init(424): 310 ms
D/PrintK ( 1274): <6>msm_camera: __msm_open: sensor ov7690 power down
D/PrintK ( 1274): <6>msm_camera: ov5642_sensor_init: 1D sensor
W/PrintK ( 1274): msm_get_sensor_info: sensor_name ov5642
D/QualcommCameraHardware( 1274): initDefaultParameters E
E/mm-camera( 1274): cam_conf: sensor name:ov5642 and length:6
E/mm-camera( 1274): cam_conf: open sensor name ov5642
W/PrintK ( 1274): msm_get_sensor_info: sensor_name ov5642
F/libc ( 1274): Fatal signal 8 (SIGFPE) at 0x000004fa (code=0)
I/Process ( 182): Sending signal. PID: 1286 SIG: 3
I/dalvikvm( 1286): threadid=3: reacting to signal 3
I/dalvikvm( 1286): Wrote stack traces to '/data/anr/traces.txt'
I/Process ( 182): Sending signal. PID: 1286 SIG: 3
I/dalvikvm( 1286): threadid=3: reacting to signal 3
I/dalvikvm( 1286): Wrote stack traces to '/data/anr/traces.txt'
D/PrintK ( 1274): <6>msm_enqueue: queue control new max is 1
D/QualcommCameraHardware( 1274): findSensorType: sensorType is 5mp
D/QualcommCameraHardware( 1274): filterPictureSizes: supportedPictureSizesCount=6
D/QualcommCameraHardware( 1274): ctrlCmd.value = 30
D/QualcommCameraHardware( 1274): Maximum zoom value is 30
D/QualcommCameraHardware( 1274): initDefaultParameters X
D/QualcommCameraHardware( 1274): createInstance: X created hardware=0x13be8
E/ExtendedExtractor( 1274): Failed to open MM_PARSER_LIB, dlerror = Cannot load library: reloc_library[1285]: 1274 cannot locate '_ZN7android11MediaSource23getNumberOfVideoBuffersEv'...
E/ExtendedExtractor( 1274):
E/ExtendedExtractor( 1274): Failed to open MM_PARSER_LITE_LIB, dlerror = Cannot load library: load_library[1091]: Library 'libmmparser_lite.so' not found
did you tried a simple
#touch /system/lib/libmmparser_lite.so
maybe its not very much needed,at least for now.
https://github.com/ThePlayground/proprietary_vendor_qcom/commits/ics
https://github.com/aospX/platform_vendor_qcom_proprietary/commits/ics-devel
https://github.com/aospX/platform_vendor_qcom_proprietary/commits/ics-devel
Are those useful for us?
I actually don't think it's the real problem - look at SIGFPE in libc while getting camera parameters.
--
I'm still hesitating what path should we take (keeping in mind that i have less than hour per day for tests).
Anyway - after applying (thank you, sinan33) patches, libcamera loads and seems to work (mm-camera).
We having this on GB camera start:
Code:
W/PrintK ( 1785): msm_get_sensor_info: sensor_name ov5642
D/QualcommCameraHardware( 1785): initDefaultParameters E
E/mm-camera( 1785): cam_conf: sensor name:ov5642 and length:6
E/mm-camera( 1785): cam_conf: open sensor name ov5642
W/PrintK ( 1785): msm_get_sensor_info: sensor_name ov5642
D/PrintK ( 1785): <6>msm_enqueue: queue control new max is 1
and this on ICS:
Code:
W/PrintK ( 1274): msm_get_sensor_info: sensor_name ov5642
D/QualcommCameraHardware( 1274): initDefaultParameters E
E/mm-camera( 1274): cam_conf: sensor name:ov5642 and length:6
E/mm-camera( 1274): cam_conf: open sensor name ov5642
W/PrintK ( 1274): msm_get_sensor_info: sensor_name ov5642
F/libc ( 1274): Fatal signal 8 (SIGFPE) at 0x000004fa (code=0)
https://bugzilla.mozilla.org/show_bug.cgi?id=766395
pastebin.com/6BBkRMBs
And those?
---------- Post added at 10:55 AM ---------- Previous post was at 10:47 AM ----------
pastebin.com/b1cB4SFF
Maybe this would help us?
---------- Post added at 10:56 AM ---------- Previous post was at 10:55 AM ----------
http://fixunix.com/unix/335322-catching-sigfpe-signal.html
---------- Post added at 10:58 AM ---------- Previous post was at 10:56 AM ----------
Description of SIGFPE 8:
Action:Core
Comment:Floating point exception.
"SIGFPE 8 Core Floating point exception"
_n0p_ said:
I actually don't think it's the real problem - look at SIGFPE in libc while getting camera parameters.
--
I'm still hesitating what path should we take (keeping in mind that i have less than hour per day for tests).
Anyway - after applying (thank you, sinan33) patches, libcamera loads and seems to work (mm-camera).
We having this on GB camera start:
Code:
W/PrintK ( 1785): msm_get_sensor_info: sensor_name ov5642
D/QualcommCameraHardware( 1785): initDefaultParameters E
E/mm-camera( 1785): cam_conf: sensor name:ov5642 and length:6
E/mm-camera( 1785): cam_conf: open sensor name ov5642
W/PrintK ( 1785): msm_get_sensor_info: sensor_name ov5642
D/PrintK ( 1785): <6>msm_enqueue: queue control new max is 1
and this on ICS:
Code:
W/PrintK ( 1274): msm_get_sensor_info: sensor_name ov5642
D/QualcommCameraHardware( 1274): initDefaultParameters E
E/mm-camera( 1274): cam_conf: sensor name:ov5642 and length:6
E/mm-camera( 1274): cam_conf: open sensor name ov5642
W/PrintK ( 1274): msm_get_sensor_info: sensor_name ov5642
F/libc ( 1274): Fatal signal 8 (SIGFPE) at 0x000004fa (code=0)
Click to expand...
Click to collapse
can you please upload the latest build
Uploading to SkyDrive now, but doubt that it has any practical effect.
https://skydrive.live.com/redir.asp...!Amrj8sR38ZY7OSw&Bpub=SDX.SkyDrive&Bsrc=Share
In attach - version of camera.streak.so that should dump camera parameters to log.
Don't forget to
chmod 666 /dev/msm_camera/*
So far:
Code:
D/PrintK ( 118): <6>msm_camera: ov5642_reg_init(403): 100 ms
D/dalvikvm( 671): GC_CONCURRENT freed 13K, 2% free 10233K/10439K, paused 2ms+2ms
D/PrintK ( 118): <6>msm_camera: ov5642_reg_init(424): 170 ms
D/PrintK ( 118): <6>msm_camera: __msm_open: sensor ov7690 power down
D/PrintK ( 118): <6>msm_camera: ov5642_sensor_init: 1D sensor
W/PrintK ( 118): msm_get_sensor_info: sensor_name ov5642
D/QualcommCameraHardware( 118): initDefaultParameters E
E/mm-camera( 118): cam_conf: sensor name:ov5642 and length:6
D/PrintK ( 118): <6>msm_enqueue: queue event new max is 1
E/mm-camera( 118): cam_conf: open sensor name ov5642
W/PrintK ( 118): msm_get_sensor_info: sensor_name ov5642
F/libc ( 118): Fatal signal 8 (SIGFPE) at 0x00000076 (code=0)
I/Process ( 185): Sending signal. PID: 671 SIG: 3
I/dalvikvm( 671): threadid=3: reacting to signal 3
I/dalvikvm( 671): Wrote stack traces to '/data/anr/traces.txt'
D/PrintK ( 118): <6>msm_enqueue: queue control new max is 1
D/QualcommCameraHardware( 118): findSensorType: sensorType is 5mp
D/QualcommCameraHardware( 118): filterPictureSizes: supportedPictureSizesCount=6
D/QualcommCameraHardware( 118): ctrlCmd.value = 30
D/QualcommCameraHardware( 118): Maximum zoom value is 30
D/QualcommCameraHardware( 118): initDefaultParameters X
D/QualcommCameraHardware( 118): createInstance: X created hardware=0x186f0
D/CameraHAL( 118): camera_set_callbacks
D/CameraHAL( 118): camera_enable_msg_type: type 13
D/CameraHAL( 118): camera_enable_msg_type: CAMERA_MSG_ERROR
D/CameraHAL( 118): camera_enable_msg_type: CAMERA_MSG_FOCUS
D/CameraHAL( 118): camera_enable_msg_type: CAMERA_MSG_ZOOM
I/AwesomePlayer( 118): setDataSource_l('/system/media/audio/ui/camera_click.ogg')
E/OMXCodec( 118): Attempting to allocate OMX node 'OMX.google.vorbis.decoder'
E/OMXCodec( 118): Successfully allocated OMX node 'OMX.google.vorbis.decoder'
I/AwesomePlayer( 118): setDataSource_l('/system/media/audio/ui/VideoRecord.ogg')
E/OMXCodec( 118): Attempting to allocate OMX node 'OMX.google.vorbis.decoder'
E/OMXCodec( 118): Successfully allocated OMX node 'OMX.google.vorbis.decoder'
D/CameraHAL( 118): camera_get_parameters
D/CameraHAL( 118): camera_get_parameters
D/Camera ( 671): app passed NULL surface
D/CameraHAL( 118): camera_get_camera_info: id:0 faceing:0 orientation: 90
D/CameraHAL( 118): camera_get_parameters
V/camera ( 671): Preview size is 640x480
D/CameraHAL( 118): camera_set_parameters
D/QualcommCameraHardware( 118): setParameters: E params = 0xbea15a3c
D/QualcommCameraHardware( 118): requested preview size 640 x 480
D/QualcommCameraHardware( 118): requested picture size 1280 x 960
D/QualcommCameraHardware( 118): Set zoom=0
I/DEBUG ( 111): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 111): Build fingerprint: 'dell/dell_streak/streak:4.0.4/IMM76L/eng.den.20120711.230916:eng/test-keys'
I/DEBUG ( 111): pid: 118, tid: 689 >>> /system/bin/mediaserver <<<
I/DEBUG ( 111): signal 8 (SIGFPE), code 0 (?), fault addr 00000076
I/DEBUG ( 111): r0 00000000 r1 00000008 r2 ffffffff r3 00000000
I/DEBUG ( 111): r4 00000008 r5 000003c0 r6 0000000a r7 00000025
I/DEBUG ( 111): r8 a7762fa0 r9 41b52aa8 10 41b52ac4 fp 00000000
I/DEBUG ( 111): ip 4005c12d sp 41b529e8 lr 4005c13b pc 400506b0 cpsr 00000010
I/DEBUG ( 111): d0 0000079800000000 d1 44a0000000000002
I/DEBUG ( 111): d2 4000333340000000 d3 0000000000000a20
I/DEBUG ( 111): d4 0000000000000000 d5 0000000000000000
I/DEBUG ( 111): d6 0000050000000000 d7 0000000000000000
I/DEBUG ( 111): d8 0000000000000000 d9 0000000000000000
I/DEBUG ( 111): d10 0000000000000000 d11 0000000000000000
I/DEBUG ( 111): d12 0000000000000000 d13 0000000000000000
I/DEBUG ( 111): d14 0000000000000000 d15 0000000000000000
I/DEBUG ( 111): d16 3fe0000000000000 d17 4001540d31d1dd7f
I/DEBUG ( 111): d18 4000000000000000 d19 bfc540d31d1dd7f1
I/DEBUG ( 111): d20 3f1153849946b6ba d21 bebbb89c51a06d6e
I/DEBUG ( 111): d22 3ff0000000000000 d23 3feb390135d1ac72
I/DEBUG ( 111): d24 3e66376972bea4d0 d25 0000000000000000
I/DEBUG ( 111): d26 0000000000000000 d27 0000000000000000
I/DEBUG ( 111): d28 0000000000000000 d29 0000000000000000
I/DEBUG ( 111): d30 0000000000000000 d31 0000000000000000
I/DEBUG ( 111): scr 20000010
I/DEBUG ( 111):
I/DEBUG ( 111): #00 pc 0000d6b0 /system/lib/libc.so (kill)
I/DEBUG ( 111): #01 pc 00019138 /system/lib/libc.so (raise)
I/DEBUG ( 111):
I/DEBUG ( 111): code around pc:
I/DEBUG ( 111): 40050690 e2601000 e0100001 116f0f10 12600020 ..`.......o. .`.
I/DEBUG ( 111): 400506a0 e12fff1e e92d50f0 e3a07025 ef000000 ../..P-.%p......
I/DEBUG ( 111): 400506b0 e8bd50f0 e1b00000 512fff1e ea00b0f8 .P......../Q....
I/DEBUG ( 111): 400506c0 e92d50f0 e3a070ee ef000000 e8bd50f0 .P-..p.......P..
I/DEBUG ( 111): 400506d0 e1b00000 512fff1e ea00b0f1 f5d0f000 ....../Q........
I/DEBUG ( 111):
I/DEBUG ( 111): code around lr:
I/DEBUG ( 111): 4005c118 0002a37a 461cb537 e9cd17dd f7f34500 z...7..F.....E..
I/DEBUG ( 111): 4005c128 bd3ee9c0 4604b510 e81cf7f3 f7f44621 ..>....F....!F..
I/DEBUG ( 111): 4005c138 bd10eab6 49034602 2300b510 f7f44802 .....F.I...#.H..
I/DEBUG ( 111): 4005c148 bd10e8b4 28121969 fee1dead 2400b513 ....i..(.......$
I/DEBUG ( 111): 4005c158 94019400 ef5af7f3 bf00bd1c 4c11b570 ......Z.....p..L
I/DEBUG ( 111):
I/DEBUG ( 111): stack:
I/DEBUG ( 111): 41b529a8 00000000
I/DEBUG ( 111): 41b529ac 00000000
I/DEBUG ( 111): 41b529b0 a7762288
I/DEBUG ( 111): 41b529b4 a7763f48
I/DEBUG ( 111): 41b529b8 00001000
I/DEBUG ( 111): 41b529bc 00000000
I/DEBUG ( 111): 41b529c0 a7763e88
I/DEBUG ( 111): 41b529c4 00000000
I/DEBUG ( 111): 41b529c8 00001000
I/DEBUG ( 111): 41b529cc 00000001
I guess we are dealing with some parser error in CameraParameters.cpp. I mean some value supplied to liboemcamera breaks it.
Would someone strace it?
I am trying to port Cyanogenmod 12 to Trend 2 SM-G313HN, but there is a problem loading the video driver and it is stuck in a infinite bootloop. Looks like the library has some unknown calls or something. With CM11 the video worked.
Here is what logcat shows:
Code:
I/SurfaceFlinger( 2277): SurfaceFlinger is starting
I/SurfaceFlinger( 2277): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
E/libEGL ( 2277): load_driver(/system/lib/egl/libGLES_hawaii.so): dlopen failed: cannot locate symbol "ucnv_convertEx_51" referenced by "libGLES_hawaii.so"...
F/libEGL ( 2277): couldn't find an OpenGL ES implementation
F/libc ( 2277): Fatal signal 6 (SIGABRT), code -6 in tid 2277 (surfaceflinger)
I/DEBUG ( 1596): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 1596): Build fingerprint: 'samsung/cm_vivaltonfc3g/vivaltonfc3g:5.0.2/LRX22G/7bc057ecca:userdebug/test-keys'
I/DEBUG ( 1596): Revision: '1'
I/DEBUG ( 1596): ABI: 'arm'
I/DEBUG ( 1596): pid: 2277, tid: 2277, name: surfaceflinger >>> /system/bin/surfaceflinger <<<
I/DEBUG ( 1596): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
I/DEBUG ( 1596): Abort message: 'couldn't find an OpenGL ES implementation'
I/DEBUG ( 1596): r0 00000000 r1 000008e5 r2 00000006 r3 00000000
I/DEBUG ( 1596): r4 40012114 r5 00000006 r6 00000002 r7 0000010c
I/DEBUG ( 1596): r8 41a11550 r9 00000000 sl 00000000 fp be93da6c
I/DEBUG ( 1596): ip 000008e5 sp be93d4d8 lr 4002f539 pc 40054c6c cpsr 600f0010
I/DEBUG ( 1596):
I/DEBUG ( 1596): backtrace:
I/DEBUG ( 1596): #00 pc 00038c6c /system/lib/libc.so (tgkill+12)
I/DEBUG ( 1596): #01 pc 00013535 /system/lib/libc.so (pthread_kill+52)
I/DEBUG ( 1596): #02 pc 00014293 /system/lib/libc.so (raise+10)
I/DEBUG ( 1596): #03 pc 00010a75 /system/lib/libc.so (__libc_android_abort+36)
I/DEBUG ( 1596): #04 pc 0000f244 /system/lib/libc.so (abort+4)
I/DEBUG ( 1596): #05 pc 00007611 /system/lib/libcutils.so (__android_log_assert+88)
I/DEBUG ( 1596): #06 pc 00043565 /system/lib/libEGL.so
I/DEBUG ( 1596): #07 pc 00010a75 /system/lib/libEGL.so
I/DEBUG ( 1596): #08 pc 00011259 /system/lib/libEGL.so (eglGetDisplay+24)
I/DEBUG ( 1596): #09 pc 000189b3 /system/lib/libsurfaceflinger.so (android::SurfaceFlinger::init()+70)
I/DEBUG ( 1596): #10 pc 000007e1 /system/bin/surfaceflinger
I/DEBUG ( 1596): #11 pc 0000f101 /system/lib/libc.so (__libc_init+44)
I/DEBUG ( 1596): #12 pc 000008d8 /system/bin/surfaceflinger
D/AT_Distributor( 1615): try to connect RIL
E/AT_Distributor( 1615): connection fail & retry connect(62)
I/DEBUG ( 1596):
I/DEBUG ( 1596): Tombstone written to: /data/tombstones/tombstone_01
SOLVED: I had to patch external/icu/icu4c/source/common/ucnv.c
Code:
diff --git a/external/icu/icu4c/source/common/ucnv.c b/external/icu/icu4c/source/common/ucnv.c
index bb4c068..3078368 100755
--- a/external/icu/icu4c/source/common/ucnv.c
+++ b/external/icu/icu4c/source/common/ucnv.c
@@ -2984,6 +2984,74 @@ U_STABLE void U_EXPORT2 UCNV_TO_U_CALLBACK_STOP_48 (
reason, err);
}
+U_CAPI void U_EXPORT2 ucnv_setToUCallBack_51 (UConverter * converter,
+ UConverterToUCallback newAction,
+ const void* newContext,
+ UConverterToUCallback *oldAction,
+ const void** oldContext,
+ UErrorCode * err) {
+ ucnv_setToUCallBack(converter, newAction, newContext,
+ oldAction, oldContext, err);
+}
+
+U_CAPI void U_EXPORT2 ucnv_close_51 (UConverter * converter) {
+ ucnv_close (converter);
+}
+
+U_CAPI void U_EXPORT2
+ucnv_setFromUCallBack_51 (UConverter * converter,
+ UConverterFromUCallback newAction,
+ const void* newContext,
+ UConverterFromUCallback *oldAction,
+ const void** oldContext,
+ UErrorCode * err) {
+
+ ucnv_setFromUCallBack(converter, newAction, newContext, oldAction,
+ oldContext, err);
+}
+
+U_CAPI void U_EXPORT2
+ucnv_convertEx_51 (UConverter *targetCnv, UConverter *sourceCnv,
+ char **target, const char *targetLimit,
+ const char **source, const char *sourceLimit,
+ UChar *pivotStart, UChar **pivotSource,
+ UChar **pivotTarget, const UChar *pivotLimit,
+ UBool reset, UBool flush,
+ UErrorCode *pErrorCode) {
+ ucnv_convertEx(targetCnv, sourceCnv, target, targetLimit, source,
+ sourceLimit, pivotStart, pivotSource,
+ pivotTarget, pivotLimit, reset, flush,
+ pErrorCode);
+}
+
+U_CAPI UConverter* U_EXPORT2
+ucnv_open_51 (const char *name,
+ UErrorCode * err) {
+ return ucnv_open(name, err);
+}
+
+U_STABLE void U_EXPORT2 UCNV_FROM_U_CALLBACK_STOP_51 (
+ const void *context,
+ UConverterFromUnicodeArgs *fromUArgs,
+ const UChar* codeUnits,
+ int32_t length,
+ UChar32 codePoint,
+ UConverterCallbackReason reason,
+ UErrorCode * err) {
+ return UCNV_FROM_U_CALLBACK_STOP(context, fromUArgs, codeUnits,
+ length, codePoint, reason, err);
+}
+
+U_STABLE void U_EXPORT2 UCNV_TO_U_CALLBACK_STOP_51 (
+ const void *context,
+ UConverterToUnicodeArgs *toUArgs,
+ const char* codeUnits,
+ int32_t length,
+ UConverterCallbackReason reason,
+ UErrorCode * err) {
+ return UCNV_TO_U_CALLBACK_STOP(context, toUArgs, codeUnits, length,
+ reason, err);
+}
#endif
/*
good job
hello friend, you managed to finish the CM12?​:good:
Nikiz, keep going!
Where can we found your CM11 build for Trend 2 or just a local_manifest?! I would like to compile AOSP 5.1. after I had found 8Gb archive with sources.
Any progress?
TokRa said:
Any progress?
Click to expand...
Click to collapse
I am working on CM11 for this phone. (I have CM12 sources and I am downloading Omnirom 4.4 & 5.1 sources right now) We might have a beta build soon. There are some issues I need to work on. Wifi is not working right now and the RIL has some issues. (Everything else seems to work, but there is no phone number on incoming calls and calling someone kills the audio on the device for some reason)
Thank you! Looking forward to test it.
Nikiz said:
I am working on CM11 for this phone. (I have CM12 sources and I am downloading Omnirom 4.4.4 & 5.2 sources right now) We might have a beta build soon. There are some issues I need to work on. Wifi is not working right now and the RIL has some issues. (Everything else seems to work, but there is no phone number on incoming calls and calling someone kills the audio on the device for some reason)
Click to expand...
Click to collapse
Hey, could you please share a device folder (this one that's boardconfig.mk etcetc)?
Btw i've tried to build aosp 4.4.4_r1 and it compiled fine but sadly it gets stuck on loading (bootloop). Did you use the stock kernel or compiled it from source?
itigr said:
Hey, could you please share a device folder (this one that's boardconfig.mk etcetc)?
Btw i've tried to build aosp 4.4.4_r1 and it compiled fine but sadly it gets stuck on loading (bootloop). Did you use the stock kernel or compiled it from source?
Click to expand...
Click to collapse
At first I used the stock kernel and now I compile it from source. (Kernel configuration is the same as stock, but "Samsung MTP" is disabled, with it MTP does not work correctly) The device configuration is here, I'll update it today.
The device will not boot if your boot.img does not have the device tree-file as a "secondary bootloader" or you aren't using the /init executable from the stock boot.img. vivaltonfc3g is weird.. I am working on reverse engineering some binaries so we can use our own files compiled from source.
Nikiz said:
At first I used the stock kernel and now I compile it from source. (Kernel configuration is the same as stock, but "Samsung MTP" is disabled, with it MTP does not work correctly) The device configuration is here, I'll update it today.
The device will not boot if your boot.img does not have the device tree-file as a "secondary bootloader" or you aren't using the /init executable from the stock boot.img. vivaltonfc3g is weird.. I am working on reverse engineering some binaries so we can use our own files compiled from source.
Click to expand...
Click to collapse
Thanks
I am currently having fun with vivaltods5m (gm313hu. same as yours, an nfc support is the only difference, even stock kernel images are same).
Successfuly downloaded and built omnirom today and it boots fine tho wifi doesn't work and dialer has the same issues that you've had.
But also sound doesn't work, here's a logcat dump
Code:
E/HAL ( 2307): load: module=/system/lib/hw/audio.primary.hawaii.so
E/HAL ( 2307): dlopen failed: cannot locate symbol "pcm_drain" referenced by "audio.primary.hawaii.so"...
E/AudioFlinger( 2307): int android::load_audio_interface(const char*, audio_hw_device_t**) couldn't load audio hw module audio.primary (Invalid argument)
E/AudioPolicyManagerBase( 2307): Not output found for attached devices 00000003
E/AudioPolicyManagerBase( 2307): Failed to open primary output
E/AudioPolicyManagerBase( 2307): getDeviceForStrategy() speaker device not found
maybe i'm missing some proprietary lib or should modify some code. no idea
itigr said:
Thanks
I am currently having fun with vivaltods5m (gm313hu. same as yours, an nfc support is the only difference, even stock kernel images are same).
Successfuly downloaded and built omnirom today and it boots fine tho wifi doesn't work and dialer has the same issues that you've had.
But also sound doesn't work, here's a logcat dump
Code:
E/HAL ( 2307): load: module=/system/lib/hw/audio.primary.hawaii.so
E/HAL ( 2307): dlopen failed: cannot locate symbol "pcm_drain" referenced by "audio.primary.hawaii.so"...
E/AudioFlinger( 2307): int android::load_audio_interface(const char*, audio_hw_device_t**) couldn't load audio hw module audio.primary (Invalid argument)
E/AudioPolicyManagerBase( 2307): Not output found for attached devices 00000003
E/AudioPolicyManagerBase( 2307): Failed to open primary output
E/AudioPolicyManagerBase( 2307): getDeviceForStrategy() speaker device not found
maybe i'm missing some proprietary lib or should modify some code. no idea
Click to expand...
Click to collapse
Oh, I forgot add the patches. You need to modify tinyalsa. Add these anywhere. I put them between pcm_start and pcm_stop.
external/tinyalsa/pcm.c
Code:
int pcm_drain(struct pcm *pcm)
{
if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_DRAIN) < 0)
return oops(pcm, errno, "drain failed");
return 0;
}
external/tinyalsa/include/tinyalsa/asoundlib.h
Code:
int pcm_drain(struct pcm *pcm);
Nikiz said:
Oh, I forgot add the patches. You need to modify tinyalsa. Add these anywhere. I put them between pcm_start and pcm_stop.
external/tinyalsa/pcm.c
Code:
int pcm_drain(struct pcm *pcm)
{
if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_DRAIN) < 0)
return oops(pcm, errno, "drain failed");
return 0;
}
external/tinyalsa/include/tinyalsa/asoundlib.h
Code:
int pcm_drain(struct pcm *pcm);
Click to expand...
Click to collapse
Still no luck. now i'm getting this
Code:
I/AudioFlinger( 2038): loadHwModule() Loaded primary audio interface from BRCM audio HW HAL (audio) handle 1
V/audio_hw( 2038): ENTERING adev_open_output_stream() devices = 0x2 Fs = 44100
V/audio_hw( 2038): dump.audio.pcm = OFF
V/audio_hw( 2038): Data Dump is disabled
D/audio_out( 2038): soundsolution_init sample_rate = 48000
I/wrap_soundbooster( 2038): [wrap_soundbooster] CreateSoundBooster entered
I/wrap_soundbooster( 2038): [wrap_soundbooster] SoundBoosterInit entered
V/alsa_pcm( 2038): PCM INIT
V/alsa_pcm( 2038): PCM OPEN
V/alsa_pcm( 2038): alsa_pcm_open: handle = 0x40f292e8,pcm_handle->handle =0x0
V/alsa_pcm( 2038): alsa_pcm_open:(After)pcm_handle->handle =0x40f292e8
V/alsa_pcm( 2038): buffersize_samples = 4096
D/alsa_pcm( 2038): channels = 2, Fs = 48000, period_size = 0x800, periods = 2
D/alsa_pcm( 2038): pcm_handle->bufSize_bytes = 0x2000 samples = 0x1000
V/alsa_pcm( 2038): (After Norm)pcm_handle->bufSize_bytes =8192
V/alsa_pcm( 2038): PCM CLOSE
V/alsa_pcm( 2038): alsa_pcm_close: handle = 0x40f292e8
V/alsa_hal_controller( 2038): ENTERING select_output_device out_devices = 0x2
V/alsa_hal_controller( 2038): select_output_device out cur dev = 0 device = 2 cur_device_count = 0 new_device_count = 1
V/alsa_hal_controller( 2038): new device to be selected device = 2
V/alsa_hal_controller( 2038): get_playback_device returning driver_device[0] = 4, driver_device[1] = 4
V/alsa_hal_controller( 2038): select_output_device calling set_output_device with SELECT_DEV
V/alsa_hal_controller( 2038): ENTERING set_output_device() driver_device[0] = 4 driver_device[1] = 4
V/alsa_hal_controller( 2038): set_output_device called for cfg_device = 0
V/alsa_hal_controller( 2038): set_stereo_speaker() set to 1
V/alsa_hal_controller( 2038): set_output_device() for P1-SEL & P2-SEL - 4
V/alsa_hal_controller( 2038): LEAVING set_output_device()
V/alsa_hal_controller( 2038): update currentDevice = 2
V/alsa_hal_controller( 2038): LEAVING select_output_device ret
V/audio_out( 2038): ENTERING out_get_format()
V/audio_out( 2038): ENTERING out_get_channels()
V/audio_out( 2038): ENTERING out_get_sample_rate()
V/audio_out( 2038): LEAVING out_get_sample_rate() : sample rate = 48000
V/audio_hw( 2038): LEAVING adev_open_output_stream() out = 0x40f29008 out_stream = 0x40f29008
V/audio_out( 2038): ENTERING out_get_sample_rate()
V/audio_out( 2038): LEAVING out_get_sample_rate() : sample rate = 48000
V/audio_out( 2038): ENTERING out_get_channels()
V/audio_out( 2038): ENTERING out_get_format()
V/audio_out( 2038): ENTERING out_get_format()
V/audio_out( 2038): ENTERING out_get_channels()
V/audio_out( 2038): ENTERING out_get_buffer_size()
V/audio_out( 2038): LEAVING out_get_buffer_size() Buffer size = 8192
I/AudioFlinger( 2038): HAL output buffer size 2048 frames, normal mix buffer size 2048 frames
I/AudioMixer( 2038): found effect "Multichannel Downmix To Stereo" from The Android Open Source Project
V/audio_out( 2038): ENTERING out_get_buffer_size()
V/audio_out( 2038): LEAVING out_get_buffer_size() Buffer size = 8192
V/audio_out( 2038): ENTERING out_get_format()
V/audio_out( 2038): ENTERING out_get_sample_rate()
V/audio_out( 2038): LEAVING out_get_sample_rate() : sample rate = 48000
V/audio_out( 2038): ENTERING out_get_channels()
V/audio_out( 2038): entering out_get_latency()
V/audio_out( 2038): leaving out_get_latency() : 148
V/audio_out( 2038): entering out_get_latency()
V/audio_out( 2038): leaving out_get_latency() : 148
I/AudioFlinger( 2038): Using module 1 has the primary audio interface
V/audio_hw( 2038): ENTERING adev_set_mode() 0 <- 0
V/audio_hw( 2038): LEAVING adev_set_mode() 0
V/AudioPolicyManagerBase( 2038): setOutputDevice() output 2 device 0002 force 1 delayMs 0
I/AudioFlinger( 2038): AudioFlinger's thread 0x4102f008 ready to run
F/libc ( 2038): Fatal signal 11 (SIGSEGV) at 0xbe9d3000 (code=1), thread 2038 (mediaserver)
V/audio_out( 2038): ENTERING out_standby()
V/audio_out( 2038): ENTERING do_output_standby()
V/audio_out( 2038): dump.audio.pcm = OFF
V/audio_out( 2038): Data Dump is disabled
V/audio_out( 2038): LEAVING do_output_standby()
V/audio_out( 2038): LEAVING out_standby()
I/DEBUG ( 1571): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 1571): Build fingerprint: 'unknown'
I/DEBUG ( 1571): Revision: '1'
I/DEBUG ( 1571): pid: 2038, tid: 2038, name: mediaserver >>> /system/bin/mediaserver <<<
I/DEBUG ( 1571): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr be9d3000
I/DEBUG ( 1571): r0 40f29fa8 r1 be9d2fe8 r2 079e2f18 r3 44494f52
I/DEBUG ( 1571): r4 4f52505f r5 54524550 r6 4f575f59 r7 50534b52
I/DEBUG ( 1571): r8 3d454341 r9 40f29708 sl 00000008 fp be9d2748
I/DEBUG ( 1571): ip 00302c39 sp be9d2704 lr 7379732f pc 4008e212 cpsr 200f0070
I/DEBUG ( 1571): d0 734d79616c656420 d1 0000000000000002
I/DEBUG ( 1571): d2 69206f6964756120 d3 656361667265746e
I/DEBUG ( 1571): d4 0000000000000000 d5 0000000000000000
I/DEBUG ( 1571): d6 0000080000000000 d7 40a0000000000000
I/DEBUG ( 1571): d8 0000000000000000 d9 0000000000000000
I/DEBUG ( 1571): d10 0000000000000000 d11 0000000000000000
I/DEBUG ( 1571): d12 0000000000000000 d13 0000000000000000
I/DEBUG ( 1571): d14 0000000000000000 d15 0000000000000000
I/DEBUG ( 1571): d16 417349cc01020c4a d17 0000000000000002
I/DEBUG ( 1571): d18 41aad90c7e000000 d19 0000000000000000
I/DEBUG ( 1571): d20 0000000000000000 d21 0000000000000000
I/DEBUG ( 1571): d22 0000000000000000 d23 0000000000000000
I/DEBUG ( 1571): d24 0000000000000000 d25 0000000000000000
I/DEBUG ( 1571): d26 0000000000000000 d27 0000000000000000
I/DEBUG ( 1571): d28 0000000000000000 d29 0000000000000000
I/DEBUG ( 1571): d30 0000000000000000 d31 0000000000000000
I/DEBUG ( 1571): scr 80000010
I/DEBUG ( 1571):
I/DEBUG ( 1571): backtrace:
I/DEBUG ( 1571): #00 pc 00022212 /system/lib/libc.so (__memcpy_base_aligned+69)
I/DEBUG ( 1571): #01 pc 00010645 /system/lib/libutils.so (android::SortedVectorImpl::_indexOrderOf(void const*, unsigned int*) const+48)
I/DEBUG ( 1571): #02 pc 00008e2b /system/lib/libaudiopolicy_sec.so
I/DEBUG ( 1571): #03 pc 0000b6b3 /system/lib/libaudiopolicy_sec.so
I/DEBUG ( 1571): #04 pc 0000f367 /system/lib/libaudiopolicy_sec.so (android::AudioPolicyManagerBase::setOutputDevice(int, unsigned int, bool, int)+50)
I/DEBUG ( 1571): #05 pc 0000f775 /system/lib/libaudiopolicy_sec.so (android::AudioPolicyManagerBase::AudioPolicyManagerBase(android::AudioPolicyClientInterface*)+712)
I/DEBUG ( 1571): #06 pc 00004a0d /system/lib/hw/audio_policy.hawaii.so (android::AudioPolicyManagerALSA::AudioPolicyManagerALSA(android::AudioPolicyClientInterface*)+4)
I/DEBUG ( 1571): #07 pc 00004a81 /system/lib/hw/audio_policy.hawaii.so (createAudioPolicyManager+16)
I/DEBUG ( 1571): #08 pc 00003c55 /system/lib/hw/audio_policy.hawaii.so
I/DEBUG ( 1571): #09 pc 000296e1 /system/lib/libaudioflinger.so (android::AudioPolicyService::AudioPolicyService()+428)
I/DEBUG ( 1571): #10 pc 00001cdd /system/bin/mediaserver
I/DEBUG ( 1571): #11 pc 00001eab /system/bin/mediaserver
I/DEBUG ( 1571): #12 pc 0000e413 /system/lib/libc.so (__libc_init+50)
I/DEBUG ( 1571): #13 pc 00001920 /system/bin/mediaserver
I/DEBUG ( 1571):
I/DEBUG ( 1571): stack:
I/DEBUG ( 1571): be9d26c4 00000002
I/DEBUG ( 1571): be9d26c8 40b6ac30
I/DEBUG ( 1571): be9d26cc 4003264f /system/lib/libaudioflinger.so
I/DEBUG ( 1571): be9d26d0 40a6b508
I/DEBUG ( 1571): be9d26d4 400343f9 /system/lib/libaudioflinger.so
I/DEBUG ( 1571): be9d26d8 00000002
I/DEBUG ( 1571): be9d26dc 00000000
I/DEBUG ( 1571): be9d26e0 00000000
I/DEBUG ( 1571): be9d26e4 00000001
I/DEBUG ( 1571): be9d26e8 40f29008
I/DEBUG ( 1571): be9d26ec 40a6b51c
I/DEBUG ( 1571): be9d26f0 00000002
I/DEBUG ( 1571): be9d26f4 40a6b53c
I/DEBUG ( 1571): be9d26f8 0000bb80
I/DEBUG ( 1571): be9d26fc 00000003
I/DEBUG ( 1571): be9d2700 00000001
I/DEBUG ( 1571): #00 be9d2704 00000000
I/DEBUG ( 1571): be9d2708 40b6a360
I/DEBUG ( 1571): be9d270c 00000000
I/DEBUG ( 1571): be9d2710 00000000
I/DEBUG ( 1571): be9d2714 00000000
I/DEBUG ( 1571): be9d2718 40f29708
I/DEBUG ( 1571): be9d271c 40139647 /system/lib/libutils.so (android::SortedVectorImpl::_indexOrderOf(void const*, unsigned int*) const+50)
I/DEBUG ( 1571): #01 be9d2720 be9d2748 [stack]
I/DEBUG ( 1571): be9d2724 40b6a360
I/DEBUG ( 1571): be9d2728 00000002
I/DEBUG ( 1571): be9d272c 00000000
I/DEBUG ( 1571): be9d2730 00000000
I/DEBUG ( 1571): be9d2734 00000002
I/DEBUG ( 1571): be9d2738 00000001
I/DEBUG ( 1571): be9d273c 40f4bed4 /system/lib/libaudiopolicy_sec.so
I/DEBUG ( 1571): be9d2740 40f48568 /system/lib/libaudiopolicy_sec.so
I/DEBUG ( 1571): be9d2744 40f3ce2f /system/lib/libaudiopolicy_sec.so
I/DEBUG ( 1571): #02 be9d2748 00000002
I/DEBUG ( 1571): be9d274c 00000002
I/DEBUG ( 1571): be9d2750 f750e65e
I/DEBUG ( 1571): be9d2754 40f3f6b7 /system/lib/libaudiopolicy_sec.so
...
I/DEBUG ( 1571): memory map around fault addr be9d3000:
I/DEBUG ( 1571): be9b2000-be9d3000 rw- [stack]
I/DEBUG ( 1571): (no map for address)
I/DEBUG ( 1571): ffff0000-ffff1000 r-x [vectors]
I/ServiceManager( 1567): service 'media.audio_flinger' died
I/ServiceManager( 1567): service 'media.player' died
I/ServiceManager( 1567): service 'media.camera' died
D/hawaii.hwcomposer( 1572): FBDevice::vsync called 61 times
W/AudioSystem( 1972): AudioPolicyService not published, waiting...
Code:
-----------------------------------------------------
signal 11 (SIGSEGV) at 0xbeee0000 (code=1), thread 2194 (mediaserver)
pid: 2194, tid: 2194, name: mediaserver >>> /system/bin/mediaserver <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr beee0000
r0 40f29fa8 r1 beedffe8 r2 079f2f18 r3 44494f52
r4 4f52505f r5 54524550 r6 4f575f59 r7 50534b52
r8 3d454341 r9 40f29708 sl 00000008 fp beedf748
ip 00302c39 sp beedf704 lr 7379732f pc 4008e212
Stack Trace:
RELADDR FUNCTION FILE:LINE
00022212 __memcpy_base_aligned+70 /home/kotek/wdir/android/bionic/libc/arch-arm/cortex-a9/bionic/memcpy_base.S:191
00010645 android::SortedVectorImpl::_indexOrderOf(void const*, unsigned int*) const+48 /home/kotek/wdir/android/system/core/libutils/VectorImpl.cpp:577
00008e2b <unknown> /system/lib/libaudiopolicy_sec.so
0000b6b3 <unknown> /system/lib/libaudiopolicy_sec.so
0000f367 android::AudioPolicyManagerBase::setOutputDevice(int, unsigned int, bool, int)+50 /system/lib/libaudiopolicy_sec.so
0000f775 android::AudioPolicyManagerBase::AudioPolicyManagerBase(android::AudioPolicyClientInterface*)+712 /system/lib/libaudiopolicy_sec.so
00004a0d android::AudioPolicyManagerALSA::AudioPolicyManagerALSA(android::AudioPolicyClientInterface*)+4 /system/lib/hw/audio_policy.hawaii.so
00004a81 createAudioPolicyManager+16 /system/lib/hw/audio_policy.hawaii.so
00003c55 <unknown> /system/lib/hw/audio_policy.hawaii.so
000296e1 android::AudioPolicyService::AudioPolicyService()+428 /home/kotek/wdir/android/frameworks/av/services/audioflinger/AudioPolicyService.cpp:89
00001cdd android::BinderService<android::AudioPolicyService>::publish(bool)+36 /home/kotek/wdir/android/frameworks/native/include/binder/BinderService.h:41
v------> android::BinderService<android::AudioPolicyService>::instantiate() /home/kotek/wdir/android/frameworks/native/include/binder/BinderService.h:49
00001eab main+382 /home/kotek/wdir/android/frameworks/av/media/mediaserver/main_mediaserver.cpp:130
0000e413 __libc_init+50 /home/kotek/wdir/android/bionic/libc/bionic/libc_init_dynamic.cpp:112
00001920 _start+96 register.cpp:?
Stack Data:
ADDR VALUE FUNCTION FILE:LINE
beedf6c4 00000002
beedf6c8 40b6ac30
beedf6cc 4003264f <unknown> /system/lib/libaudioflinger.so
beedf6d0 40a6b508
beedf6d4 400343f9 <unknown> /system/lib/libaudioflinger.so
beedf6d8 00000002
beedf6dc 00000000
beedf6e0 00000000
beedf6e4 00000001
beedf6e8 40f29008
beedf6ec 40a6b51c
beedf6f0 00000002
beedf6f4 40a6b53c
beedf6f8 0000bb80
beedf6fc 00000003
beedf700 00000001
beedf704 00000000
beedf708 40b6a360
beedf70c 00000000
beedf710 00000000
beedf714 00000000
beedf718 40f29708
beedf71c 40139647 android::SortedVectorImpl::_indexOrderOf(void const*, unsigned int*) const+50 /system/lib/libutils.so
beedf720 beedf748 [stack]
beedf724 40b6a360
beedf728 00000002
beedf72c 00000000
beedf730 00000000
beedf734 00000002
beedf738 00000001
beedf73c 40f4ded4 <unknown> /system/lib/libaudiopolicy_sec.so
beedf740 40f4a568 <unknown> /system/lib/libaudiopolicy_sec.so
beedf744 40f3ee2f <unknown> /system/lib/libaudiopolicy_sec.so
beedf748 00000002
beedf74c 00000002
beedf750 0fe7c7b2
beedf754 40f416b7 <unknown> /system/lib/libaudiopolicy_sec.so
Nevermind, got it, i shouldn't use audio_policy.hawaii from stock.
Seems like wifi is barely working for me (slider doesn't grey out). it gets stuck on finding networks
it does not detect rfkill iface
logcat
Code:
I/wpa_supplicant( 2037): wpa_supplicant v2.1-devel-4.4.22014-08-06/01:01:21
I/wpa_supplicant( 2037): [wpa_supplicant_init]: use SECRIL
I/wpa_supplicant( 2037): Successfully initialized wpa_supplicant
I/wpa_supplicant( 2037): >>>>> Not GET KEY, IV <<<<<
I/wpa_supplicant( 2037): >>>>> Not GET KEY, IV <<<<<
I/wpa_supplicant( 2037): rfkill: Cannot open RFKILL control device
I/wpa_supplicant( 2037): CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00.00.00 SSID=
I/wpa_supplicant( 2037): CTRL-EVENT-STATE-CHANGE id=-1 state=0 BSSID=00.00.00 SSID=
I/wpa_supplicant( 2037): >>>>> Not GET KEY, IV <<<<<
I/wpa_supplicant( 2037): >>>>> Not GET KEY, IV <<<<<
I/wpa_supplicant( 2037): rfkill: Cannot open RFKILL control device
[B]E/wpa_supplicant( 2037): nl80211: Could not configure driver to use managed mode
E/wpa_supplicant( 2037): p2p0: Failed to initialize driver interface[/B]
I/wpa_supplicant( 2037): >>>>> Not GET KEY, IV <<<<<
I/wpa_supplicant( 2037): >>>>> Not GET KEY, IV <<<<<
[B]I/wpa_supplicant( 2037): rfkill: Cannot open RFKILL control device
[/B]I/wpa_supplicant( 2037): CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00.00.00 SSID=
I/wpa_supplicant( 2037): P2P: initialized channels: 81:1,2,3,4,5,6,7,8,9,10,11,12,13
I/wpa_supplicant( 2037): CTRL-EVENT-STATE-CHANGE id=-1 state=0 BSSID=00.00.00 SSID=
I/wpa_supplicant( 2037): P2P: updated channels: 81:1,2,3,4,5,6,7,8,9,10,11,12,13
I/wpa_supplicant( 2037): wlan0: Setting scan request: 0 sec 0 usec
I/wpa_supplicant( 2037): Skip scan - bUseNetwork false
I/wpa_supplicant( 2037): P2P: updated channels: 81:1,2,3,4,5,6,7,8,9,10,11,12,13
I/wpa_supplicant( 2037): P2P: updated channels: 81:1,2,3,4,5,6,7,8,9,10,11,12,13
itigr said:
Nevermind, got it, i shouldn't use audio_policy.hawaii from stock.
Seems like wifi is barely working for me (slider doesn't grey out). it gets stuck on finding networks
it does not detect rfkill iface
logcat
Code:
I/wpa_supplicant( 2037): wpa_supplicant v2.1-devel-4.4.22014-08-06/01:01:21
I/wpa_supplicant( 2037): [wpa_supplicant_init]: use SECRIL
I/wpa_supplicant( 2037): Successfully initialized wpa_supplicant
I/wpa_supplicant( 2037): >>>>> Not GET KEY, IV <<<<<
I/wpa_supplicant( 2037): >>>>> Not GET KEY, IV <<<<<
I/wpa_supplicant( 2037): rfkill: Cannot open RFKILL control device
I/wpa_supplicant( 2037): CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00.00.00 SSID=
I/wpa_supplicant( 2037): CTRL-EVENT-STATE-CHANGE id=-1 state=0 BSSID=00.00.00 SSID=
I/wpa_supplicant( 2037): >>>>> Not GET KEY, IV <<<<<
I/wpa_supplicant( 2037): >>>>> Not GET KEY, IV <<<<<
I/wpa_supplicant( 2037): rfkill: Cannot open RFKILL control device
[B]E/wpa_supplicant( 2037): nl80211: Could not configure driver to use managed mode
E/wpa_supplicant( 2037): p2p0: Failed to initialize driver interface[/B]
I/wpa_supplicant( 2037): >>>>> Not GET KEY, IV <<<<<
I/wpa_supplicant( 2037): >>>>> Not GET KEY, IV <<<<<
[B]I/wpa_supplicant( 2037): rfkill: Cannot open RFKILL control device
[/B]I/wpa_supplicant( 2037): CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00.00.00 SSID=
I/wpa_supplicant( 2037): P2P: initialized channels: 81:1,2,3,4,5,6,7,8,9,10,11,12,13
I/wpa_supplicant( 2037): CTRL-EVENT-STATE-CHANGE id=-1 state=0 BSSID=00.00.00 SSID=
I/wpa_supplicant( 2037): P2P: updated channels: 81:1,2,3,4,5,6,7,8,9,10,11,12,13
I/wpa_supplicant( 2037): wlan0: Setting scan request: 0 sec 0 usec
I/wpa_supplicant( 2037): Skip scan - bUseNetwork false
I/wpa_supplicant( 2037): P2P: updated channels: 81:1,2,3,4,5,6,7,8,9,10,11,12,13
I/wpa_supplicant( 2037): P2P: updated channels: 81:1,2,3,4,5,6,7,8,9,10,11,12,13
Click to expand...
Click to collapse
My wifi is not working either. I get the same error too. There is the same error on the stock rom too, but wifi is working on that, so that might not be the problem.. This has bugged me a long time. And the calling someone "kills the audio" does not actually kill the audio, it is unable to stop the call for some reason and there is no system sounds during a call. It might be because the RIL does not send the UNSOL_CALL_RING-command. I'll try if this patch makes a difference.
Nikiz said:
My wifi is not working either. I get the same error too. There is the same error on the stock rom too, but wifi is working on that, so that might not be the problem.. This has bugged me a long time. And the calling someone "kills the audio" does not actually kill the audio, it is unable to stop the call for some reason and there is no system sounds during a call. It might be because the RIL does not send the UNSOL_CALL_RING-command. I'll try if this patch makes a difference.
Click to expand...
Click to collapse
Yeah, i noticed that too. Just tried out this patch but calls still don't stop.
UPD: incoming calls work fine. i can hang up and speaker/mic works. outgoing call problem still remains, maybe this happens due to dualsim/ril idk.
itigr said:
Yeah, i noticed that too. Just tried out this patch but calls still don't stop.
UPD: incoming calls work fine. i can hang up and speaker/mic works. outgoing call problem still remains, maybe this happens due to dualsim/ril idk.
Click to expand...
Click to collapse
Vivaltonfc3g is actually a single SIM phone. Well, technically it is a dual sim phone with a single SIM slot.. But the patch did not work for me either. Btw, do you get a phone number when receiving an incoming call? I don't.
Nikiz said:
Vivaltonfc3g is actually a single SIM phone. Well, technically it is a dual sim phone with a single SIM slot.. But the patch did not work for me either. Btw, do you get a phone number when receiving an incoming call? I don't.
Click to expand...
Click to collapse
Oh, thought that phone has 2 sim slots . Well, i'm downloading cm11 sources right now since omni got no multisim support and its kinda hard to implement.
No i don't. I just see "+" instead of number, nothing more. But i can see incoming sms numbers.
Also, does "recent apps" button work for you? I can't get it to work, tried changing keymaps but it didn't help.
Code:
E/KeyLayoutMap( 1987): /system/usr/keylayout/bcm_keypad_v2.kl:15: Expected key code label, got 'RECENTAPPS'.
I modified initscript to start wpa_supplicant with detailed debug and found this kinda interesting
Code:
D/wpa_supplicant( 2066): random: Got 1/1 bytes from /dev/random
D/wpa_supplicant( 2066): Get randomness: len=20 entropy=0
D/wpa_supplicant( 2066): random from os_get_random - hexdump(len=20): [REMOVED]
D/wpa_supplicant( 2066): random_mix_pool - hexdump(len=20): [REMOVED]
D/wpa_supplicant( 2066): random from internal pool - hexdump(len=16): [REMOVED]
D/wpa_supplicant( 2066): random_mix_pool - hexdump(len=20): [REMOVED]
D/wpa_supplicant( 2066): random from internal pool - hexdump(len=16): [REMOVED]
D/wpa_supplicant( 2066): mixed random - hexdump(len=20): [REMOVED]
D/wpa_supplicant( 2066): random: Updated entropy file /data/misc/wifi/entropy.bin (own_pool_ready=2)
D/wpa_supplicant( 2066): EAPOL: disable timer tick
D/wpa_supplicant( 2066): EAPOL: Supplicant port status: Unauthorized
[B]D/wpa_supplicant( 2066): nl80211: Set supplicant port unauthorized for 00:00:00:00:00:00[/B]
D/wpa_supplicant( 2066): EAPOL: disable timer tick
[B]D/wpa_supplicant( 2066): EAPOL: Supplicant port status: Unauthorized
[B]D/wpa_supplicant( 2066): nl80211: Set supplicant port unauthorized for 00:00:00:00:00:00[/B][/B]
I wonder why its using 00:00: plaplapla insteada actual macaddr
itigr said:
I modified initscript to start wpa_supplicant with detailed debug and found this kinda interesting
Code:
D/wpa_supplicant( 2066): random: Got 1/1 bytes from /dev/random
D/wpa_supplicant( 2066): Get randomness: len=20 entropy=0
D/wpa_supplicant( 2066): random from os_get_random - hexdump(len=20): [REMOVED]
D/wpa_supplicant( 2066): random_mix_pool - hexdump(len=20): [REMOVED]
D/wpa_supplicant( 2066): random from internal pool - hexdump(len=16): [REMOVED]
D/wpa_supplicant( 2066): random_mix_pool - hexdump(len=20): [REMOVED]
D/wpa_supplicant( 2066): random from internal pool - hexdump(len=16): [REMOVED]
D/wpa_supplicant( 2066): mixed random - hexdump(len=20): [REMOVED]
D/wpa_supplicant( 2066): random: Updated entropy file /data/misc/wifi/entropy.bin (own_pool_ready=2)
D/wpa_supplicant( 2066): EAPOL: disable timer tick
D/wpa_supplicant( 2066): EAPOL: Supplicant port status: Unauthorized
[B]D/wpa_supplicant( 2066): nl80211: Set supplicant port unauthorized for 00:00:00:00:00:00[/B]
D/wpa_supplicant( 2066): EAPOL: disable timer tick
[B]D/wpa_supplicant( 2066): EAPOL: Supplicant port status: Unauthorized
[B]D/wpa_supplicant( 2066): nl80211: Set supplicant port unauthorized for 00:00:00:00:00:00[/B][/B]
I wonder why its using 00:00: plaplapla insteada actual macaddr
Click to expand...
Click to collapse
Interesting.. I have to look into that. I made some changes to telephone related stuff, hopefully it makes some difference. Too bad my computer is really slow so recompiling the whole thing takes hours. And my recent apps-button does not work either. :/
Nikiz said:
Interesting.. I have to look into that. I made some changes to telephone related stuff, hopefully it makes some difference. Too bad my computer is really slow so recompiling the whole thing takes hours. And my recent apps-button does not work either. :/
Click to expand...
Click to collapse
Fixed recent apps-button. https://github.com/TheNikiz/android...mmit/904756156584da6a9cecb37afa2d5a6b56dafb19
Great.
Did these changes that you've made to phone stuff work?