libera/#maemo-leste/ Sunday, 2025-05-25

freemangordonarno11: so, using haze with xmpp account should trigger the issue, right?10:33
freemangordonarno11: ah, thanks (commhistory)10:36
freemangordonthough, I am not sure that's the case (commhistoryd)10:43
freemangordonso, the only place in all the SF repos on github, according to github search, that handles "IncomingMessage" is tp-ring10:49
freemangordonis there anyone that has jolla phone? to perform a simple test10:49
Wizzupfreemangordon: why would they need some additional if they just don't online the modem until they rae ready11:41
freemangordonok, but what would happen if tp-ring crashes?12:04
freemangordonand while it is restarted sms arrives?12:04
freemangordonI wonder if tp-ring onlines the modem12:04
freemangordonif that's the case, then we may leave cellulard to only power up the modem12:05
freemangordonbut I doubt12:05
freemangordonanyway, lemme firs fix presence-ui/addressbook12:05
freemangordonarno11: ping13:47
arno11yep13:48
freemangordonI think I have a proper fix for h-s-m issue13:48
freemangordonhowever...13:48
arno11ah cool13:48
freemangordonI want first to confir that I am fixing the correct issue13:48
arno11ok...13:48
arno11ok13:48
freemangordondo you mind if you collect some logs for me?13:48
arno11sure np13:49
freemangordonok, sec13:49
freemangordongimme a minute to create instructions for you13:51
arno11ok13:51
freemangordon(and test them)13:51
freemangordonarno11: so, revert h-s-m startup script back to 1513:56
freemangordonand then, comment out current dsmetool invocation (to restore it later on) and add that line:13:57
freemangordon/usr/sbin/dsmetool -t "G_MESSAGES_DEBUG=all DEBUG_OUTPUT=1 /usr/bin/hildon-status-menu >> /home/user/hsm.log"13:57
freemangordonand then reboot13:58
arno11ok np13:58
freemangordonafter reboot (given the issue is still there), please provide /home/user/hsm.log13:58
arno11ok rebooting...14:03
arno11freemangordon: back14:16
arno11https://paste.debian.net/hidden/c8999cbe/14:16
freemangordonso, what is shown in status menu now?14:17
arno11clock, internet connection and profile14:18
freemangordonhmm...14:18
arno11no availability btn14:18
arno11and no tg account in voip and im account menu14:19
freemangordonwait, what?14:19
freemangordonmay I have the output of mc-tool dump14:19
freemangordonyou may remove/mask usernames/pwd14:19
arno11yeah14:20
arno11don't need to provide btw, only sip and ring account are there14:21
arno11no tg14:21
freemangordonheh14:21
freemangordonthis has nothing to do with h-s-m14:21
arno11but sure the account is there14:21
freemangordonwhere?14:21
freemangordonif mc-tool does not list it, it is *not* there14:22
arno11no idea, if i reboot and start hsm later, it appears again14:22
freemangordonis it possible to give me remote ssh access to your device?14:22
freemangordonI uderstan that tarting h-s-m later 'fixes' it14:23
freemangordonbut, mc-tool not showing the account, means there is something terribly wrong with TP14:23
freemangordonand I want to understand what14:23
arno11@ssh, unfortunately not, because of crappy home network14:24
freemangordonmaybe tp-haze requires stuff not ready by that time14:24
arno11yeah maybe14:24
freemangordonwhat happens if you start t-haze by hand?14:24
freemangordonsec14:24
freemangordonHAZE_DEBUG=all HAZE_PERSIST=1 G_MESSAGES_DEBUG=all /usr/lib/telepathy/telepathy-haze14:25
freemangordonor rather, first check if you have haze running14:25
arno11yep, sec14:25
freemangordonhmm... maybe it runs on another session bus...14:25
freemangordonps -ef | grep haze14:26
arno11user      4065  4052 16 14:26 pts/4    00:00:00 grep haze14:26
freemangordonok, haze does not run14:26
freemangordontry:14:27
freemangordonHAZE_DEBUG=all HAZE_PERSIST=1 G_MESSAGES_DEBUG=all /usr/lib/telepathy/telepathy-haze14:27
freemangordonto me haze just crashes14:27
freemangordonOTOH, that should not stop mc from showing the account14:27
freemangordonWizzup: ^^^ any idea?14:27
arno11haze starts but still no account14:29
freemangordonps -ef | grep dbus14:29
freemangordonarno11: ^^^14:30
arno11yep, sec14:31
arno11https://paste.debian.net/hidden/73f3b22a14:32
freemangordonarno11: does 'killall mission-control-5' fix the issue?14:33
arno11(in haze i see purple/certificate/x509/ca-WARNING **: 14:27:49.403: Lazy init failed because an X.509 Scheme is not yet registered. Maybe it will be better later.)14:33
freemangordonthat's fine14:33
arno11@mission control, let me check14:33
freemangordonjust tell me if restarting mc fixes the issue14:33
arno11no change unfortunately14:34
freemangordonwait, WTYM no change?14:35
freemangordondoes mc-tool now lists the account?14:35
freemangordon*list14:35
arno11yeah now the account is visible14:35
freemangordonok, that explains it14:36
arno11i suppose it should work now if i killall hsm14:36
freemangordonyes14:36
freemangordonwait14:36
freemangordoncheck if it is vissible in accounts ui14:36
freemangordonit shold be14:36
freemangordonso, my theory is:14:36
arno11yeah it works now14:37
arno11well done14:37
freemangordonon boot, haze crashes so mc cannot add it14:37
freemangordonnow, we have to find out why haze crashes14:37
arno11ok14:37
freemangordonlemme test something14:38
arno11ok14:40
Wizzupfreemangordon: if you're in vm disable apparmor14:44
Wizzupif you're using the telegram thing14:44
Wizzup12:04 < freemangordon> I wonder if tp-ring onlines the modem14:44
Wizzupit does not14:44
Wizzup12:03 < freemangordon> ok, but what would happen if tp-ring crashes?14:44
Wizzuprestart the phone :)14:45
freemangordonsure, but sms will be missed14:48
freemangordonWizzup: I am not using telegram thing14:49
freemangordonalso, it seems to crash tp-haze only in early boot stages14:49
freemangordonI am trying to find a way to gather tp-haze logs whyle starting-up14:49
dsc_freemangordon: this works: https://plak.infrapuin.nl/selif/lw1pztc6.txt14:56
freemangordonyeah, I was writing wrapper script as well :)14:58
Wizzupthe ulimit, is that necessary?14:59
Wizzupoh for coredumps?14:59
freemangordonhmm, does not seem to work15:02
freemangordonI am doing something wrong it seems15:02
dsc_I did get ~/haze.log with that after a reboot (in vM)15:02
dsc_oh ehh, chmod +x15:03
dsc_\o/15:03
freemangordon/usr/lib/telepathy/telepathy-haze: line 3: /home/user/haze.log: Permission denied15:03
freemangordonif I start by hand as user15:03
freemangordonapparmor="DENIED" operation="mknod" profile="/usr/lib/telepathy/telepathy-*" name="/home/user/haze.log" pid=5116 comm="telepathy-haze" requested_mask="c" denied_mask="c" fsuid=1000 ouid=100015:03
freemangordon:D15:03
Wizzupyes, disable apparmor15:04
dsc_xD15:04
Wizzupthis is how a MAC should work15:04
freemangordonarno11: do you have apparmor disabled?15:04
Wizzupdisable it if you're debugging and violating security boundaries15:04
Wizzupwe don't have apparmor on the phones15:04
freemangordonoh, really?15:04
freemangordonok15:04
Wizzupindeed15:04
Wizzupit's not yet enabled in the kernels15:04
freemangordonok15:04
Wizzupwe will start enabling it 1-2 months from now or so15:05
freemangordonwhat is the 'proper' way to disable it in the VM?15:05
dsc_sec15:06
WizzupI would just uninstall purge it15:06
freemangordonok15:06
Wizzupor you can remove the init script15:06
Wizzupeither of those should be enough15:06
freemangordonor I can disable the service15:06
Wizzupunless something else depends on it15:06
Wizzupin which case disabling doesn't help15:06
freemangordonoh, there is no systemctl :D15:07
* freemangordon hides15:07
dsc_https://plak.infrapuin.nl/selif/tesk2l9j.txt15:07
dsc_do not remove libapparmor1 (or whatever it is called) - apt will go into chaos15:07
dsc_not sure if the grub thing is neccesary15:07
freemangordonjust uninstalling is not enough?15:07
dsc_but I really wanted it to be gone15:07
Wizzupfreemangordon: should be enough15:08
freemangordonok15:08
Wizzuplet's try just uninstalling it15:08
freemangordonmhm15:08
dsc_check with `lsmod` after purging to confirm15:08
Wizzupthe kernel module is not part of apparmor pkg..15:08
Wizzupit's part of the kernel pkg, but the module by itself does nothing15:08
Wizzupit just provides userspace a way to parse and upload compiled mac profiles15:09
Wizzupwhich won't happen if userspace is not installed15:09
freemangordonarno11: so, please, do what dsc_ pasted ^^^ to get haze log during boot15:11
freemangordonthen provide it (making sure sensitive data if any is masked)15:12
arno11ok will do15:12
freemangordonuninstalling apparmor is enough15:12
dsc_arno11: chmod +x this wrapper too15:12
dsc_just to be sure15:12
arno11yep :P15:13
freemangordonarno11: you can revert hsm invocation script15:13
freemangordonstill keepin it 15 ofc15:13
arno11ok15:13
freemangordonbut we don't really need hsm logs as the issue is not there15:13
Wizzupfreemangordon: good @ uninstalling15:15
freemangordonis it ok if I push directly to daedalus-stable?15:25
arno11rebooting now, let's see the logs15:26
freemangordonWizzup: ^^^15:28
arno11hmm after reboot, the log file has been created but it is empty...15:38
arno11i chmod'd +x it btw15:39
freemangordon'it' being?15:39
arno11it == the wrapper15:39
freemangordonanything in dmesg log?15:39
freemangordonor, is there coredump?15:40
freemangordonoh, wait15:40
freemangordonI forgot to tell you to remove the HAZE_PERSIST env var15:40
arno11ah ok15:40
freemangordonwait15:40
freemangordonone more thing15:40
freemangordonthe line should be:15:41
freemangordonHAZE_DEBUG=all G_MESSAGES_DEBUG=all /usr/lib/telepathy/telepathy-haze2 2>&1 >> /home/user/haze.log15:41
arno11ok15:41
arno11let's try again15:41
freemangordonok15:41
Wizzupfreemangordon: yes @ push to stable15:46
freemangordonok15:46
freemangordonI want to improve presence plugin to properly behave when mc is restarted15:47
freemangordonand then will rebuild15:47
freemangordonhave to go for a while, bbl15:47
arno11freemangordon: got the logs15:56
arno11https://paste.debian.net/hidden/9c93173815:56
arno11no error, no fail, no warning15:57
freemangordonwell, not really16:02
freemangordonsee purple/prefs-INFO: 15:48:12.382: /purple/savedstatus/isidleaway changed, scheduling save.16:03
freemangordonand then nothing16:03
freemangordonbut there should be account related stuff16:04
freemangordonwe shall enable purple debug too16:04
freemangordonand telegram-tdlib debug too16:05
freemangordonhowever, I am sure that if you start haze manually later on, you will see different log16:06
freemangordondo I need android to create telegram account?16:08
WizzupI think so unfortunately16:17
freemangordonarno11: remove haze.log, add PURPLE_UNSAFE_DEBUG=1 PURPLE_VERBOSE_DEBUG=1 to tp-haze startup, reboot and provide the new log please16:18
freemangordonalso, check in /var/tmp for properly created haze directory (you may want to remove the old ones first)16:19
arno11sorry i have to go, can only check this evening/night16:21
freemangordonok, np16:21
freemangordonWizzup: any idea who is supposed to clean /var/tmp? as it seems it just piles up16:21
arno11however you should able to create a tg account via telegram-desktop16:21
arno11bbl16:22
freemangordonI don;t have android phone16:22
arno11i mean from leste with telegram-desktop16:22
freemangordonwell, I have ubintu, why do I need leste?16:22
freemangordon*ubuntu16:22
arno11leste or any other linux ofc16:23
freemangordonyeah16:23
arno11bbl16:23
Wizzupfreemangordon: uh, can check, I think it's not supposed to be auto cleaned16:23
Wizzuparno11: oh cool @ telegram-desktop16:23
freemangordonarno11: ping me when you have time to continue16:23
freemangordonWizzup: ok, but lots of programs write there16:24
freemangordonit seems systemd-tmpfiles-clean clean it :D16:25
Wizzuphttps://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html#vartmpTemporaryFilesPreservedBetwee16:26
freemangordonright, but still those should be deleted16:26
freemangordon" Although data stored in /var/tmp is typically deleted in a site-specific manner, it is recommended that deletions occur at a less frequent interval than /tmp."16:26
freemangordonbut in leste vm I see files back from 202216:27
Wizzupit's about 100M on my laptop and also does back to 201916:28
Wizzuplet me check my d416:29
Wizzup18MB on my d4 (mostly some mafw-gst stuff)16:29
WizzupI don't think is very impactful right now16:29
freemangordonok16:29
Wizzupone thing we do also need to fix is setting up relatime on all devices16:32
Wizzupsome devices don't have a / entry in their fstab even16:32
Wizzupso this can get a bit tricky16:32
freemangordonyes, we must do that16:34
Wizzupyes, but if there is no /etc/fstab entry, wheree :)16:39
dsc_my problem with /tmp/ is writing to disk, trashing the SD card16:43
dsc_but maybe its not an issue16:44
Wizzupwhat are you writing that causes this much load?16:45
dsc_just in general16:45
gnarfacefor something like a phone it's probably acceptable to mount /tmp as tmpfs17:49
gnarfacei think that's even the default on raspbian, isn't it?17:49
gnarfacetypically you wouldn't have much in there, so it doesn't need much space17:50
gnarfacethat should minimize related disk load17:50
gnarfacei think on a system with a mysql instance running, i once hit a 32MB limit i'd set, but otherwise under normal use i don't think i've seen it go above 16MB (iirc raspbian defaults to 64MB?)17:54
gnarfaceobviously ymmv17:55
freemangordonok, rtcom-presence-ui should now properly react to mc being restarted or to new cm being installed18:22
freemangordonwill do the same for addressbook18:22
freemangordonnone of these will fix haze issue :)18:23
Wizzupfreemangordon: great, ty18:41
freemangordonWizzup: hmm, I am not sure I want to implement proper mc restarted logic, it will be too complicated, I'd rather add one more function like this https://git.maemo.org/leste/osso-abook/src/branch/master/lib/osso-abook-init.c#L13219:33
freemangordonsomething like osso_abook_set_am_died_func() or osso_abook_set_tp_died_func()19:33
freemangordonwhat do you think?19:33
freemangordonthis will result in addressbook exiting if mc is restarted19:34
freemangordonhmm?19:34
Wizzupfreemangordon: sorry what should this callback d21:19
Wizzupdo?21:19
freemangordonsee https://git.maemo.org/leste/osso-addressbook/src/branch/master/src/main.c#L2721:21
Wizzupok, so this is only in abook binary, not in the library21:22
freemangordonbasically this is what happens if eds got stopped21:22
Wizzupok21:22
freemangordonno, it is the library that provides osso_abook_set_backend_died_func()21:22
freemangordonbut binary calls it to register cb21:22
freemangordongiven that mc got killed is not an ordinary situation (the sa as eds got stopped) I think it is reasonable to exit the application21:23
freemangordon*the same21:23
Wizzupok21:24
WizzupI am not sure where this happens in any case but I am not sure if we say want to stop conversations if mc is not running21:24
Wizzupand conversations (for example) does use abook21:24
arno11freemangordon: new log:21:24
arno11https://paste.debian.net/hidden/00b55ca6/21:24
freemangordonWizzup: so, what will conversations do if mc got killed?21:24
freemangordonor, you think I shall try to re-init everything?21:26
freemangordonarno11: thanks21:26
arno11np21:26
freemangordonare yuo sure purple debug is enabled?21:26
arno11yep21:26
arno11and i removed old tmp files21:26
freemangordonhmm, I see no diff with the old one21:27
arno11yes indeed...21:27
freemangordonthat's weird21:27
arno11mhm21:28
Wizzupfreemangordon: keep running and keep checking dbus for tp to come back21:28
freemangordonright, but the issue is that binary might have stalled data, like protocol objects and whatnot21:28
freemangordontp coming back is not an issue21:29
freemangordonbut we shall destroy all the account, protocol, etc objects, re-create TP e-books, attach to the new account manager and start from the beginning21:30
freemangordonnot to say that account manager might be provided by th eapplication to the library21:32
freemangordonthen what?21:32
freemangordonto mt it is application that shall watch for the account manager service dis-appearing from the bus and re-init the library21:33
freemangordon*to me21:33
freemangordonlibrary has no means to know what is cached in the application21:34
Wizzupok21:36
Wizzuphow often does mc disappear?21:36
freemangordonshould never happen ;)21:37
freemangordonadding new connection mamanger is another story21:37
freemangordon*manager21:37
freemangordonI will take care of that in the library21:38
Wizzup`ok21:41
WizzupI thought maybe the problem we were seeing was mc disappearing during boot or something, but I wasn't following along21:41
freemangordonno, mc is fine21:42
freemangordonit is that tp-haze does not provide accounts information for some reason21:42
freemangordonarno11: please, double-check that purple debug is enabled and also, check if additional debug logs can be enabled for the particular pidgin plugin (telegram-tdlib)21:43
arno11i already doublecheck for purple, will look @tdlib21:46
WizzupI don't think tdlib has much to do with purple, or do you mean purple-tdlib21:48
Wizzupso is this a telegram specific problem?21:48
arno11i don't think it is telegram specific as i encountered quite the same issues with facebook21:50
arno11it seems maemo specific21:51
arno11i don't remember any troubles with bitlebee21:52
arno11*bitlbee21:58
freemangordonI don't think it is maemo, it is either TP or libpurple issue21:59
freemangordonarno11: does it happen with xmpp haze account?22:00
arno11for xmpp, no idea22:00
arno11we should try22:00
arno11(i don't have any account)22:00
freemangordonWizzup: could you provide a test account ^^^22:04
arno11btw no trouble with pidgin22:04
freemangordonarno11: yes, but you start pidgin way after averything is ready22:04
arno11yeah22:05
freemangordonhmm, lemme slow down my vm, to see if it will happen22:06
arno11ah good idea :)22:06
freemangordonok, 1 cpu/10% execution cap22:08
arno11if slowness is the problem, it could be also ram/swap22:09
freemangordonyeah, but I think now vm runs even slower than n900 :)22:09
arno11lol ok22:10
freemangordonit still boots :)22:10
arno11:)22:10
freemangordonand I have fb acccount there, so lets see22:11
arno11ok cool22:11
freemangordonno, it seems fine :(. lemme slow it down even more22:12
freemangordonhmm, ok, actually I see no presence icon22:15
arno11ah22:15
freemangordonhowever, the account is visible in mc-tool22:15
freemangordonand in accounts-ui22:15
arno11yes it was the same for me iirc22:15
arno11*with facebook22:16
freemangordonrestarting h-s-m makes it appear :)22:16
arno11yep22:16
freemangordonno, that's with xmpp account22:16
freemangordonlemme see if I can speed-up the machine a bit22:16
freemangordonand still make it happen22:16
arno11ok22:16
arno11what you see with xmpp is exactly what i saw with fb22:17
freemangordonok, I have a test-case here22:17
freemangordonright22:17
freemangordonhowever, the account is visible in mc-tool and in accounts-ui22:17
freemangordonso there is another issue with telegram22:17
freemangordonbut lets fix that one first22:18
arno11yes but that's because login is differnet22:18
freemangordonarno11: thanks, will get back to you when I have something22:18
arno11if you solve this issue i'm pretty sure it will be ok with tg as well22:18
freemangordoncould be, lets see22:19
arno11i.e i saw the same with facebook and solved it by starting hsm later. same result with tg22:19
freemangordonright22:21
freemangordon2025-05-25T23:42:02.294965+03:00 devuan kernel: [  156.642104] traps: telepathy-haze[3581] trap int3 ip:7f027d333e32 sp:7ffe076027b0 error:0 in libglib-2.0.so.0.7400.6[7f027d2f5000+8d000]22:43
Wizzupfreemangordon: you want xmpp test acc for arno11?22:48
dsc_username 'stevejobs' is already taken fyi22:48
freemangordonWizzup: no need, seems I am able to trigger the issue on my VM22:49
WizzupI will DM him when he's back22:49
Wizzupoh ok22:49
freemangordonok, account manager never get ready23:04

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