Sunday, 2024-06-02

T42_<Tailsthefoz> nope nvm00:06
T42_<Tailsthefoz> `test_egl` does a segfault00:21
T42_<Tailsthefoz> both test_gles do the same thing as test_hwcomposer00:21
T42_<Tailsthefoz> the only one that works is test_opencl lol00:36
T42_<Tailsthefoz> @NotKit any ideas?02:19
T42_<Tailsthefoz> I feel like something is waiting for something but that something isn't happening02:31
T42_<Tailsthefoz> ok found the issue02:39
T42_<Tailsthefoz> ```02:40
T42_<Tailsthefoz> NOTICE: There is no systemd user session running```02:40
T42_<Tailsthefoz> which seems to be because this is hanging it02:40
T42_<Tailsthefoz> ```02:40
T42_<Tailsthefoz> ├─4516 /system/bin/init second_stage```02:40
T42_<Tailsthefoz> lemme try strace on that pdi02:41
T42_<Tailsthefoz> lemme try strace on that pid (edited)02:41
T42_<Tailsthefoz> ah I see02:41
T42_<Tailsthefoz> it's the one spamming dmesg02:41
T42_<Tailsthefoz> can I make it so it runs init in like the background02:42
T42_<Tailsthefoz> that must be what droidian does differently02:43
T42_<Tailsthefoz> because droidian has the same dmesg spam02:43
T42_<Tailsthefoz> yeahhh droidian has a custom lxc@.service02:59
T42_<Tailsthefoz> ```02:59
T42_<Tailsthefoz> # Note! This is a full override of lxc@.service for the Halium ("android")02:59
T42_<Tailsthefoz> # container.02:59
T42_<Tailsthefoz> # Unfortunately the changes can't be placed as a drop-in because systemd02:59
T42_<Tailsthefoz> # doesn't support dropping dependencies there.02:59
T42_<Tailsthefoz> 02:59
T42_<Tailsthefoz> [Unit]02:59
T42_<Tailsthefoz> Description=LXC Container: %i02:59
T42_<Tailsthefoz> # Only depend on android-mount. We're pretty special and don't need02:59
T42_<Tailsthefoz> # all the bells and whistles like lxc-net.02:59
T42_<Tailsthefoz> After=android-mount.service02:59
T42_<Tailsthefoz> Wants=android-mount.service02:59
T42_<Tailsthefoz> ConditionPathExists=!/system-update02:59
T42_<Tailsthefoz> 02:59
T42_<Tailsthefoz> [Service]02:59
T42_<Tailsthefoz> Type=notify02:59
T42_<Tailsthefoz> NotifyAccess=exec02:59
T42_<Tailsthefoz> # Move the actual container start-up as an ExecStartPre.02:59
T42_<Tailsthefoz> # While is not-entirely-correct(TM) this allows for the notification02:59
T42_<Tailsthefoz> # script to block.02:59
T42_<Tailsthefoz> # The container is now started in background, and lxc-android-notify02:59
T42_<Tailsthefoz> # has the task to notify systemd when it's ready.02:59
T42_<Tailsthefoz> ExecStartPre=/usr/bin/lxc-start -d -n android02:59
T42_<Tailsthefoz> ExecStart=/usr/lib/lxc-android/lxc-android-notify02:59
T42_<Tailsthefoz> KillMode=mixed02:59
T42_<Tailsthefoz> TimeoutStopSec=120s02:59
T42_<Tailsthefoz> ExecStop=/usr/lib/lxc-android/lxc-android-stop02:59
T42_<Tailsthefoz> Delegate=yes02:59
T42_<Tailsthefoz> 02:59
T42_<Tailsthefoz> [Install]02:59
T42_<Tailsthefoz> WantedBy=multi-user.target```03:00
T42_<Tailsthefoz> I mean I guess I could figure out why second stage init is spamming03:12
T42_<NotKit> as user as well? (re @Tailsthefoz: ok test_egl_configs ...)11:08
T42_<NotKit> just to rule out permission issues11:08
tohaturokI flashed my xperia 5 IV with SailfishOS image successfully, but when phone start it stuck in bootloop(((( I see the SailfishOS logo and after 40 seconds it reboots. I've checked the dmesg and not found any message from phone(((12:18
malThaodan: ^12:19
tohaturokIf the kernel loads correctly I should see messages from phone in dmesg. Is it right?12:27
T42_<elros34> if you mean on host dmesg then no, only brief info about usb connection and only if it's set up12:49
tohaturokIs there any way to get logs from boot?13:02
T42_<elros34> 2 ways: either you use usb connection telnet/ssh or enable persistent journal logging and use recovery to get them.13:07
T42_<elros34> not sure how to do this in aosp based image but I guess you should have some recovery in generated files13:08
tohaturokyes I have boot-recovery.img. I saw section about persistent journal logging in hadk documentation, but unfortunetally don't know how to use recovery to get the logs. So going to google it) thanks13:12
T42_<Tailsthefoz> yes (re @NotKit: as user as well?)13:20
T42_<elros34> is it really boot-recovery.img not hybris-recovery.img?13:25
T42_<Tailsthefoz> I just have a specially crafted boot image for telnet access13:26
T42_<elros34> in old good regular hadk way there is also 2 scripts in initramfs and / which set up telnet which ease porting13:28
T42_<Tailsthefoz> Yeah I might end up doing hadk instead, not too sure it would make a difference though13:45
T42_<NotKit> make sure test_hwcomposer uses HWC2 (re @Tailsthefoz: @NotKit any ideas?)13:51
T42_<NotKit> it tries to auto detect and fails most of times recently13:51
T42_<Tailsthefoz> how do I do that (re @NotKit: make sure test_hwcom...)13:51
T42_<NotKit> edit the code and recompile13:51
T42_<Tailsthefoz> where do I get android-headers for halium 12 (re @NotKit: edit the code and re...)14:11
T42_<Tailsthefoz> I mean it seems it is ```14:18
T42_<Tailsthefoz> writev(3, [{iov_base="\0*y\261\230\372dp\324R,", iov_len=11}, {iov_base="\3", iov_len=1}, {iov_base="display\0", iov_len=8}, {iov_base="HWC2 : ExynosDevice : interface "..., iov_len=40}], 4) = 60```14:18
T42_<Tailsthefoz>  (re @NotKit: make sure test_hwcom...)14:18
T42_<Tailsthefoz> but i could be wrong14:53
T42_<NotKit> @Tailsthefoz actually try `QT_QPA_FORCE_HWC2=1 QT_QPA_PLATFORM=hwcomposer EGL_PLATFORM=hwcomposer fingerterm`14:57
T42_<Tailsthefoz> ok15:01
T42_<Tailsthefoz> library "libminisf.so" not found15:01
T42_<Tailsthefoz> libminisf is incompatible or missing. Can not possibly start the SurfaceFlinger service. If you're experiencing troubles with media try updating droidmedia (and/or this plugin).failed to create composer client (re @NotKit: @Tailsthefoz actuall...)15:02
T42_<NotKit> Failed to create composer client - check if HWC service is running container side15:04
T42_<Tailsthefoz> how should I do that15:04
T42_<NotKit> first determine the binary name, then check in the list of processes and in logcat15:04
T42_<Tailsthefoz> alr15:04
T42_<NotKit> usually it's android.hardware.compositor.*15:04
T42_<TheVancedGamer> android.hardware.graphics.composer*15:05
T42_<TheVancedGamer> android.hardware.graphics.composer.* (edited)15:05
T42_<Lukapanio> might be vendor.*.composer-service (re @NotKit: usually it's android...)15:05
T42_<TheVancedGamer> android.hardware.graphics.composer* (edited)15:05
T42_<NotKit> yeah, check in /vendor/bin/hw15:06
T42_<Tailsthefoz> k15:06
T42_<Tailsthefoz> it's not running (re @NotKit: first determine the ...)15:10
T42_<Tailsthefoz> no wait nvm15:12
T42_<Tailsthefoz> it is running15:12
T42_<Tailsthefoz> ```15:12
T42_<Tailsthefoz> android.hardware.graphics.composer@2.4-service```15:12
T42_<Tailsthefoz> it's in the output of this command: `ps -A -o name:20`15:13
T42_<Tailsthefoz> logcat says this:15:15
T42_<Tailsthefoz> ```15:15
T42_<Tailsthefoz> 09-08 04:43:27.702    60    60 D android.hardware.graphics.composer@2.4-service: waiting for previous client to be destroyed15:15
T42_<Tailsthefoz> 09-08 04:43:28.702    60    60 D android.hardware.graphics.composer@2.4-service: previous client was not destroyed15:15
T42_<Tailsthefoz> 09-08 04:43:28.705     0 17798 F HwcComposer: failed to create composer client```15:15
T42_<NotKit> need to see why it fails. Could it be another client is connected already?16:13
T42_<NotKit> like lipstick or jolla-setup-wizard16:14
T42_<Tailsthefoz> maybe16:16
T42_<Tailsthefoz> let me see16:16
T42_<Tailsthefoz> ```16:17
T42_<Tailsthefoz>  4820 root     {Binder:4820_2} /usr/bin/sailfish-device-encryption-community-wizard -plugin evdevtouch -plugin evdevkeyboard```16:17
T42_<Tailsthefoz>  (re @NotKit: need to see why it f...)16:17
T42_<Tailsthefoz> this maybe?16:17
T42_<Tailsthefoz> yup16:18
T42_<Tailsthefoz> after killing that it succeeds to create the window16:18
T42_<Tailsthefoz> I think16:18
T42_<Tailsthefoz> ```16:18
T42_<Tailsthefoz> Could not create fingerterm settings path "/root/.config/FingerTerm"16:18
T42_<Tailsthefoz> WARNING: linker Warning: "[vdso]" unused DT entry: unknown processor-specific (type 0x70000001 arg (nil)) (ignoring)16:18
T42_<Tailsthefoz> file offset for the library "/vendor/lib64/hw/gralloc.default.so" >= file size: 0 >= 016:18
T42_<Tailsthefoz> library "libminisf.so" not found16:18
T42_<Tailsthefoz> libminisf is incompatible or missing. Can not possibly start the SurfaceFlinger service. If you're experiencing troubles with media try updating droidmedia (and/or this plugin).onHotplugReceived(0, 0, connected, primary)16:18
T42_<Tailsthefoz> EGLFS: Failed to open /dev/fb016:18
T42_<Tailsthefoz> EGLFS: Screen Info16:18
T42_<Tailsthefoz>  - Physical size: QSizeF(71.0214, 155.084)16:18
T42_<Tailsthefoz>  - Screen size: QSize(1440, 3120)16:18
T42_<Tailsthefoz>  - Screen depth: 3216:18
T42_<Tailsthefoz> QEglScreen 0x2847766016:19
T42_<Tailsthefoz> 16:19
T42_<Tailsthefoz> QEglWindow 0x2894e9b0: 0x7fcae6d698 0x0```16:19
T42_<Tailsthefoz> should I try running it as defaultuser?16:19
T42_<NotKit> do you see something on screen?16:19
T42_<Tailsthefoz> no just the google logo16:19
T42_<Tailsthefoz> it also goes to sleep as soon as I wake it up, but in the couple of seconds I can see the screen, it's just the google logo16:20
T42_<NotKit> that's weird, as HWComposer should render on screen and replace the logo16:20
T42_<NotKit> check for possible errors in logcat16:20
T42_<Tailsthefoz> k16:20
T42_<Tailsthefoz> ```16:21
T42_<Tailsthefoz> 09-08 05:50:33.496    59    59 E gralloc4: Invalid usage specified: CPU_READ_NEVER|CPU_WRITE_NEVER|COMPOSER_OVERLAY|NOZEROED 0x40000000000080016:21
T42_<Tailsthefoz> 09-08 05:50:33.499    59    91 E gralloc4: Invalid usage specified: CPU_READ_NEVER|CPU_WRITE_NEVER|COMPOSER_OVERLAY|NOZEROED 0x40000000000080016:21
T42_<Tailsthefoz> 09-08 05:50:33.502    59    59 E gralloc4: Invalid usage specified: CPU_READ_NEVER|CPU_WRITE_NEVER|COMPOSER_OVERLAY|NOZEROED 0x400000000000800```16:21
T42_<Tailsthefoz> this maybe?16:21
T42_<NotKit> well, no idea why it would be invalid16:23
T42_<Tailsthefoz> wait found something better16:24
T42_<Tailsthefoz> ```16:24
T42_<Tailsthefoz> 1.820    60    90 D display : config[4]16:24
T42_<Tailsthefoz> 09-08 05:53:11.820    60    90 D display :   state = 016:24
T42_<Tailsthefoz> 09-08 05:53:11.820    60    90 D display :     fd = (-1, -1, -1), acq_fence = -1, rel_fence = -1 src_f_w = 0, src_f_h = 0, src_x = 0, src_y = 0, src_w = 0, src_h = 0, dst_f_w = 0, dst_f_h = 0, dst_x = 0, dst_y = 0, dst_w = 0, dst_h = 0, format = 0, pa = 1.000000, transform = 0, dataspace = 0x       0, hdr_enable = 0, blending = 1, protection = 0, compression = 0, compression_src = 0, transparent(x:0, y:0, w:0, h:0), block(x:0, y:0, w:0,16:24
T42_<Tailsthefoz> 09-08 05:53:11.820    60    90 D display : config[5]16:24
T42_<Tailsthefoz> 09-08 05:53:11.820    60    90 D display :   state = 016:24
T42_<Tailsthefoz> 09-08 05:53:11.820    60    90 D display :     fd = (-1, -1, -1), acq_fence = -1, rel_fence = -1 src_f_w = 0, src_f_h = 0, src_x = 0, src_y = 0, src_w = 0, src_h = 0, dst_f_w = 0, dst_f_h = 0, dst_x = 0, dst_y = 0, dst_w = 0, dst_h = 0, format = 0, pa = 1.000000, transform = 0, dataspace = 0x       0, hdr_enable = 0, blending = 1, protection = 0, compression = 0, compression_src = 0, transparent(x:0, y:0, w:0, h:0), block(x:0, y:0, w:0,16:24
T42_<Tailsthefoz> 09-08 05:53:11.820    60    90 D display : config[6]16:24
T42_<Tailsthefoz> 09-08 05:53:11.820    60    90 D display :   state = 016:24
T42_<Tailsthefoz> 09-08 05:53:11.820    60    90 D display :     fd = (0, 0, 0), acq_fence = 0, rel_fence = 0 src_f_w = 0, src_f_h = 0, src_x = 0, src_y = 0, src_w = 0, src_h = 0, dst_f_w = 0, dst_f_h = 0, dst_x = 0, dst_y = 0, dst_w = 0, dst_h = 0, format = 0, pa = 0.000000, transform = 0, dataspace = 0x       0, hdr_enable = 0, blending = 0, protection = 0, compression = 0, compression_src = 0, transparent(x:0, y:0, w:0, h:0), block(x:0, y:0, w:0, h:0)16:24
T42_<Tailsthefoz> 09-08 05:53:11.820    60    90 E display : commit error: -1316:24
T42_<Tailsthefoz> 09-08 05:53:11.820    60    90 E display : Fail to open file /data/vendor/log/hwc/hwc_error_log.txt, error: Permission denied16:24
T42_<Tailsthefoz> 09-08 05:53:11.820    60    90 E display : Fail to open file /data/log/hwc_error_log.txt, error: No such file or directory16:24
T42_<Tailsthefoz> 09-08 05:53:11.820    60    90 E display : clearDisplay:: Failed to commit pset ret=-13 in clearDisplay()16:24
T42_<Tailsthefoz> 09-08 05:53:11.820    60    90 E display : Fail to open file /data/vendor/log/hwc/hwc_error_log.txt, error: Permission denied16:24
T42_<Tailsthefoz> 09-08 05:53:11.820    60    90 E display : Fail to open file /data/log/hwc_error_log.txt, error: No such file or directory16:24
T42_<Tailsthefoz> 09-08 05:53:11.820    60    90 E display : atomic commit error```16:24
T42_<Tailsthefoz> ```16:25
T42_<Tailsthefoz>  interface's deliverWinConfigData() failed: No such file or directory ret(-13)```16:25
T42_<NotKit> doesn't say anything useful to me16:25
T42_<Tailsthefoz> ```16:26
T42_<Tailsthefoz> 09-08 05:53:11.701    61    61 W libperfmgr: NodeLooperThread is not running, request DISPLAY_IDLE16:26
T42_<Tailsthefoz> 09-08 05:53:11.701    61    61 W libperfmgr: NodeLooperThread is not running, cancel INTERACTION16:26
T42_<Tailsthefoz> 09-08 05:53:11.701    61    61 W libperfmgr: NodeLooperThread is not running, cancel BOOST_120HZ16:26
T42_<Tailsthefoz> 09-08 05:53:11.701    61    61 W libperfmgr: NodeLooperThread is not running, cancel BOOST_90HZ16:26
T42_<Tailsthefoz> 09-08 05:53:11.701    61    61 W libperfmgr: NodeLooperThread is not running, cancel BOOST_60HZ16:26
T42_<Tailsthefoz> 09-08 05:53:11.701    61    61 W libperfmgr: NodeLooperThread is not running, cancel DISPLAY_UPDATE_IMMINENT```16:26
T42_<NotKit> nah, libperfmgr is unrelated, look closer at what makes HWComposer unhappy and unable to commit16:26
T42_<Tailsthefoz> ```16:27
T42_<Tailsthefoz> 09-08 05:53:11.495     0 14762 V HWC2    : Created layer 12970367471211405712 on display 016:27
T42_<Tailsthefoz> 09-08 05:53:11.548     0 14787 D vndksupport: Loading /vendor/lib64/hw/android.hardware.graphics.mapper@4.0-impl.so from current namespace instead of sphal namespace.16:27
T42_<Tailsthefoz> 09-08 05:53:11.549     0 14787 I Gralloc4: Adding additional valid usage bits: 0x016:27
T42_<Tailsthefoz> 09-08 05:53:11.554     0 14787 D vndksupport: Loading /vendor/lib64/hw/android.hardware.graphics.mapper@4.0-impl.so from current namespace instead of sphal namespace.16:27
T42_<Tailsthefoz> 09-08 05:53:11.600    60    90 E display : commit error: -1316:27
T42_<Tailsthefoz> 09-08 05:53:11.601    60    90 E display : Fail to open file /data/vendor/log/hwc/hwc_error_log.txt, error: Permission denied16:27
T42_<Tailsthefoz> 09-08 05:53:11.601    60    90 E display : Fail to open file /data/log/hwc_error_log.txt, error: No such file or directory16:27
T42_<Tailsthefoz> 09-08 05:53:11.601    60    90 E display : deliverWinConfigData:: Failed to commit pset ret=-13 in deliverWinConfigData()16:27
T42_<Tailsthefoz> 09-08 05:53:11.601    60    90 E display : Fail to open file /data/vendor/log/hwc/hwc_error_log.txt, error: Permission denied16:27
T42_<Tailsthefoz> 09-08 05:53:11.601    60    90 E display : Fail to open file /data/log/hwc_error_log.txt, error: No such file or directory16:27
T42_<Tailsthefoz> 09-08 05:53:11.601    60    90 E display : atomic commit erro```16:27
T42_<Tailsthefoz> it seems to be deliverWinConfigData16:27
T42_<NotKit> also please pastebin or IRC people will be very angry at you16:27
T42_<Tailsthefoz> ah alright16:27
T42_<Tailsthefoz> https://pastebin.com/LgB8KvXq it must be these right?16:29
T42_<Tailsthefoz> because deliverWinConfigData fails with no such file or directory16:29
T42_<NotKit> it won't fail just because it failed to open a log file nornally16:31
T42_<elros34> you masked this encryption service and any other which might keep restarting?16:31
T42_<Tailsthefoz> if I create the directory, then this instead of no such file or directory says permission denied (re @Tailsthefoz:  interface's deliver...)16:32
T42_<Tailsthefoz> even if I give it permission it gets rid of that error, but it still can't commit so16:35
T42_<NotKit> the gralloc usage errors could be related, but you need to confirm who produces them first16:36
T42_<Tailsthefoz> no wait it doesn't get rid of that error (re @Tailsthefoz: even if I give it pe...)16:37
T42_<Tailsthefoz> I'm fairly sure it isn't fingerterm because when I have logcat open while launching fingerterm I don't see them (re @NotKit: the gralloc usage er...)16:37
*** phlixi is now known as Guest838017:42
*** phlixi_ is now known as phlixi17:42
T42_<Tailsthefoz> trying to think of hat to do next18:18
T42_<Tailsthefoz> trying to think of what to do next (edited)18:18
tohaturokelros: it's hybris-recovery.img18:37
T42_<elros34> then boot or flash it, then you should see some options and have telnet or/and ssh access18:56
tohaturokI've flashed it to phone and phone still be in bootloop, but right now I don't see SailfishOS logo, just sony logo and after 1 minutes it reboot19:15
T42_<elros34> nothing in host dmesg?19:55
tohaturokelros34: nothing20:03
T42_<elros34> what about hybris-recovery.img in droid-hal-*-recovery.rpm? Is it same?20:11
tohaturokyes, the same file20:19
T42_<elros34> same size? flash it and try20:20
tohaturoksame md5sum20:23
tohaturokdoes hybris-recovery load the kernel?20:27
tohaturokI try to figure out what the problem is20:28
T42_<elros34> it is kernel + initramfs20:33
T42_<elros34> see droid-hal-img-boot sources or whatever it's called, you should have them on disk20:35
tohaturokmaybe there is the issue with initramfs?20:36
T42_<elros34> Thaodan will probably know better. I guess you may hit this https://github.com/mer-hybris/hybris-initrd/blob/master/recovery-init#L14720:39
tohaturokgood point, let me check serial20:41
tohaturoknothing(((20:52
T42_<elros34> can you show your droid-local-repo/?21:21
T42_<elros34> for example: ls -alR | grep recovery21:22
tohaturok-rw-rw-r-- 1 turok turok  33090200 Jun  1 21:51 droid-hal-pdx224-img-recovery-5.15.94-1.aarch64.rpm21:25

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