T42 | <adampigg> @slavamon ping :) | 09:30 |
---|---|---|
v01and | hi all | 18:44 |
v01and | i want to understand - how libhybris is working | 18:45 |
v01and | i build aosp 10 for Pixel4 and deploy linux sysroot to phone | 18:46 |
v01and | now i try run test_egl from hybris project, but it cannot resolve some functions from bionic | 18:48 |
v01and | does anyone have the same experience? | 18:49 |
T42 | <NotKit> v01and: hi. not if this is correct group, but at minimum you need some patches to AOSP libs so you can dlopen Android libs with libhybris | 18:51 |
T42 | <NotKit> see 0003, 0006 at https://github.com/Halium/hybris-patches/tree/halium-10.0/bionic and 0003 at https://github.com/Halium/hybris-patches/tree/halium-10.0/frameworks/native | 18:53 |
T42 | <elros34> I am not sure test_egl works for anybody so better use test_egl_configs | 18:55 |
v01and | I tried with these patches too. | 18:55 |
v01and | the same result and test_egl_configs | 18:55 |
v01and | there is a lot of | 18:56 |
v01and | HOOKS hooks.c:3518 (__hybris_get_hooked_symbol) DEBUG: Could not find a hook for symbol eglLockSurfaceKHR HOOKS hooks.c:3518 (__hybris_get_hooked_symbol) DEBUG: Could not find a hook for symbol eglUnlockSurfaceKHR HOOKS hooks.c:3518 (__hybris_get_hooked_symbol) DEBUG: Could not find a hook for symbol eglCreateImageKHR HOOKS hooks.c:3518 (__hybris_get_hooked_symbol) DEBUG: Could not find a hook for symbol eglDestroyImag | 18:56 |
T42 | <NotKit> that is just debug message and not an actual issue | 18:58 |
T42 | <NotKit> start with test_dlopen, then test_egl_configs as Elros suggested | 18:59 |
v01and | test_dlopen is ok, it show base adress without crash | 18:59 |
T42 | <Ayman_rgab> in this manner what could cause test_egl_configs return error like this : https://irc.thaodan.de/.imgstore/655a6a9b/file_4302.jpg | 19:02 |
T42 | <NotKit> try to strace test_egl_configs to see if it is missing access to some paths from sysroot | 19:02 |
v01and | EGL_PLATFORM=hwcomposer test_egl_configs Starting test (EGL_PLATFORM=hwcomposer) Segmentation fault | 19:06 |
v01and | without hwcomposer - the same | 19:07 |
v01and | do I need some kernel patches?... | 19:16 |
T42 | <elros34> strace it, segementation fault itself doesn't tell much | 19:18 |
v01and | so, ltrace show this https://pastebin.com/5bqfDhgE | 19:28 |
v01and | and the strace log https://pastebin.com/8MnqgVLC | 19:34 |
v01and | sorry there is a lot of my debug messages | 19:35 |
T42 | <NotKit> no idea why it crashes from the log, seems to be somewhere at linking steps | 19:38 |
T42 | <NotKit> you could try to mount Android system from https://ci.ubports.com/job/UBportsCommunityPortsJenkinsCI/job/ubports%252Fporting%252Fcommunity-ports%252Fjenkins-ci%252Fgeneric_arm64/job/halium-10.0/lastSuccessfulBuild/artifact/halium_halium_arm64.tar.xz inside Linux root to compare against | 19:39 |
v01and | nope, nothing changes | 20:17 |
v01and | what a librhybris configure flags do you use?... | 20:19 |
T42 | <NotKit> https://github.com/mer-hybris/libhybris/blob/master/rpm/libhybris.spec#L281 | 20:21 |
v01and | i got some backtrace from gdb https://pastebin.com/zBuCsrBn | 20:29 |
v01and | crash always in soinfo::relocate<plain_reloc_iterator>... | 20:33 |
v01and | do i have a wrong c++ compiler or flags?... or it cause wrong ENV.... | 20:35 |
piggz | mal: @slavamon: spot the difference https://hastebin.com/usesakibob.yaml | 21:27 |
T42 | <b100dian> pick me! pick me! no disconnectreason? | 21:33 |
T42 | <b100dian> or is it ngfd ;) | 21:34 |
piggz | yeah, no disconnct signal | 21:35 |
piggz | now ...why | 21:35 |
piggz | causes a 10 second delay on pinephone before UI closes call | 21:36 |
piggz | think i found the problem! | 21:45 |
T42 | <b100dian> I need to restart some debugging in this area too, I have some calls (once in a blue moon) where vibration doesn't start, is this just ofono logging what you're showing? | 21:46 |
T42 | <b100dian> s/start/stop | 21:46 |
T42 | <b100dian> This is great news, can't wait for your insight(s)! | 21:46 |
piggz | this is pinephone specific, https://github.com/sailfish-on-dontbeevil/ofono-new/commit/5975b46d8eb6aef645dbbe97f9377d1d1f3e215f | 21:59 |
piggz | mal: ^^ | 21:59 |
v01and | if some still have an interest in my problem | 23:01 |
v01and | i just rollback hybris from master to 33f1c76ce515879d0c04e5f601806b228e89d829, and disable debug options | 23:01 |
v01and | looks like now it works well | 23:02 |
v01and | thanks for your help | 23:15 |
mal | the changes after that commit are quite small | 23:18 |
mal | are you sure the issue wasn't actually the debug options? | 23:19 |
mal | which android base are you using? | 23:19 |
mal | ah, aosp10 | 23:20 |
v01and | aosp10 | 23:20 |
v01and | maybe it was cause of "--enable-tracing" options, i still have "--enable-debug" | 23:22 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!