libera/#maemo-leste/ Monday, 2022-04-04

mighty17[m]freemangordon: https://github.com/xc-racer99/mesa-pvr/blob/mesa-20.3.2-pvr-musl-2/src/egl/generate/eglFunctionList.py#L200-L202 we need 2 functions from what i understand am i right?08:06
mighty17[m]also `LibGL:  DRI_IMAGE (supported version: 8 - max version: 19)` ig DRI_IMAGE is working fine09:27
mighty17[m]`PVR:(Error): PVRContextCheckGLES2: Unsupported context flags: 0x4. [0, ]` also what is this?09:28
mighty17[m]`libEGL debug: EGL user error 0x3009 (EGL_BAD_MATCH) in eglCreateContext: dri2_create_context`10:24
bencohhm, I'm trying to run torus-trooper with gl4es, but it dies with "abagames.util.sdl.sdlexception.SDLInitFailedException@src/abagames/util/sdl/sdlexception.d(13): Unable to create SDL screen: X11 driver not configured with OpenGL"12:01
bencohldd reports both libSDL-1.2 and libSDL-212:01
bencohhow is it linked against both?12:01
bencoh(apparently both libsdl1 and libsdl2 come from the leste repos)12:05
Wizzupuvos suggested we set SDL_RENDER_DRIVER=opengles212:06
Wizzupmaybe this is related?12:06
Wizzuphttps://github.com/maemo-leste/leste-config/commit/a878a66b157eff7e8a9d8b7d1415f8559057844b12:06
bencohI still get the sdl/x11/opengl error with SDL_RENDER_DRIVER=opengles212:07
Wizzupcan you unset it?12:07
bencohit's not set by default, only the hint is12:07
Wizzupweird,12:08
bencohbut I think it really tries to use GLX12:08
Wizzupwhat about  export SDL_VIDEO_X11_FORCE_EGL=112:08
WizzupFORCE_EGL doesn't sound like letting it use glx12:08
bencohsame12:09
Wizzup(I mean unset SDL_VIDEO_X11_FORCE_EGL)12:09
bencohnot sure for which sdl version it is12:09
Wizzuperight12:09
bencohFORCE_EGL isn't set by default here12:09
Wizzupmaybe it's a -devel only change12:09
bencohoh, I don't have that file btw, probably -devel yeah12:09
bencohI wonder if it actually uses sdl1 or sdl2 (hence my first question)12:10
Wizzupright, that is weird @ linked12:11
uvosforching egl should not stop it from using opengl12:17
uvosglx is broken on video-omap12:17
uvos (so if the application is coded to only  use glx for context cration it cant work, even with gl4es)12:17
bencohdamn uvos left12:43
bencohglxgears works with gl4es btw12:44
uvosbencoh: im here12:54
uvosbencoh: hmm thats pretty wierd it fails in conext creation here12:54
mighty17[m]<bencoh> "glxgears works with gl4es btw" <- wait what really? u didnt face https://github.com/ptitSeb/gl4es/issues/341 ?12:57
bencohuvos: the fact is I wonder if it fails or if it doesn't try12:57
Wizzupmighty17[m]: did you look at our gl4es package...?12:57
mighty17[m]"our" being??12:58
uvosbencoh: well sdl should use egl anyhow, thats unaffected12:58
uvosbencoh: but yeah best step with gdb to see what its really trying12:58
* bencoh nods13:00
bencohmighty17[m]: http://pastebin.notk.org/pastebin.php?show=m124a086213:00
bencohgl4es comes from https://maedevu.maemo.org/leste I didn't bother rebuilding13:01
mighty17[m]:o thats pretty interesting it working for you and not me13:02
uvosit also dosent work for me so idk what bencoh is doing13:02
bencohuh13:05
bencohI'm running -stable, maybe that's why13:06
bencohI haven't fiddled that much with my leste install, so ... :)13:06
buZzi've played with puredata+GEM (its OpenGL library) on a droid4 with gl4es installed13:43
buZzzero issues and pretty decent performance13:43
buZzinstall gl4es, restart Xorg, get functional OpenGL13:45
buZzhonestly, i didnt try glxgears cause i dont really consider that a worthwhile test :P13:46
bencohalright, so ... that thing uses libsd1.2 apparently, and the error means that sdl was built without GLX support15:52
uvosbencoh: it was disabled for some time16:39
uvosbencoh: but its been reenabled in devel16:39
bencohoh16:43
bencohwell, I rebuilt libsdl1.2 with it, it looks like it runs, I'll see if it displays something at home16:44
bencohthe issue with gl4es and allowing some kind of broken GLX compat layer to run is that I have a feeling it will break many detection mechanisms16:45
bencohwhich is a bit sad16:46
uvosthat is correct16:46
uvosmost things will prefer gl when offered16:46
bencohI think mpv 0.29 did that as well, I built the latest version from debian's git repository, and now it doesn't accept x11 anymore (I think it got deprecated / disabled by default)16:47
bencoh(ie it frowns when I pass gpu-context=x11, and works properly with x11egl)16:48
freemangordonugh, what a nasty bug there is in rtcom_widget_set_account17:16
freemangordonthey pass   G_STRUCT_OFFSET(RtcomWidgetIface,  store_settings) instead of   RTCOM_WIDGET_GET_IFACE(obj)->store_settings as a function to g_signal_handlers_disconnect_matched() call17:18
freemangordonor rather it is  G_STRUCT_OFFSET(RTCOM_TYPE_WIDGET,  store_settings)17:38
freemangordonbut still buggy17:38
freemangordonhere https://github.com/maemo-leste/rtcom-accounts-ui/blob/master/widgets/rtcom-widget.c#L29617:40
bencohthe fact that n900/fremantle proves to be usable is some kind of mystery/miracle to me :)17:41
freemangordon:D17:41
bencohI mean, we've been using it for years, it really works ... but how :]17:41
freemangordonyeah, agree17:41
freemangordonI have a colleague of mine which has a theory about "quantum programming" :D17:42
bencoh^.^17:42
freemangordonthe real question is whether I introduced more bug with REing that I fixed :p17:43
freemangordon*bugs17:44
bencohat least debugging it should be more accessible to others17:44
freemangordonyeah17:44
freemangordondeffinitely17:44
freemangordondefinitely17:44
bencohwhich reminds me, I wonder if we still have that odd memory leak when double-pressing powerbutton to blank screen (I think that was the source of it)17:45
freemangordonfirst time I hear about that17:45
freemangordonit that in CSSU?17:45
freemangordon*is that17:45
bencohnot -devel, but yeah, years ago we tried to investigate a memory leak around blanking/unlocking screen17:46
freemangordonin tklock? I think I run systemui against valgrind back then and the was no memleak17:47
freemangordonI remember I even added code to run it as a standalone program, (iirc)17:47
bencohyeah I remember you checked that, I think you even fixed something along the process, and I remember we didn't manage to find the source of it in the end17:48
bencohbut I could still see memory usage rise slightly at each screen blanking (when double-pressing power)17:48
freemangordonhmm17:49
bencoh(I use some gesture to blank, so it hasn't bothered me for years, and I stopped thinking about it)17:49
bencohwell, maybe I'll play a bit with that on droid4 and see if anything pops17:49
freemangordonwell, we have all the sources already so you may want to check it in leste17:49
freemangordonmhm17:49
freemangordonactually you can run systemui in valgrind, leaving tklock only17:50
bencohleaving tklock only?17:50
freemangordonthat should give you full details on what's goiing on17:50
freemangordonas a module17:50
bencohI think the systemui menu is the cause btw17:50
freemangordonwhat is "systeui menu"? powerkey-menu?17:50
bencohyeah17:51
bencohiirc they have some hack, where it catches the first press and waits for a second one17:51
freemangordonthen leave powerkey-menu only17:51
freemangordonyeah, I still recall like a little elephant :) https://github.com/maemo-leste/osso-systemui-powerkeymenu/blob/master/osso-systemui-powerkeymenu.c#L4817:52
freemangordonso, you can uncomment that and run powerkeymenu as a standalone application17:52
freemangordonor, remove all other systemui plugins and leave that one only and run systemui with valgrind17:53
bencohhmmm, I'll have to try then, thanks :)17:54
freemangordonthough I am almost sure I fixed everything in powerkeymenu back then. but... who knows :)17:54
bencohhttps://github.com/maemo-leste/osso-systemui-powerkeymenu/commit/98dd7a486ac886c536f812e21cc21b9b20a30706 this somehow rings a bell17:56
bencohbut I think I tried a year or two later, so ...17:57
bencohanyway, we'll see :)17:57
freemangordonmhm17:57
freemangordonvalgrind to the rescue17:57
bencohyeah (not that I really like valgrind, especially when glib is involved ...)17:57
bencohdo we have/need a valgrind exceptions file?17:57
freemangordonugh, why? just pass correct exceptions17:57
freemangordonyes, you need17:58
freemangordonI can provide the ones I use(d) for osso-abook17:58
freemangordonthey are not 100% complete, but still better than nothing17:58
bencohyeah, the issue is guessing the correct ones, it's kindof a pain, and I haven't done that in a while17:59
freemangordon--suppressions :)17:59
bencohhuhu :)17:59
freemangordonok, PM me some email and I'll send them to you17:59
freemangordonsent18:01
bencohreceived, thanks!18:01
bencohfor the records, torus-trooper works well20:38
bencoh(with gl4es and sdl1.2 allowing glx)20:39
bencohand vkcube works (alright, that's just for fun)20:49
mighty17[m]vulkan :O thats awesome20:51
mighty17[m]series6 got it but not series5 :'(20:52
uvos /etc/X11/Xsession.d/03alarmd is useless20:54
uvosthere is no way this works20:55
bencohvulkan actually uses llvm, I've been lied to :(22:29

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