libera/#maemo-leste/ Friday, 2023-09-01

Wizzuparno11: what about the 2s sleep added in d3c9fa56647447adbf0ebf834ec748829804a5e1 - can that go now?01:48
Wizzupalso I imagine the 2048 read instead of 160 will also make the cpu usage less01:49
Wizzupbuilding for -devel now01:50
arno11Wizzup: that's what i was thinking but cpu usage is still high.07:54
arno11for 2s sleep i don't know, i need to test, specially without overclock07:56
freemangordonarno11: BTW, did you find where those values come from?07:56
freemangordonq60 that is07:56
freemangordon*16007:56
arno11it has been modified by pavel in 2017. 1024 to 128 then 160 to improve things with alsa. but because outgoing sound was not working it was impossible to see/ear the consequences with PA08:02
freemangordonso initially it was 1024?08:02
arno11yes from the beginning08:03
freemangordonbut then why do you increase it to 2048?08:03
freemangordonI guess 1024 is what nokia put there, no?08:03
arno11because at 1024 there is still 3-4 sec latency at the beginning of calls08:04
arno11yes for nokia08:04
arno11but nokia was using dsp08:05
freemangordondsp?08:05
freemangordonno08:05
freemangordonwhat dsp08:05
arno11the dsp chip08:05
freemangordonI know what dsp is, my question is - why do you think DSP is used for calls08:06
arno11because there is specific code in cmtspeech to use dsp08:06
freemangordoncould you point me to it?08:07
arno11yes let me few minutes i have a baby in the hands...08:07
freemangordonoh :)08:07
arno11:)08:08
freemangordonhmm, where is NEON optimized code?08:12
freemangordonwtf?08:12
arno11libcmtspeechdata/utils/dsp.c (the code points to dev/dsp)08:12
arno11for neon good question08:12
arno11i forgot to ask08:13
freemangordonarno11: this code is not for n900/fremantle08:14
freemangordonthere is no /dev/dsp in fremantle kernel08:14
arno11? really08:15
arno11i didn't know that08:15
freemangordonyes, there is no08:15
freemangordonit is NEON code that is used to resmaple on fremantle08:15
freemangordonI REed the library back then08:16
freemangordonsec08:16
freemangordonarno11: see what we have https://notabug.org/freemangordon/pulseaudio-nokia/src/fremantle/src08:17
freemangordonI can't remember where resamplers are08:19
freemangordonsee https://notabug.org/freemangordon/pulseaudio-nokia/src/fremantle/src/voice/voice-convert.h08:19
freemangordonthe fuck? I didn't push the optimized code08:22
freemangordonoh, wrong repo08:23
freemangordonthis https://github.com/community-ssu/pulseaudio-nokia08:23
freemangordonarno11: look at https://github.com/community-ssu/pulseaudio-nokia/tree/master/src/common08:23
freemangordonsrc-XXX files08:23
freemangordonso, I would say high CPU usage is caused by unoptimized resampling code08:25
freemangordonWizzup: ^^^08:25
freemangordonso, I have no idea where Pavel found the code he is using08:27
arno11(sorry network issue)08:29
freemangordonright08:29
freemangordonsee the log if you missed my last ~10 lines08:29
arno11yes, actually reading08:30
arno11now we know why cpu usage is high. nice08:31
freemangordondo you know who does the resampling?08:31
arno11not sure now lol08:34
freemangordonbecause on fremantle (and meego) it is done by PA speech module08:34
freemangordons/speech/voice/08:35
freemangordonBTW, we have *everything* from fremantle REed (including xprot), but voice BLOB08:36
arno11on leste seems everything is done by PA itself, with many generic modules involved08:39
freemangordonarno11: so, if we find where resampling is done, I can easily RE the neon code that's used on fremantle08:39
arno11nice :)08:40
freemangordonstill, we have C code to test with08:40
arno11ok08:40
freemangordonthis https://github.com/community-ssu/pulseaudio-nokia/blob/master/src/common/src-48-to-8.c and https://github.com/community-ssu/pulseaudio-nokia/blob/master/src/common/src-8-to-48.c08:41
freemangordonTBH, I think NEON optimized code was made by armcc08:41
freemangordonso maybe recent gcc is good enough to do the same08:42
freemangordonarno11: so does 8000 Hz ring a bell?08:43
freemangordonsee https://github.com/community-ssu/pulseaudio-nokia/blob/master/src/voice/voice-hw-source-output.c#L45808:45
arno11(sorry, baby again) let me few min to have a look08:45
freemangordonsure08:45
arno11freemangordon: arghh sorry i have to go but now i understand how nokia did the trick to avoid high cpu usage :) thx09:16
arno11back in few hours09:16
uvosfreemangordon: adding a contact in abook with abook in portrait hangs abook11:24
maxwellduvos, how would you suggest me to trace the osso-xtrem problem?12:36
maxwelldi did strace, and i got the same floating point exception12:36
Wizzupgdb12:38
maxwelldok, so far strace log: https://bpa.st/TDZDG12:40
maxwelldlet me remember how to do a gdb backtrace12:40
maxwelldhmmm i think i have no gdb, and it cannot find gdb in the repos...12:41
Wizzuphttps://leste.maemo.org/Debugging12:41
Wizzuphttps://leste.maemo.org/Debugging#Dealing_with_Maemo_Launcher_.2F_Maemo_Invoker12:41
maxwelldty12:42
* maxwelld is doing apt-get update, hopefully after that gdb will be found12:43
maxwelldand i'll do gdb /usr/bin/osso-xterm, and then bt i guess.12:43
Wizzupbut that is not what is on the wiki12:44
Wizzupwhy not do what is on the wiki12:44
maxwelldok (:12:44
uvosfreemangordon: Wizzup: ok so the problem with osso-addressbook's recent not working with sphones events is not sphones fault12:47
uvosthis is the fuction that fails12:49
uvoshttps://github.com/maemo-leste/osso-addressbook/blob/71d03ad2e7ece8f073299e668145b1bd35fec6c5/src/osso-abook-recent-view.c#L22712:49
uvoshttps://github.com/maemo-leste/osso-addressbook/blob/71d03ad2e7ece8f073299e668145b1bd35fec6c5/src/osso-abook-recent-view.c#L262 <-- this fails as it assumes that the protocoll is known by tp but sphone/ofono/sphone is not tp ofc12:50
uvosthats ok and expected12:50
uvosbut then teh fallback there https://github.com/maemo-leste/osso-addressbook/blob/71d03ad2e7ece8f073299e668145b1bd35fec6c5/src/osso-abook-recent-view.c#L27412:50
uvosassumes that remote_account_name is a uri, but its not, its a phone nummber12:51
uvosthis is correct and is the same as wizzups fremantle database12:51
uvosso then the function bails12:51
maxwelldin gdb: Program received signal SIGFPE, Arithmetic exception.12:51
uvosmaxwelld: bt?12:52
uvosfreemangordon: Wizzup: instead this function should check event_type_id and if thats a phone call it should know that remote is a phone number and act accordingly12:52
uvosuris are only used for ip accounts in rtcom-el12:52
maxwelldit says it doesn't have stack 😕12:52
maxwellddoing dist-upgrade in the hope it'll solve something.12:53
uvossmells memory corruption12:54
uvostry valgrind12:54
uvosmaxwelld: what are you doing exactly to make it crash anyhow?12:58
uvoswhat device architecture are you using12:58
freemangordonuvos: no, it should be URI13:07
freemangordoneither tel:// or phone:// or whatever13:07
freemangordonhttps://github.com/maemo-leste/osso-addressbook/blob/master/src/app.c#L147813:08
Wizzupmaxwelld: you need to intsall debug pkgs do get the backtrace13:09
freemangordonthe fix is simple - when code pushes into db, it should prefix with tel://13:09
uvosfreemangordon: thats not what fremantle dose13:10
freemangordonsure it does13:10
freemangordonotherwise it will not work for unknown numbers13:10
uvosWizzup's fremantle db is exactly like sphones13:10
freemangordonso?13:11
uvosit works because the account is a telepathy one13:11
freemangordonright13:11
uvosso the fallback path is not taken13:11
freemangordonright13:11
uvosthe fallback path is simply wrong13:11
maxwelldoh, so i cannot do dist-upgrade:13:11
maxwelldE: This installation run will require temporarily removing the essential package hildon-base:armhf due to a Conflicts/Pre-Depends loop. This is often bad, but if you really want to do it, activate the APT::Force-LoopBreak option.13:11
maxwelldE: Reverse conflicts early remove for package 'elogind:armhf' failed13:11
Wizzupuvos: there is a small chance that the obfuscation breaks something but inlikely13:11
uvosfreemangordon: it must check event_type_id to know what the remote name is supposed to be13:11
freemangordonuvos: fallback path is correct, it is how it is done in fremantle. most-probably db you are using has no received calls from unknown numbers13:12
freemangordonttyl13:13
uvosthe fallback path is _never_ used on fremantle13:13
uvosso its not how its done there13:13
freemangordonit *is*, when you have call from unknow numbe and do "add to contacts"13:14
uvosno13:14
uvosbecuse even then the account will be ring/tel/ring13:14
uvosso the path above is taken13:14
freemangordonthis is *local* account13:14
freemangordonnot remote13:14
uvosyes and the local account is checked13:14
uvos account = osso_abook_account_manager_lookup_by_name(NULL, local_account_name);13:15
uvosthisi s where it diverges13:15
freemangordonhmm13:15
freemangordonso, once we have tp plugin for sphone (which we must have anyways), this will start working13:15
uvosthe fallback path is sill broken13:15
uvosand we will keep the ofono plugin then still13:16
freemangordonwhere is that event_type_id?13:16
Wizzupfreemangordon: it's actually working, it just needs one silly fix for anon call id for outgoing calls being the default13:16
uvosin the db13:16
uvosit tells you its a phone call13:16
uvosor a sms13:16
uvosor a ip call13:16
uvosetc13:16
uvossms and phone call are a specal case13:16
freemangordondoes abook have that info?13:16
uvoswhere remote is not a url13:17
freemangordonah, event_type_id13:17
freemangordonevent_id13:17
uvosno13:17
uvosthats the id of the event13:17
uvosevent_type_id is a different field13:17
freemangordonthis https://github.com/maemo-leste/osso-addressbook/blob/71d03ad2e7ece8f073299e668145b1bd35fec6c5/src/osso-abook-recent-view.c#L25313:18
freemangordonah13:18
freemangordonok, will look at this later13:18
freemangordonbbl13:18
arno11(Wizzup: i doublechecked 2s sleep and we need to keep it, otherwise incoming sound is a bit distorted)13:21
Wizzupok13:24
maxwelldgot backtrace from osso-xterm: https://bpa.st/QDKUI13:24
Wizzupyou need more dbgsym packages13:24
maxwelldbut osso-xterm doesnt depend on anything13:24
maxwelldexcept libc and13:24
WizzupIt most definitely needs glib and all of those debug packages13:25
Wizzupyou're probably running ldd on the maemo launcher binary or something13:25
Wizzupand not on oss-xterm.launch13:25
Wizzuposso-xterm.launch13:25
maxwelldomg osso-xterm.launch uses lots of libs13:26
Wizzupyou just want the glib dbgsym for now13:28
Wizzupthat's most important13:28
maxwelldok so installed some glibc dbgs but i have same bt.13:38
maxwelldBacktrace stopped: previous frame identical to this frame (corrupt stack?)13:38
Wizzup*glib*13:38
Wizzupnot glibc13:38
maxwelldi wrote a script that would install all the dbg packages of all deps, should i do it?13:39
maxwelldyes glib13:39
maxwelldsorry13:39
Wizzuphow do you run gdb?13:39
maxwelldbecause i was saying glibc in other chat. but i installed glib.13:39
maxwelldglib's dbg packages.13:39
maxwelldseveral of them.13:39
Wizzupwhich ones?13:39
Wizzupplease be explicit13:39
maxwelldminute13:40
maxwelldi did13:40
maxwelldapt-get install libglib2.0-0-dbgsym libglib2.0-bin-dbgsym libglib2.0-dev-bin-dbgsym libglib2.0-tests-dbgsym libpackagekit-glib2-18-dbgsym13:40
maxwelldwhen i am trying to run with gdb osso-xterm, it tells about corrupted stack13:40
maxwelldwhen osso-xterm.launcher13:41
maxwelldhttps://bpa.st/NTXE613:41
uvosmaxwelld: your backtrace is not usefull because you dident do what the wiki sais and used maemo-invoker with gdb14:21
uvosalso the fact that launching the .launch directly worked for you suggests your stillon beowulf, which makes your issue non-interesting to us because we no longer support or work on bewulf and have all moved on to chimaera14:22
Wizzupmaxwelld: are you on beowulf?14:33
arno11Wizzup: freemangordon: so cmtspeech in leste works really differently than cmtspeech + pulseaudio-nokia in fremantle14:49
arno11there is no resample code in cmtspeech (leste) and PA seems to do everything itself14:52
maxwelld> also the fact that launching the .launch directly worked for you suggests your stillon beowulf, which makes your issue non-interesting to us because we no longer support or work on bewulf and have all moved on to chimaera14:52
maxwelldi understand that wizzup suggested to run that. my trace without .launch i also shared.14:52
maxwelldit says that the stack frame repeats and maybe stack is corrupted.14:52
maxwelldthat's why it stops showing the stack.14:52
arno11(for low cpu usage) the trick in fremantle is to record at 48khz and downsampling to 8 to be able to communicate to the modem14:55
arno11it's not possible in leste without a specific module like pulseaudio-nokia14:57
Wizzuplet's stick with what we have working now wrt calls and then revisit the specific modules later14:58
arno11agreed14:58
arno11it was to answer fmg questions14:58
arno11and let you know14:59
arno11Wizzup: btw do you know who is generating tone and ringtone ?15:17
uvosmaxwelld: your missing maemo-invoker15:21
uvosyou need to use "gdb --args maemo-sumener /usr/bin/osso-xterm.launch"15:21
uvosexactly that15:21
uvosbut if your on beowulf - dont bother15:21
uvosupgrade to chimaera15:21
uvoscheck cat /etc/os-release  to see if its chimaera of beowulf15:22
uvoss/of/or15:22
Wizzuparno11: don't really know15:24
Wizzupuvos: I think he's also not up to date with apt regardless15:24
Wizzupiirc from what I saw earlier15:24
norayruvos, Wizzup, os-release says chimaera. i think it might be even not updated to chimaera system, but freshly installed back then.17:35
norayrbut i guess with this flag gdb is even less useful: https://bpa.st/LJH4E17:36
norayror i am doing something wrong.17:36
norayri do apt-get update regulargly, but apt-get dist-upgrade yes, indeed, doesn't work well because of udev issues, as i remember. forgot already, though looked today.17:37
uvosits "maemo-summoner" i misstyped17:44
uvoswhat do you mean "doesn't work well because of udev issues"17:44
uvosits probubly pointless to chase xterm not working if your system is broken/ half updated17:45
Wizzuppretty sure the dist-upgrade would just get him going18:05
maxwelldoh let me try18:22
maxwelldbut dist-upgrade has a package conflict. can you help to solve it?18:22
Wizzupyes, just check the news post18:25
Wizzuphttps://maemo-leste.github.io/maemo-leste-five-year-anniversary-and-chimaera-release.html#upgrading18:25
norayrhere with maemo-summoner: https://bpa.st/53TFW18:31
Wizzupnorayr: please dist upgrade firstr18:38
Wizzupotherwise we will have no way to reproduce, if the problem persists anyway18:39
norayrwhat can i do https://bpa.st/RDKJ2 ?18:43
uvosWizzup allready told you, do what he linked above18:43
norayroh... wait, maybe i disconnected and i dont have the logs?18:56
norayrdist-upgrade doesn't work for me. if that's his recommendation18:56
norayrthen it doesn't work, and the output is linked https://bpa.st/RDKJ218:56
norayrbut otherwise i searched all the history, i didn't get any recommendation with apt.18:57
Wizzup18:39 < Wizzup> norayr: please dist upgrade firstr18:59
Wizzup18:39 < Wizzup> otherwise we will have no way to reproduce, if the problem persists anyway18:59
Wizzup18:25 < Wizzup> yes, just check the news post18:59
Wizzup18:26 < Wizzup> https://maemo-leste.github.io/maemo-leste-five-year-anniversary-and-chimaera-release.html#upgrading18:59
norayrWizzup: but... i showed you the problem... i cannot dist-upgrade19:10
norayrand i am on chimaera19:10
norayrbut let me try the link19:10
norayrare these firmware related warnings ok?19:46
norayrhttps://bpa.st/JDCHO19:46
norayranyway, i restarted, did update according to wiki19:46
norayrosso-xterm fails.19:46
norayri'll reinstall the system... will try to preserve the home...19:46
norayri guess my sdcard is the reason :/19:47
Wizzupbad sdcard again?21:01
Wizzup19:47 < norayr> anyway, i restarted, did update according to wiki21:01
Wizzupdo you mean according to the news post?21:01
Wizzupbut yeah, FPE errors I can see happen when the sd card is corrupt21:01
arno11sicelo: any idea about what is managing/generating tone and ringtone during calls ? seems to be not cmtspeech directly, maybe ofono or sphone, or ? (i need to fix a bug)21:40
sicelofmg might know better, but i think there's package `tonegend` or similar somewhere21:46
sicelooh but ringtone is controlled by profile, no?21:47
arno11yes but i need to understand how it is played and through which service21:49
WizzupI think ringtone before a call is not the same as tones during a call21:49
Wizzupone is just HiFi playing some audio file21:49
Wizzupthe other one is more complicated, and I think arno11 is asking about that21:49
Wizzup(am I wrong?)21:50
arno11you're right :)21:50
siceloyes the other tones are handled by `tonegend` iirc. fmg will have better details though :-)21:53
arno11ok thx21:55
maxwelldyes22:32

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