Wednesday, 2023-07-12

*** amccarthy is now known as Guest574908:27
*** amccarthy_ is now known as amccarthy08:27
malPSA: when updating adaptations to 4.5.0.21 any devices using sensorfw-qt5-hybris will need to update that package to 0.14.4 for sensors to work14:52
malmainly older devices use that, devices with older than android 8 base, some exceptions may exist14:54
piggzi predict in incoming surge of user requests and breakage due to forged upgrades :)14:58
piggzand im not updating my ports until the week after next, as im off on a family holiday on friday :)14:58
malpeople using testing on obs will not have that issue unless they hack14:59
malbut for devices using devel it can be a problem14:59
piggzhttps://i.imgur.com/w3dhSgF.png15:13
piggzfun terminal :)15:15
T42<Mister_Magister> until you have to read15:20
T42<TheVancedGamer> mal: are you free RN?18:35
T42<TheVancedGamer> gonna need some help with vulkan not working lol18:35
Mister_Magisteryou wanna take him out on dinner?18:35
Mister_Magisterxd18:35
T42<TheVancedGamer> test_vulkan loads libvulkan.so.1, but I never see it loading androids libvulkan loader library18:36
T42<TheVancedGamer> and then it segfaults18:36
T42<TheVancedGamer> sadly cant :p (re @SailfishFreenodeIRCBridgeBot: <Mister_Magister>you...)18:36
mal@TheVancedGamer yes, please grab "strace -Ff test_vulkan"18:48
malalso show what vulkan packages you have installed on your device18:48
T42<TheVancedGamer> mal: sec, getting all output18:54
malwhich android base is your device using?18:55
T42<TheVancedGamer> mal: h1318:55
T42<TheVancedGamer> Same thing on 1118:55
T42<TheVancedGamer> mal: here's strace:19:01
T42<TheVancedGamer> https://paste.myself5.de/gexisekobo.yaml19:01
T42<TheVancedGamer> and only vulkan related packages on device are from libhybris19:01
T42<TheVancedGamer> (-Ff is default and deprecated too btw)19:02
malthat is really all you get19:03
mal?19:03
T42<TheVancedGamer> yeah19:03
maltry gdb19:03
T42<TheVancedGamer> all output redirected directly to text file19:03
T42<TheVancedGamer> mal: no use, pointed me nowhere19:03
malusing HYBRIS_ENABLE_LINKER_DEBUG_MAP=1 gdb ...19:03
malit doesn't show at all where it fails?19:04
T42<elros34> isn't it just because of?/system/build.prop", O_RDONLY) = -1 EACCES (Permission denied)19:04
T42<TheVancedGamer> installing gdb19:04
T42<TheVancedGamer> no, it reads prop with sudo but still crashes (re @elros34: isn't it just becaus...)19:04
malyeah, I was going to ask about that build.prop failure19:04
T42<TheVancedGamer> like established last time19:04
T42<TheVancedGamer> mal: no difference, gdb still fails:19:09
T42<TheVancedGamer> https://paste.myself5.de/vasiketuqo.coffeescript19:09
T42<TheVancedGamer> all debug symbols installed19:09
T42<TheVancedGamer> really confusing lol19:11
malyeah19:11
T42<elros34> no idea about vulkan but are you sure this test_vulkan is really from libhybris? On my device which doesn't even have vulkan test_vulkan really trieing to loads some libhybris realted things before crashing19:12
maldo other test_* work?19:12
malthere is test_vulkan in libhybris19:12
T42<TheVancedGamer> @elros34 only logical explanation is test_vulkan is from libhybris19:12
T42<TheVancedGamer> mal: some do work, older ones don't obviously19:12
T42<TheVancedGamer> like test_hwcomposer, etc19:13
T42<TheVancedGamer> libhybris-test: /usr/bin/test_vulkan19:14
T42<TheVancedGamer> yeah libhybris19:14
T42<elros34> logical maybe but there is not even linker load, only libhybris-common.so.119:14
T42<TheVancedGamer> not sure honestly19:14
T42<TheVancedGamer> at the very least it should show something in strace19:15
T42<elros34> compare  with strace test_gps/egl_configs or anything else19:15
T42<TheVancedGamer> yeah I get hybris related output19:15
maldo you see that prop reading there?19:16
T42<TheVancedGamer> let me see19:16
T42<TheVancedGamer> mal: yeah I do19:17
maland it behaves the same?19:17
T42<TheVancedGamer> write(1, "** get gps interface\n", 22** get gps interface19:17
T42<TheVancedGamer> ) = 2219:17
T42<TheVancedGamer> socket(AF_UNIX, SOCK_STREAM, 0)         = 319:17
T42<TheVancedGamer> connect(3, {sa_family=AF_UNIX, sun_path="/dev/socket/property_service"}, 31) = 019:17
T42<TheVancedGamer> sendto(3, "\2\0\0\0ro.build.version.sdk\0\0\0\0\0\0\0\0"..., 128, 0, NULL, 0) = 12819:17
T42<TheVancedGamer> recvfrom(3, "\33\0\0\0", 128, 0, NULL, NULL) = 419:17
T42<TheVancedGamer> close(3)                                = 019:18
T42<TheVancedGamer> openat(AT_FDCWD, "/system/build.prop", O_RDONLY) = -1 EACCES (Permission denied)19:18
T42<TheVancedGamer> mal: test still works fine though19:18
malthat does it do after that?19:18
T42<TheVancedGamer> ?19:18
malI mean in that gps case19:18
malright after that build.prop reading19:18
T42<TheVancedGamer> it continues to work as expected19:19
malcan't you answer the question19:19
malI want to know what exactly it does19:19
T42<TheVancedGamer> I don't know what the question is19:19
malshow the damn strace then19:19
T42<TheVancedGamer> rephrasing would definitely help here19:19
T42<TheVancedGamer> mal: https://paste.myself5.de/tosaceqemi.yaml19:21
malso it loads linker after that19:22
T42<TheVancedGamer> yes19:22
T42<TheVancedGamer> if it works on sailfish it should work here but alas19:24
malthat suggests the issue could happen somewhere around https://github.com/libhybris/libhybris/blob/master/hybris/common/hooks.c#L3379 or some function calling that19:26
malhave you tried to trace libhybris19:27
malHYBRIS_LOGGING_LEVEL=debug HYBRIS_TRACE=1 test_vulkan19:27
malif that doesn't give any hints then add debug printing to that hooks.c file19:28
malwhich libhybris version do you have installed?19:28
T42<TheVancedGamer> I think master branch19:28
T42<TheVancedGamer> no output, none in strace either (re @SailfishFreenodeIRCBridgeBot: <mal>HYBRIS_LOGGING_...)19:29
malso time to add some printf lines to hooks.c, in that function and in places which call it19:30
malthat way we can narrow down where it really fails19:31
T42<TheVancedGamer> I'll try adding first to hooks.c only19:32
malI meant in hooks.c, so in the function I linked and in the same file any place where it is called19:37
T42<TheVancedGamer> mal: my debug prints aren't getting printed19:52
malany of those? even before my_property_get("ro.build.version.sdk in the code?19:58
T42<TheVancedGamer> I added like 10 and none of them are printed19:59
T42<TheVancedGamer> is this a serious issue? lol19:59
malmaybe try TRACE_HOOK("something");20:01
malthen the use the trace env vars like I mentioned earlier20:03
T42<TheVancedGamer> ok20:03
T42<elros34> not sure if they needed but did you build libhybris with these debug/trace options enabled?20:04
T42<TheVancedGamer> ....no :p20:05
malyeah, good point20:09
malhttps://github.com/mer-hybris/libhybris/blob/master/rpm/libhybris.spec#L28320:09
malthe options can be seen there, so --enable-debug and --enable-trace and maybe --enable-arm-tracing20:10
mal@TheVancedGamer ^20:10
*** phlixi is now known as Guest580323:02
*** phlixi_ is now known as phlixi23:02

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!