libera/#maemo-leste/ Monday, 2022-08-29

sfahi, so I am finding  that sphone is seg-faulting.  Even with debug enabled I see the following message before it dies:01:18
sfa(sphone:4662): hildon-1-CRITICAL **: 23:17:22.427: Tried to initialized Hildon more than once.01:18
sfawhat else should I do to figure out what might be causing this segfault?01:19
sfadmesg doesn't show anything... I haven't checked hildon logs yet though.01:19
Wizzupsfa: that message is harmless01:34
Wizzupmaybe install sphone-dbgsym and run gbd01:34
Wizzupand run it in gdb01:34
Wizzupwhen is it segfaulting?01:34
sfawill do thanks01:38
sfait's segfaulting as soon as I start it01:40
sfaI've tried from the UI and it dies and from the ocmmand-line I see it segfaults.01:41
sfaafter all of the plug-ins are registered01:41
sfasphone: store-rtcom: Successfully opened rtcom-eventlogger database01:42
sfaThat's the last message before the hildon Warnings and then it segfaults.01:43
sfa(gdb) bt01:44
sfa#0  0x0000007ff7dabb7c in g_type_check_instance_cast () from /usr/lib/aarch64-linux-gnu/libgobject-2.0.so.001:44
sfa#1  0x0000007fe179b02c in sphone_module_init (data=<optimized out>) at ./src/modules/gui/gtk2/ui-calls-manager-gtk.c:41801:44
sfa#2  0x0000005555554c94 in sphone_modules_init_modules () at ./src/utils/sphone-modules.c:9301:44
sfa#3  sphone_modules_init () at ./src/utils/sphone-modules.c:17001:44
sfa#4  0x00000055555543a8 in on_name_acquired (connection=<optimized out>, name=<optimized out>, user_data=0x7ffffff598) at ./src/sphone.c:31401:44
sfathere are more frames01:44
sfabut I think that might be the most informative01:44
Wizzupyou'll probably need more dbgsym packages for glib and gtk and others01:45
sfayeah looks like it01:45
sfalet me go install those01:45
Wizzupdo you run this as user btw?01:45
sfathis particular time it was as root01:45
sfabut usually as user01:45
Wizzupprobably better not to run as root01:46
sfaokay let me try it again as user01:46
Wizzupfrom your trace it looks like some module is not exporting an _init function01:47
Wizzupbut I think more dbgsym info will give more info01:48
Wizzupyou can use dpkg -S /usr/lib/aarch64-linux-gnu/libgobject-2.0.so.0 (for example) to get the pkg for it01:48
Wizzupand then just append -dbgsym typically01:48
Wizzuphm... you might need the debian repo for dbgsyms01:48
Wizzupsec01:48
sfalibglib2.0-0:arm64: /usr/lib/aarch64-linux-gnu/libgobject-2.0.so.001:49
sfayeah I think you're right01:50
Wizzup# cat /etc/apt/sources.list.d/debug.list01:50
Wizzupdeb http://deb.debian.org/debian-debug/ buster-debug main01:50
Wizzupdeb http://deb.debian.org/debian-debug/ buster-backports-debug main01:50
Wizzupthat's it01:50
sfacool thanks01:51
Wizzupit's bedtime here now, I'll check back tomorrow01:51
Wizzupuvos wrote a lot of sphone, and he should be around tomorrow oto01:51
Wizzuptoo*01:51
sfacool thanks.  Also, where's the repo to sphone?  Is it on github?  I haven't looked yet.01:54
sfahttps://github.com/maemo-leste/sphone01:57
sfaFound it01:57
Wizzuphttps://maedevu.maemo.org/pkgweb/search?q=*sphone*01:58
Wizzupcan also help01:58
Wizzupah that doesn't have a link to the pkg :)01:58
Wizzupmost of our packages have it01:58
* Wizzup bbl01:58
sfacool thanks!02:00
sfait looks like the "canberra-gtk-module" that's possibly missing.02:02
freemangordonhmm, cellulard cannot be .launcher08:09
uvos__so whats happening from sphone there, going by the trace, is that hildon_stackable_window_new(); fails09:55
uvos__and gtk_window_set_title(GTK_WINDOW(g_calls_manager.main_window),"Active Calls"); segfaults because g_calls_manager.main_window is invalid09:55
uvos__sphone should check for that, but you probubly broke it by running it as root without xauth allowing gtk to create a window or DISPLAY set wrong09:56
uvos__its possible that im interpreting it wrong, but thats what i expect is happening here09:57
freemangordonsfa: run as user 'user' and with run-standalone.sh10:09
freemangordonWizzup: with cellulard, I get PIN UI dialog as soon as hildon-desktop appears10:13
Wizzupfreemangordon: on d4 or n900?11:27
Wizzupfreemangordon: that's weird since the MSIM doesn't appear until 120s in11:27
freemangordonWizzup: d411:42
freemangordonno, it is weird, as if modem is online, notifications come almost immediately11:42
freemangordon*it is not weird11:43
Wizzupfreemangordon: so the modem finds the sim faster if you online it vs keeping it powered but not online?11:44
Wizzupfreemangordon: in any case that's amazing/great :)11:44
freemangordonyes11:44
* Wizzup mutters something about cloning freemangordon 11:44
freemangordonheh11:45
freemangordonlet me reboot and capture a video11:46
freemangordonWizzup: is it better to create openrc startup script or sysvinit one?11:51
freemangordonfor cellulard that is11:52
WizzupI'd always do openrc11:52
freemangordonok11:52
freemangordondoing oflline->online crashed ofono :)11:53
freemangordonbut that's next11:53
WizzupI think that's the RSSI 'out of order' one11:53
freemangordonyeah, could be11:53
Wizzupgreat work so far :)11:53
freemangordonthat should be easy to fix11:53
WizzupI hope that today or tomorrow I can fix the cellular context working on first connect (barring privisioning problems) and having it reconnect when network is not avail for a little bit11:54
Wizzup(and pick up when ofono does give up on the context)11:54
freemangordonBTW I see no GPRS connection option in connections dialog11:54
freemangordonis this the same issue?11:55
Wizzupfreemangordon: that happens when icd2 starts before modem is online or even present I think11:55
Wizzupservice icd2 restart should fix that11:56
Wizzupthat's a different problem11:56
Wizzupwhat I am talking about is:11:56
freemangordonbut it receives "added" events11:56
Wizzup1. if you active context when it's not active, the code will not wait for it to become active, so it fails right away11:56
Wizzupthen the second time it might work, if you wait long enough, but it also has no way to report on actual failures11:56
Wizzupthat's (1)11:56
Wizzup2. when you lose context for any reason (cross borders, no ceullar for a bit, etc), icd2 doesn't realise that yet and take the iface down11:57
WizzupI will fix both11:57
Wizzupthe issue you're describe I think is more related to the search/provisioning11:57
freemangordonyes11:57
freemangordonbut it is there11:57
Wizzupyeah I know :)11:57
freemangordonok :)11:57
WizzupI didn't look into the why11:57
freemangordonplease do11:57
Wizzupbut it's not related to the (1) and (2)11:57
freemangordonit happens in VM as well11:57
freemangordonlemme upload the video11:58
Wizzupyeah, I have to try to understand your code there11:58
Wizzupit does someting that I don't quite understand yet11:58
freemangordonjust enable traces and you'll grok it11:58
Wizzupwith all the pending actions iirc?11:58
Wizzupok11:58
freemangordonWizzup: http://46.249.74.23/leste/20220829_001.mp412:01
Wizzupdownloading12:05
Wizzupbrb12:05
Wizzupfreemangordon: great, that's fast too12:14
freemangordonmhm12:14
Wizzupbtw for some reason on my bionic I currently have to manually tell it to register to the network12:15
WizzupI can imagine cellulard can deal with it if necessary12:15
Wizzup(powered, online, wait a bit -> register)12:15
freemangordonwell, I would say this is ofono stuff12:15
freemangordonunless this is related to roaming12:16
WizzupI don't think it is, but we don't actually do roaming yet, you have to manually set it in ofono12:16
Wizzup(we don't have functioning UI for it)12:16
freemangordonWizzup: https://github.com/maemo-leste/cellulard12:44
freemangordonbuilding for devel12:44
Wizzupyup just got the email12:44
freemangordonok, lemme push/build connui-cellular as well12:47
Wizzupbtw, I just did this, any thoughts? https://github.com/maemo-leste/hildon-connectivity-meta/commit/e1eac3601402ff8c39cf733c2c266cc288578f2312:49
freemangordontelepathy-haze?12:50
Wizzupthe -extra pkg will need more later12:50
freemangordonyou should install those via HAM12:50
Wizzupeither that or we preinstall them and allow users to remove them12:50
freemangordonhmm12:50
freemangordonhow you will remove if you have a dependency there?12:51
Wizzupbut yeah I suppose we maybe do not need -extra12:51
Wizzupwell you would remove the meta pkg clearly :)12:51
freemangordonI think it is better to opt-in through HAM12:51
freemangordonbut well...12:51
freemangordonnot really sure how it is in fremantle12:51
WizzupI can remove the -extra pkg now if you want12:53
freemangordonI think it is better to remove it12:53
Wizzupk12:53
Wizzupbtw: pushing out hildon-meta update to stable for adding addressbook app12:58
Wizzup(and volume applet apparently)12:58
freemangordonwhat about clutter/mesa/h-d/h-h?12:58
Wizzupand then I will push update to -devel to update hildon-connectivity-mobile and introduce hildon-connectivity-rtcom, and then change hildon-meta in -devel to depend on them12:58
Wizzupso that way just switching to devel will just install all our cellular ode12:59
Wizzupsound ok?12:59
freemangordonok12:59
Wizzupcellular code*12:59
freemangordonyeah12:59
Wizzupyeah clutter/mesa/etc will do after12:59
freemangordonok12:59
uvos__for now we dont want haze to ever be installed or?13:05
uvos__since it just hangsup all ofono calls13:05
uvos__breaking sphone13:05
uvos__(this is absurd selfish behavior anyhow imo, ofono can have more than one client)13:05
freemangordonumm, I don;t think haze is related13:06
freemangordonwhat you mean if telepathy-ring :)13:06
freemangordon*is13:06
uvos__ah13:06
uvos__i got them mixed up13:06
uvos__yeah ring13:06
uvos__ok13:06
freemangordonwhich we'll install at some point either ways :p13:06
uvos__well not with that behavior, its hardly acceptable13:07
freemangordonsure13:07
uvos__Wizzup: oh btw i wanted to push sphone to stable13:11
uvos__Wizzup: but could not13:11
uvos__nvm was my faul13:12
uvos__t13:12
uvos__sfa: btw i cant repo your crash, both running sphone as root and running it with no DISPLAY works fine (well it just exits but thats as intended/ no segfault)13:14
uvos__sfa: was this on pp?13:14
uvos__sfa: could you provide the full log that shows what modules where linked in13:15
freemangordonuvos__: I guess you have different plugins13:15
uvos__maybe13:15
uvos__or 64bit13:15
freemangordonyeah13:15
Wizzupuvos__: yes, ring is not yet installed13:20
uvos__the bt really loks like hildon_stackable_window_new si failing13:20
uvos__but i dont know why that would be13:20
Wizzupwith C, it could be many things :)13:25
Wizzupfreemangordon: yeah I also get the pin dialog now13:38
Wizzupon d413:38
freemangordon:)13:38
WizzupI think I forgot the presence status applet in the meta13:40
* Wizzup checks13:40
Wizzupisn't that rtcom-presence-ui ?13:41
Wizzupfreemangordon: I think we also need telepathy-gabble in the rtcom meta13:42
Wizzupor do we install nothing by default?13:42
Wizzupwithout gabble and idle installed, the cpa bugs a bit13:48
Wizzupfreemangordon: hm also looks like the idle rtcom ui lacks translations on one of my devices, not sure which mr0 I need13:49
Wizzupwill check later today13:49
WizzupI'm going to add gabble and idle to the rtcom meta13:49
freemangordonWizzup: we need libaccounts plugins I would say13:54
freemangordonnot telepathy ones13:54
Wizzupthose are in rtcom-accounts-plugins, no?13:55
Wizzupbut those don't pull the telepathy packages13:55
freemangordonI kn ow13:56
freemangordonthe point is that one may prefer purple over gabble13:56
freemangordonbot provide jabber13:56
freemangordon*both13:56
WizzupI think just installing both is better imho13:56
Wizzupit's not like they do much more than take up 50kB of disk space13:57
Wizzup(for this we also need telepathy-haze btw)13:57
freemangordonI don;t see what is the issue if those are installed by the user, but ok13:57
Wizzupwell right now with just rtcom-accounts-plugins installed the accounts cpa applet contains a null entry and just gtalk13:58
Wizzupand it's not obvious at all what users have to do13:58
Wizzupunless we plan to repackage the tp plugins just to have them show up in ham13:58
Wizzupthis is why I wanted the meta pkg for rtcom protocols (or extra)13:58
Wizzupfremantle also had this "additional chat plugins" (or so) pkg13:58
freemangordonok, do as you think is appropriate13:58
Wizzupthat added msn and others13:58
freemangordonwe can fix it afterwards if we see it broken13:59
Wizzupok13:59
Wizzupbrb13:59
Guest224Is there possible that somebody compile new -devel image for Pinephone with hildon-connectivity-mobile included? I can make some heavy beta testings tomorrow.14:22
freemangordontmlind_:   g_at_chat_clone() is the nasty one that leads to RSSI ofono segfault14:24
freemangordonthe received clone has group id that's different than the non-copy14:25
freemangordonso later on g_at_chat_unregister_all on original fails to match the callback14:25
Guest224I have possibilty show up Pinephone to some mediaeducation people and I don't want show it with another OS.14:29
WizzupGuest224: do you need the image to show it off?14:29
freemangordontmlind_: I think   g_at_chat_ref() shall be used instead of g_at_chat_clone()14:29
WizzupGuest224: we just started including -mobile and -rtcom by default in the meta pkgs, but I have to kick the image generation VMs again14:30
WizzupI can try to it...14:30
Guest224hmm...what you think how much time takes with -rtcom...when you make new -devel image anyway?14:31
WizzupI just rebuilt the meta pkg14:32
WizzupI'll look at a one-off pinephone build14:32
Guest224Wizzup: There is plenty time for tomorrow :)14:34
WizzupGuest224: https://phoenix.maemo.org/view/Images/job/leste-image-pinephone-dev/33/14:35
Wizzuplet's see how this goes14:35
Wizzupno idea what it will look like when you dd it :)14:35
Guest224but I can dd it like normal image?14:37
Wizzupyes14:38
Wizzupit's still building, assuming it passes14:38
Guest224that's why I came ask today ;)14:43
Wizzupkind of wonder what you're going to show to the media education people :D14:44
Guest224Only short show up that they should remember that there is also something else that iOS and Android.14:45
Guest224*than14:46
Wizzup:)14:50
tmlind_freemangordon: ok nice15:04
freemangordontmlind: this https://github.com/maemo-leste-upstream-forks/ofono/commit/3d164de4ac90c3c99471079b7308611e33b765b415:19
freemangordonWizzup: could you please release ofono for -devel? that commit shall fix most (if not all) of the segfaults15:19
freemangordonuvos__: what is "Unable to transmit dial number via ofono" error message is supposed to mean?15:27
freemangordonsphone that is15:27
uvos__oh its missing an or15:29
freemangordonhmm?15:29
uvos__it should be Unable to transmit or dial number via ofono15:29
uvos__ie could not give ofono the nummber15:29
uvos__or ofono refused to dial it15:29
freemangordonhmm15:29
freemangordonmaybe I have telepathy-ring15:30
freemangordonno15:30
freemangordonI don;t15:30
uvos__this could be because: 1 you dialed a invlaid nummber 2 ofono is not ready because the modem is not online or no operator is available15:30
freemangordonso neither I can call nor sphone rings when dialed15:30
uvos__3. the operator refused the call for some reason15:31
freemangordonofono is ready, I see 3g in status bar15:31
uvos__try dial-number via scripts15:31
freemangordonok15:31
uvos__and/or look at sphones log output15:31
freemangordonnice:15:32
freemangordondbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "Dial" with signature "ss" on interface "org.ofono.VoiceCallManager" doesn't exist15:32
uvos__this happens when the operator dose not provide voice calls15:32
uvos__(maybe because you have a data only sim)15:33
freemangordonhmm, what card is that?15:33
* freemangordon checks15:33
uvos__the status bar might also be wrong15:34
uvos__and holding old info15:34
freemangordonit is not15:34
uvos__(ie the modem is not connected to the operator)15:34
freemangordonit is15:34
uvos__check wich scripts15:34
uvos__ok15:34
uvos__*with15:34
freemangordonalready did15:34
uvos__then idk15:34
uvos__but its on ofonos end :P15:34
freemangordonStatus = registered15:34
freemangordonthere is no voice ofono interface for some reason15:35
uvos__ofono provides only the interfaces it can service15:35
uvos__so no interface in some category ususaly means ofono thinks it dosent have hw/modem state to do so15:35
freemangordonor it does not re-init properly after disable/enable15:36
uvos__sure15:36
uvos__maybe15:36
Wizzupfreemangordon: ok, will do @ release15:36
Guest224freemangordon: I have that kind of SIM that has data only...although it can ring if you try call to it.15:37
freemangordonno, this is not data only15:37
freemangordonuvos__: after ofono restart the voice interface appeared15:40
freemangordonso it is some ofono bug15:40
uvos__freemangordon: wierd15:40
uvos__freemangordon: some but with ofono quering modem state/capabilites15:40
uvos__*some bug15:40
freemangordonor rather enable/disable sequence15:41
freemangordonwill see what it is15:41
uvos__anyhow the error message typo missing word also needs to be fixed15:41
uvos__ill do that whenever i do something with sphone that needs a release15:41
freemangordonyep, doing disable/enable results in missing voice interface15:46
freemangordonWizzup: wait for the release15:46
freemangordonthis needs to be fixed15:47
freemangordontmlind: ^^^ any hint where to look at?15:47
uvos__freemangordon: can you dial via at  commands?15:48
uvos__ie is just ofono unhappy or also the modem?15:48
uvos__ofono might be picking up that the modem is not happy via qmi15:48
Wizzupah yes I remember seeing this15:50
uvos__i gues since it works after restarting just ofono15:51
Wizzupsometimes there is indeed no call interface15:51
Wizzupfor no good reason15:51
uvos__its unlikely that the modem is really unhappy15:51
Wizzupa similar thing happens I think to contexts15:51
* freemangordon is looking through logs15:52
tmlindfreemangordon: ok let's hope your patch works, no idea on the disappearing voice interface15:56
freemangordonmy patch works (no more segfaults)15:56
tmlindnice :)15:56
tmlindsometimers the modem firmware boots the modem to some incomplete state where only usb interface is active, but that sounds like a separate issue15:57
uvos__freemangordon: btw celluarld or ofono, the modem on mapphones needs CFUN=0 when there is no sim15:58
uvos__otherwise it dosent sleap15:58
uvos__sleep15:58
Wizzupso you mean to set it not to online?15:58
tmlindhmm well if ofono disable really shuts down the firmware, i guess it could be the same issue on starting it to an incomplete state15:58
uvos__Wizzup: yeah but the bootstate is high power15:59
uvos__Wizzup: and ofono dosent do anything about that15:59
uvos__Wizzup: it should15:59
uvos__if no sim is there15:59
uvos__at least15:59
uvos__with sim the modem calms down by itself15:59
freemangordonnot really, we should be able to do emergency calls15:59
uvos__well online the modem before a emergency call then16:00
freemangordonhmm16:00
uvos__the entire device is kept awake with the modem with no sim atm16:00
uvos__thats no good16:00
freemangordonwell, I think thats an exercise for the future16:01
uvos__maybe16:01
freemangordonlets fix the more nasty bug first16:01
uvos__but imo most current leste users have terrible battery life on d416:01
uvos__because of this bug16:01
uvos__since i venture most use the device with no sim16:01
freemangordonI think ofono shall do that16:01
uvos__(since cellualar dosent work atm)16:01
WizzupGuest224: https://maedevu.maemo.org/images-devel/pinephone/20220829/16:13
Guest224Wizzup: Thanks..I come tomorrow tell how it works.16:30
freemangordonanother nasty bug https://github.com/maemo-leste-upstream-forks/ofono/commit/ab7e00c73606c244f3ab3065983bdd567e670c5d18:25
freemangordontmlind: how to send ofono patches for upstreaming?18:27
Wizzupfreemangordon: does that fix the segfault?18:29
Wizzupor is this for missing voice?18:29
freemangordonthis fixes segfalt18:29
freemangordon*segfault18:29
Wizzupnice catch18:30
tmlindhehe nice :)18:30
freemangordonwell...18:30
tmlindfreemangordon: i guess just email to the list after looking at what the preferences are for patches, slightly different again18:31
freemangordonok, I'll ask google when it comes to it18:31
freemangordonthay may have github/gitlab repo18:31
tmlindoh ok18:31
tmlindthere's some formatting note for ofono that also describes how the patch commits should be18:31
freemangordonI have to find the ML firts :)18:32
freemangordon*first18:32
freemangordonbut not now, have to go.18:32
freemangordonttyl18:32
tmlindlater18:33
uvosmaybe we should have gone with modemmanager, like everyone else.18:58
uvos(mostly becasue more people are testing/using it)18:59
Wizzupsfos doesn't use it19:04
Wizzupnot sure what ut does19:04
Wizzupwe'd still have to write a driver for our thing, and we'd probably be stuck with networkmanager/gnomestuff a bit much19:04
Wizzupnot sure if it makes a big diff19:04
uvossure19:07
Wizzupalso I don't think there is a tp-ring for it19:07
uvosnot sure being stuck with networkmanager is a bad thing19:07
uvosmostly i think icd is a mistake19:07
uvosbut anyhow19:07
Wizzupfreemangordon: shall I build the new ofono?20:03
freemangordonWizzup: yes, please do22:21
freemangordonI don;t know how long it will take me to fix the voice issue22:22
freemangordonso we'd better have the other fixes in place22:22
freemangordonWizzup: wait a bit, going to force-push to ofono22:33
freemangordonhmm, no, it is ok22:35
freemangordonplease release22:35
Wizzupwill do when I get baxk23:26
freemangordonok23:26
freemangordonno hurry23:26
freemangordonI think I have fix for missing voice23:26
freemangordonhmm, don;t build23:34
freemangordonI will have to force-push23:34
Wizzupok23:36

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