Wednesday, 2023-04-19

*** amccarthy is now known as Guest1155111:04
*** amccarthy_ is now known as amccarthy11:04
T42<TheVancedGamer> @elros34: pid of what? test_vulkan? (just FYI, this isn't sfos)11:26
T42<elros34> whatever program you are debugging with gdb and you get some vague hex address crash11:29
T42<TheVancedGamer> test_vulkan11:30
T42<k1gen> mal: can you check camera logcat for me?11:57
T42<k1gen> while logcat is running, I open camera app, successfully take a picture, then swipe to check photo I just took, app freezes on last swipe animation frame, sailfsish suggests to close the app, I close it and stop logcat over ssh: https://0x0.st/H8Yu.txt11:59
T42<k1gen> here's logcat when I open camera app and try to interact with it, after first crash, but before reboot: https://0x0.st/H8Yj.txt12:04
T42<k1gen> there's black screen where image preview should be, but sometimes some animations work12:04
T42<k1gen> @TheVancedGamer by the way, test_vulkan works just fine for me, test_egl doesn't though12:12
T42<TheVancedGamer> again, not sfos, but ubuntu touch12:12
T42<TheVancedGamer> i'm trying to make vulkan work on UT12:12
T42<k1gen> then why are you asking here? :P12:13
T42<TheVancedGamer> because mal12:13
T42<k1gen> yeah, got it12:14
T42<TheVancedGamer> and libhybris is also maintained by mal12:14
T42<k1gen> mal: any thoughts on camera logcat?16:37
T42<Mister_Magister> where logcat (re @k1gen: mal: any thoughts on...)16:56
T42<k1gen> higher here16:56
T42<Mister_Magister> what phone is that so i can avoid16:57
T42<TheVancedGamer> come on @Mister_Magister you know better16:57
T42<TheVancedGamer> don't reply to tg16:58
T42<Mister_Magister> thats tru16:58
Mister_Magistertho it doesn't look that bad tbh16:58
T42<k1gen> @Mister_Magister google pixel 416:58
T42<Mister_Magister> ok gotta avoid pixels16:59
T42<k1gen> :|16:59
T42<Mister_Magister> wlp good luck. the Permission failure: android.permission.SYSTEM_CAMERA from is weird imo but i aint no expert17:01
T42<Mister_Magister> maybe fix the airbrush stuff to clear the log out?17:03
T42<k1gen> I tried to fix it some time ago with elros, check chat history17:03
T42<Mister_Magister> airbrush and SecCam seem to be failing constantly17:04
T42<k1gen> chmod 777 /dev/ab_sm fixed airbrush iirc17:04
T42<Mister_Magister> then you need to fix permission owner/group mostlkilely (re @k1gen: chmod 777 /dev/ab_sm...)17:04
T42<Mister_Magister> some udev rules17:04
T42<elros34> it its really the case then why it crashing and flood logs17:04
T42<Mister_Magister> ^exactly17:05
T42<elros34> From what I remember it doesnt fix17:05
T42<elros34> it17:05
T42<elros34> it requires particular group and complain about it in logs17:05
T42<Mister_Magister> fixing airbrush/seccam might just help with camera17:05
T42<Mister_Magister> then just udev rule and voila (re @elros34: it requires particul...)17:05
T42<k1gen> never heard about seccam before17:05
T42<k1gen> no mention of it in this chat either17:06
T42<Mister_Magister> well it's crashing a lot17:06
T42<k1gen> # grep ab_sm /lib/udev/rules.d/99?-*17:12
T42<k1gen> /lib/udev/rules.d/999-android-system.rules:#:/dev/ab_sm                0600   vendor_airbrush vendor_airbrush17:12
T42<k1gen> /lib/udev/rules.d/999-android-system.rules:KERNEL=="ab_sm", MODE="0600", GROUP="vendor_airbrush", OWNER="vendor_airbrush"17:12
T42<k1gen> but # chown vendor_airbrush:vendor_airbrush /dev/ab_sm17:12
T42<k1gen> chown: unknown user/group vendor_airbrush:vendor_airbrush17:12
T42<elros34> that is the point you need to create that group somehow with correct id. Id you will find in device repository17:14
T42<k1gen> out/target/product/flame/obj/ETC/passwd_vendor_intermediates/passwd_vendor17:16
T42<k1gen> 6:vendor_airbrush::2907:2907::/:/bin/sh17:16
T42<k1gen> 2907 is the id?17:16
T42<elros34> or in out but yes probably17:17
T42<k1gen> @elros34 https://paste.opensuse.org/pastes/7d64d05a65cc17:18
T42<k1gen> groupadd -g 2907 vendor_airbrush?17:20
T42<k1gen> needed group, user and permissions are set, and airbrush is still crashing17:26
T42<k1gen> https://paste.opensuse.org/pastes/d8450d0d0f2817:26
T42<elros34> so usual drill: reboot, check all logs not just journal, still nothing then strace17:30
T42<k1gen> these logs are after rebooting after creating group and user. which logs should I check besides journal, and what to strace?17:31
T42<elros34> there is really only dmesg/journal/logcat to check. About stracing then failing binary17:32
T42<elros34> you see its parsing  /vendor/etc/init/vendor.google.airbrush@1.0-service.rc so you should find binary it starts17:34
T42<k1gen> yeah, /vendor/bin/hw/vendor.google.airbrush@1.0-service. it doesn't segfault for over a minute though17:35
T42<k1gen> I mean it's running for a long time now without crashes17:35
T42<elros34> how about checking logcat when it crash?17:36
T42<k1gen> sure, logcat is running. binary doesn't crash though17:37
T42<elros34> I mean just basic debugging: airbrush fails with code 1 in journal, no idea why so you check logcat right? Does it prints anything more useful?17:38
T42<k1gen> no, no output and doesn't crash17:38
T42<k1gen> ab_manager: open /dev/ab_sm failed: Permission denied in logcat17:41
T42<k1gen> even if I launch /vendor/bin/hw/vendor.google.airbrush@1.0-service as vendor_airbrush17:43
T42<TheVancedGamer> remember, vendor_airbrush isn't a user/group in sfos17:43
T42<k1gen> well, I created user and group both named vendor_airbrush with gid 290717:44
T42<k1gen> here's logcat with 777 permissions on /dev/ab_sm: https://0x0.st/H8Eg.txt17:50
T42<elros34> most important it starts itself or you start it somehow?17:54
T42<k1gen> I run /vendor/bin/hw/vendor.google.airbrush@1.0-service manually as root17:55
T42<TheVancedGamer> isn't airbrush for that gesture thingy where you move your head and the phone responds to that?17:55
T42<elros34> how do you know it can be run as root, reboot and let it start correctly itself then check logs17:57
T42<k1gen> journal after reboot: https://paste.opensuse.org/pastes/17ce5a3573c4; logcat with camera actions: https://0x0.st/H8ED.txt18:04
T42<k1gen> forgot about dmesg: https://0x0.st/H8E7.txt18:24
T42<k1gen> any ideas?18:43
T42<b100dian> I saw some libui vs gralloc hybris references on sailfishos IRC recently - can you mal or piggz shed some resources about what does that mean?21:54
T42<b100dian> *shed some light on resources21:56
T42<b100dian> I found https://github.com/libhybris/libhybris/pull/509/files, looking22:00
T42<b100dian> Guys! : https://irc.thaodan.de/.imgstore/62d4855e/file_4900.jpg22:44
T42<b100dian> Guys!! : https://irc.thaodan.de/.imgstore/62d4855e/file_4900.jpg22:45
T42<b100dian> https://irc.thaodan.de/.imgstore/62d4855e/file_4900.jpg22:45
T42<b100dian> https://irc.thaodan.de/.imgstore/ae0b0246/file_4901.jpg22:48
T42<b100dian> guys22:49
T42<b100dian> got GUI22:49
T42<b100dian> this device has webgl aquarium at 60 fps almost all the time. My Mi Note 10 is struggling between 35-5023:33
T42<parmjotsinghrobot> Nice (re @b100dian: got GUI)23:37
T42<b100dian> it was NotKit's above PR probably ;)23:39

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