| *** amccarthy is now known as Guest5749 | 08:27 | |
| *** amccarthy_ is now known as amccarthy | 08:27 | |
| mal | PSA: 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 work | 14:52 | 
|---|---|---|
| mal | mainly older devices use that, devices with older than android 8 base, some exceptions may exist | 14:54 | 
| piggz | i predict in incoming surge of user requests and breakage due to forged upgrades :) | 14:58 | 
| piggz | and im not updating my ports until the week after next, as im off on a family holiday on friday :) | 14:58 | 
| mal | people using testing on obs will not have that issue unless they hack | 14:59 | 
| mal | but for devices using devel it can be a problem | 14:59 | 
| piggz | https://i.imgur.com/w3dhSgF.png | 15:13 | 
| piggz | fun terminal :) | 15:15 | 
| T42 | <Mister_Magister> until you have to read | 15:20 | 
| T42 | <TheVancedGamer> mal: are you free RN? | 18:35 | 
| T42 | <TheVancedGamer> gonna need some help with vulkan not working lol | 18:35 | 
| Mister_Magister | you wanna take him out on dinner? | 18:35 | 
| Mister_Magister | xd | 18:35 | 
| T42 | <TheVancedGamer> test_vulkan loads libvulkan.so.1, but I never see it loading androids libvulkan loader library | 18:36 | 
| T42 | <TheVancedGamer> and then it segfaults | 18:36 | 
| T42 | <TheVancedGamer> sadly cant :p (re @SailfishFreenodeIRCBridgeBot: <Mister_Magister>you...) | 18:36 | 
| mal | @TheVancedGamer yes, please grab "strace -Ff test_vulkan" | 18:48 | 
| mal | also show what vulkan packages you have installed on your device | 18:48 | 
| T42 | <TheVancedGamer> mal: sec, getting all output | 18:54 | 
| mal | which android base is your device using? | 18:55 | 
| T42 | <TheVancedGamer> mal: h13 | 18:55 | 
| T42 | <TheVancedGamer> Same thing on 11 | 18:55 | 
| T42 | <TheVancedGamer> mal: here's strace: | 19:01 | 
| T42 | <TheVancedGamer> https://paste.myself5.de/gexisekobo.yaml | 19:01 | 
| T42 | <TheVancedGamer> and only vulkan related packages on device are from libhybris | 19:01 | 
| T42 | <TheVancedGamer> (-Ff is default and deprecated too btw) | 19:02 | 
| mal | that is really all you get | 19:03 | 
| mal | ? | 19:03 | 
| T42 | <TheVancedGamer> yeah | 19:03 | 
| mal | try gdb | 19:03 | 
| T42 | <TheVancedGamer> all output redirected directly to text file | 19:03 | 
| T42 | <TheVancedGamer> mal: no use, pointed me nowhere | 19:03 | 
| mal | using HYBRIS_ENABLE_LINKER_DEBUG_MAP=1 gdb ... | 19:03 | 
| mal | it 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 gdb | 19:04 | 
| T42 | <TheVancedGamer> no, it reads prop with sudo but still crashes (re @elros34: isn't it just becaus...) | 19:04 | 
| mal | yeah, I was going to ask about that build.prop failure | 19:04 | 
| T42 | <TheVancedGamer> like established last time | 19:04 | 
| T42 | <TheVancedGamer> mal: no difference, gdb still fails: | 19:09 | 
| T42 | <TheVancedGamer> https://paste.myself5.de/vasiketuqo.coffeescript | 19:09 | 
| T42 | <TheVancedGamer> all debug symbols installed | 19:09 | 
| T42 | <TheVancedGamer> really confusing lol | 19:11 | 
| mal | yeah | 19: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 crashing | 19:12 | 
| mal | do other test_* work? | 19:12 | 
| mal | there is test_vulkan in libhybris | 19:12 | 
| T42 | <TheVancedGamer> @elros34 only logical explanation is test_vulkan is from libhybris | 19:12 | 
| T42 | <TheVancedGamer> mal: some do work, older ones don't obviously | 19:12 | 
| T42 | <TheVancedGamer> like test_hwcomposer, etc | 19:13 | 
| T42 | <TheVancedGamer> libhybris-test: /usr/bin/test_vulkan | 19:14 | 
| T42 | <TheVancedGamer> yeah libhybris | 19:14 | 
| T42 | <elros34> logical maybe but there is not even linker load, only libhybris-common.so.1 | 19:14 | 
| T42 | <TheVancedGamer> not sure honestly | 19:14 | 
| T42 | <TheVancedGamer> at the very least it should show something in strace | 19:15 | 
| T42 | <elros34> compare with strace test_gps/egl_configs or anything else | 19:15 | 
| T42 | <TheVancedGamer> yeah I get hybris related output | 19:15 | 
| mal | do you see that prop reading there? | 19:16 | 
| T42 | <TheVancedGamer> let me see | 19:16 | 
| T42 | <TheVancedGamer> mal: yeah I do | 19:17 | 
| mal | and it behaves the same? | 19:17 | 
| T42 | <TheVancedGamer> write(1, "** get gps interface\n", 22** get gps interface | 19:17 | 
| T42 | <TheVancedGamer> ) = 22 | 19:17 | 
| T42 | <TheVancedGamer> socket(AF_UNIX, SOCK_STREAM, 0) = 3 | 19:17 | 
| T42 | <TheVancedGamer> connect(3, {sa_family=AF_UNIX, sun_path="/dev/socket/property_service"}, 31) = 0 | 19:17 | 
| T42 | <TheVancedGamer> sendto(3, "\2\0\0\0ro.build.version.sdk\0\0\0\0\0\0\0\0"..., 128, 0, NULL, 0) = 128 | 19:17 | 
| T42 | <TheVancedGamer> recvfrom(3, "\33\0\0\0", 128, 0, NULL, NULL) = 4 | 19:17 | 
| T42 | <TheVancedGamer> close(3) = 0 | 19:18 | 
| T42 | <TheVancedGamer> openat(AT_FDCWD, "/system/build.prop", O_RDONLY) = -1 EACCES (Permission denied) | 19:18 | 
| T42 | <TheVancedGamer> mal: test still works fine though | 19:18 | 
| mal | that does it do after that? | 19:18 | 
| T42 | <TheVancedGamer> ? | 19:18 | 
| mal | I mean in that gps case | 19:18 | 
| mal | right after that build.prop reading | 19:18 | 
| T42 | <TheVancedGamer> it continues to work as expected | 19:19 | 
| mal | can't you answer the question | 19:19 | 
| mal | I want to know what exactly it does | 19:19 | 
| T42 | <TheVancedGamer> I don't know what the question is | 19:19 | 
| mal | show the damn strace then | 19:19 | 
| T42 | <TheVancedGamer> rephrasing would definitely help here | 19:19 | 
| T42 | <TheVancedGamer> mal: https://paste.myself5.de/tosaceqemi.yaml | 19:21 | 
| mal | so it loads linker after that | 19:22 | 
| T42 | <TheVancedGamer> yes | 19:22 | 
| T42 | <TheVancedGamer> if it works on sailfish it should work here but alas | 19:24 | 
| mal | that suggests the issue could happen somewhere around https://github.com/libhybris/libhybris/blob/master/hybris/common/hooks.c#L3379 or some function calling that | 19:26 | 
| mal | have you tried to trace libhybris | 19:27 | 
| mal | HYBRIS_LOGGING_LEVEL=debug HYBRIS_TRACE=1 test_vulkan | 19:27 | 
| mal | if that doesn't give any hints then add debug printing to that hooks.c file | 19:28 | 
| mal | which libhybris version do you have installed? | 19:28 | 
| T42 | <TheVancedGamer> I think master branch | 19:28 | 
| T42 | <TheVancedGamer> no output, none in strace either (re @SailfishFreenodeIRCBridgeBot: <mal>HYBRIS_LOGGING_...) | 19:29 | 
| mal | so time to add some printf lines to hooks.c, in that function and in places which call it | 19:30 | 
| mal | that way we can narrow down where it really fails | 19:31 | 
| T42 | <TheVancedGamer> I'll try adding first to hooks.c only | 19:32 | 
| mal | I meant in hooks.c, so in the function I linked and in the same file any place where it is called | 19:37 | 
| T42 | <TheVancedGamer> mal: my debug prints aren't getting printed | 19:52 | 
| mal | any 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 printed | 19:59 | 
| T42 | <TheVancedGamer> is this a serious issue? lol | 19:59 | 
| mal | maybe try TRACE_HOOK("something"); | 20:01 | 
| mal | then the use the trace env vars like I mentioned earlier | 20:03 | 
| T42 | <TheVancedGamer> ok | 20:03 | 
| T42 | <elros34> not sure if they needed but did you build libhybris with these debug/trace options enabled? | 20:04 | 
| T42 | <TheVancedGamer> ....no :p | 20:05 | 
| mal | yeah, good point | 20:09 | 
| mal | https://github.com/mer-hybris/libhybris/blob/master/rpm/libhybris.spec#L283 | 20:09 | 
| mal | the options can be seen there, so --enable-debug and --enable-trace and maybe --enable-arm-tracing | 20:10 | 
| mal | @TheVancedGamer ^ | 20:10 | 
| *** phlixi is now known as Guest5803 | 23:02 | |
| *** phlixi_ is now known as phlixi | 23:02 | |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!