Previous day | Jump to hour: 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | Next day

Seconds: Show Hide | Joins: Show Hide | View raw
Font: Serif Sans-Serif Monospace | Size: Small Medium Large

Click in the nick column to highlight everything a person has said.
The Logo icon identifies that the person is a core developer (has commit access).

#rockbox log for 2024-12-09

01:00
01:00:43 Quit pixelma (Quit: .)
01:00:44 Quit amiconn (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
01:01:41 Join amiconn [0] (jens@p4fe76649.dip0.t-ipconnect.de)
01:01:41 Join pixelma [0] (marianne@p4fe76649.dip0.t-ipconnect.de)
01:02:22_bilgusso my audio is still not quite right with the upstream but it is better
01:02:31_bilgus(on sim)
01:02:58_bilgusless snap crackle
01:19:55_bilgusso here on arm the optimized code is 2% faster 24.99mhz vs 25.04
01:54:10***Saving seen data "./dancer.seen"
01:58:17user890104MarcAndersen: once there is something that makes sense to be built and installed on a Nano 3G/4G, there will be an announcement on the mailing list, with instructions and a video
01:58:56user890104currently it's just bits and pieces, the "main" part of the patch is not submitted yet
02:00
02:00:18user890104I've submitted nearly everything *else* of the patch, therevare 2 or 3 files left to review, test, translate the comments from Spanish and verify if they make sense
02:03:36 Quit chris_s (Quit: Client closed)
02:11:55_bilgusSo enabling OPT_SPEED beats what we have on my ARM
02:15:00_bilgus.. in 640 more bytes
02:19:49paulcarroty_bilgus: yep, the same stuff. random discharging after 50% battery, you can force to charging it by 2-4 cable replugging. also battery levels sometimes are 15-20% lower when stop charging manually - maybe it's the root of the problem.
02:22:49_bilgusthe question I guess Is why its discharging the battery
02:23:22_bilgusthat I can't reproduce mine stayed plugged all day and stayed at 100% with discharging displayed
02:26:12paulcarrotyyou don't need all day, 30-50m is enough
02:32:10edhelas_Is the battery remaining time estimation in the info menu quite good ?
03:00
03:54:13***Saving seen data "./dancer.seen"
04:00
04:04:36 Quit jacobk (Ping timeout: 276 seconds)
04:04:53 Join jacobk [0] (~quassel@47-186-65-73.dlls.tx.frontiernet.net)
05:00
05:54:17***Saving seen data "./dancer.seen"
07:00
07:40:38MarcAndersenAnyone who can figure this error out? https://pastebin.com/3w4LrCPB
07:47:00MarcAndersenIf I skip puzzles everything compiles here. What am I missing?
07:54:21***No seen item changed, no save performed.
08:00
08:14:36 Join akaWolf [0] (~akaWolf@akawolf.org)
08:21:36braewoods__MarcAndersen, it's a linker error. either something isn't being linked in, or in the wrong order.
08:22:46MarcAndersenI get that, but it's the only place it fails. I think puzzles are pretty new in the source tree
08:25:19braewoods__Yea, probably needs patching. You can try grepping for the missing symbols to see where they occur.
08:25:30braewoods__More specifically, what source code even defines it.
08:30:34speachyMarcAndersen: the linker doens't like weak symbols under windows, that's hit us before, but the underlying problem is that the puzzleshelp stuff isn't being generated.
08:32:40speachythis is going to take a bit of spelunking to fix.
08:32:58speachy__builtin: any thoughts on ^^^ ?
08:33:48MarcAndersenWhat should I do about it, I don't want to make an M build unless you would like me to do so
08:45:10speachyno.. should be straightforward to resolve.
08:45:27speachyis it just sgt-slide breaking, or others too?
08:48:17MarcAndersenI'm not sure, it stops at that error. Maybe we should try to fix slide
09:00
09:05:07MarcAndersenWhen I try to run it though once it starts playing audio I get Unknown sample format obtained: 33056 and it crashes.
09:37:40braewoods__speachy, would it be a worthwhile project to port to SDL 2.0?
09:41:46MarcAndersenPort what? I compiled this simulator with sdl 2.30.10
09:54:24***No seen item changed, no save performed.
10:00
10:00:09paulcarrotytried to find any guides for aarch64 app compilation, but failed
11:00
11:54:25***No seen item changed, no save performed.
12:00
12:24:15dook_bilgus: Nice work with the tmo additions to the %t tag. Been on my feature wishlist for a while
12:41:30_bilgusjust be aware that it takes more ram so try to only use the %t(n) form unless you need longer timeouts %t(n,0) or actually want to hide it %t(n,h)
12:43:20_bilgusI actually frre around 700 kb from running cabbie so in theory you can add 10 of them and still be under previous ram usage
12:43:38_bilgus(in the prior commits)
12:44:51_bilgusthanks :0
12:44:53_bilgus:)
13:00
13:01:21dookGood to know! I think it will be a very specific use, but I'll keep an eye on ram if I use it more
13:14:42 Join lebellium [0] (~lebellium@2a01cb0405d07f00d33a0da62bfc2206.ipv6.abo.wanadoo.fr)
13:30:45 Quit jacobk (Ping timeout: 276 seconds)
13:31:58 Join jacobk [0] (~quassel@47-186-65-73.dlls.tx.frontiernet.net)
13:54:28***Saving seen data "./dancer.seen"
14:00
14:14:38_bilgus700 bytes no kb :/
14:57:20 Quit JanC (Read error: Connection reset by peer)
14:59:04 Join JanC [0] (~janc@user/janc)
15:00
15:54:32***Saving seen data "./dancer.seen"
16:00
16:41:14 Quit jacobk (Ping timeout: 260 seconds)
16:44:47 Quit COMPL_EXE (Read error: Connection reset by peer)
16:45:07 Join COMPL_EXE [0] (~compl.exe@aosc/dev/origincode)
16:47:53tobbezso the erosq (hw4) hosted port has a *really* bad issue (destroy your ears bad!)
16:48:07tobbezunplugging headphones, adjusting volume, then plugging in headphones again causes extremely high (max?) audio volume (until volume is adjusted again)
17:00
17:49:52__builtinspeachy: MarcAndersen: you're correct, the issue is weak symbols. The "unfinished" sgt-puzzles don't have help text, so I made dummy/nullhelp.c to provide dummy help text and allow the games to compile.
17:50:40MarcAndersenWhat about the crash i had with the sample rate?
17:52:19__builtinThe best way to fix this would be to modify the code in puzzles/rockbox.c to not reference the help text variables when compiling an unfinished plugin. But this is difficult because rockbox.o is complied only once, and then linked individually against each of the game source files (in src/).
17:53:15__builtinA possible solution to this would be introducing a new build rule to compile puzzles/rockbox.c two times - both with and without a "NO_HELP" macro.
17:54:06__builtinA stopgap would be to just disable the unfinished puzzles on windows. Comment out src/unfinished/*.c in puzzles/SOURCES.games.
17:54:35***Saving seen data "./dancer.seen"
17:55:48__builtinMarcAndersen: what are you doing to cause the sample rate issue? Running a plugin or just playing back audio?
17:57:14MarcAndersenThe sim crashes as soon as sdl tries to play some audio. If I turn off the voice I can navigate the menus until I try to play the file then I get Unknown sample format obtained: 33056 and it crashes
17:57:46__builtinsdl?
17:58:12__builtindo you mean you're just playing an audio file in rockbox? or playing audio in an sdl plugin?
17:58:21__builtin(I only know about the latter)
17:59:57MarcAndersenIt is the windows simulator. I start it up, go in and choose a file, then crash. If a voice is loaded it crashes at startup so it happens as soon as the sim tries to play audio.
18:00
18:00:07__builtinah, looks like it originates from firmware/target/hosted/sdl/pcm-sdl.c: DEBUGF("Unknown sample format obtained: %u\n",
18:00:50__builtinI'd debug from there. 33056 is 0x8120 in hex
18:02:01MarcAndersenI have no idea about that. I would just like to get it working so I can update the sims on my page. I'm not good at c at all :)
18:03:07__builtinit seems to be a non-trivial bug, from a quick skim of the SDL PCM driver.
18:03:17 Quit lebellium (Quit: Leaving)
18:03:48MarcAndersenAfter the crash gdb says Program received signal SIGFPE, Arithmetic exception.
18:07:17MarcAndersenOk. I will try to download the latest build from my own page and see if that works
18:09:40MarcAndersenRevision 025841cfb5 which was the latest ones I built works, but I think that was sdl 1?
18:20:17MarcAndersenCould someone else try to compile a windows sim to see if it's a problem at my end?
18:24:17speachybraewoods__: We're already on SDL2.
18:25:01speachy__builtin: I'm leaning towards just not doing building those two plugins under windows.
18:25:27speachyand whatever's going on with that crash, it's isolated to SDL2+Windows.
18:27:16MarcAndersenspeachy, Can you try to compile one, except if you are sure that is the problem?
18:28:13speachyyou mean a winsim build? not going to happen immediately, but I'll add it to the list
18:28:48MarcAndersenYes. Just to make sure it's not my setup that's messed up
18:33:45 Quit jn (Ping timeout: 252 seconds)
18:34:18 Join jn [0] (~quassel@user/jn/x-3390946)
19:00
19:15:20 Join Burak__ [0] (~Burak@185.25.123.34)
19:17:22__builtinspeachy: yes, agreed. Can you make that change or should I?
19:17:50 Quit Burak_ (Ping timeout: 252 seconds)
19:18:43 Quit q3k (Remote host closed the connection)
19:19:03 Join q3k [0] (q3k@boston-packets.hackerspace.pl)
19:19:09 Quit q3k (Changing host)
19:19:09 Join q3k [0] (q3k@hswaw/infra/q3k)
19:21:16__builtinI'd just do it based onn #ifndef __MINGW32__
19:26:19speachysome of the SOURCES files use WIN32
19:26:54speachythe mismash of windows defines always comsfused me.
19:28:26rb-bluebotBuild Server message: New build round started. Revision da8bde0860, 345 builds, 9 clients.
19:28:27rb-bluebotpuzzles: Disable "unfinished" puzzles for Windows builds by Solomon Peachy
19:29:20MarcAndersenNow that's out of the way, we just need to fix the crash.
19:37:38 Join massiveH [0] (~massiveH@2600:4040:a982:5400:6c89:3e6d:b20a:4aa3)
19:42:01rb-bluebotBuild Server message: Build round completed after 815 seconds.
19:42:02rb-bluebotBuild Server message: Revision da8bde0860 result: All green
19:49:22 Quit jn (Ping timeout: 248 seconds)
19:50:48 Join jn [0] (~quassel@2a0a-a549-e4cd-0-20d-b9ff-fe49-15fc.ipv6dyn.netcologne.de)
19:50:49 Quit jn (Changing host)
19:50:49 Join jn [0] (~quassel@user/jn/x-3390946)
19:54:39***Saving seen data "./dancer.seen"
19:55:39MarcAndersenI think I've made some progress. 0x8120 is AUDIO_F32LSB which is not defined in the switch statement that starts on line 106 in pcm-sdl.c.
20:00
20:01:49 Join jacobk [0] (~quassel@2603:8080:b200:7b02::b71)
20:03:14speachyso.. it's saying that it _only_ supports 32-bit floating point data? that's insane
20:03:34MarcAndersenCan it be fixed?
20:04:04speachyhttps://discourse.libsdl.org/t/wasapi-backend-returns-audio-f32lsb-even-if-i-request-audio-s16sys/23007
20:05:10__builtinSDL_audio offers on-the-fly interpolation/type conversion
20:05:59__builtinwhich the existing Rockbox SDL PCM code already uses
20:06:11speachyyeah, this is rather stupid honestly.
20:06:23speachythere's a way to make it "no, really give me what I want"
20:06:23MarcAndersenSo then we just add it to the switch statement?
20:06:36 Quit desowin (Ping timeout: 252 seconds)
20:06:55__builtinI believe there is - you can pass *obtained = NULL to SDL_OpenAudio
20:07:05__builtinbut that probably breaks other assumptions in the PCM SDL driver
20:07:37__builtinI would just try adding AUDIO_F32* to the switch statement (with pcm_channel_bytes=4)
20:09:49speachyReturns a valid device ID that is
20:09:51speachy 0 on success or 0 on failure
20:09:53speachy
20:09:55speachy.... seriously?
20:10:19speachyno, the right thing to do is swithc to SDL_OpenAudioDevice
20:11:15 Join desowin [0] (~desowin@rockbox/developer/desowin)
20:12:59speachylet me see if this still works..
20:16:49__builtinspeachy: I forgot to tell you that you to disable the unfinished puzzles, you should edit resync.sh to comment them out, as SOURCES.games is auto-generated by that.
20:16:59__builtinotherwise a future resync will overwrite your changes
20:17:29speachybtw the genhelp script goes boom quite badly
20:18:36__builtinyou need a custom build of halibut installed locally for it to work. It needs to be a version with a custom patch I wrote to help parse the help text: https://www.franklinwei.com/git/halibut
20:18:55__builtinI need to update resync.sh to reflect the new URL
20:19:14__builtin(and perhaps document all this better in the wiki at some point!)
20:19:17speachyah. in this case it was going boom due to header stuffs.
20:19:40__builtinyeah, the patch to halibut modifies how it outputs section headers, which are then parsed by genhelp.sh
20:19:51__builtinso it's very likely that. Do you have a vanilla halibut installed?
20:20:05__builtin(halibut = simon's homegrown documentation generator, by the way)
20:21:06speachyyes
20:22:00__builtinit's just this patch: https://www.franklinwei.com/git/halibut/commit/?id=c985a69bd38c244327c70af80ab9d04b07fbe8b3
20:22:24speachyjust ran into the libmad thing that bilgus hit, huh. asan doesn't like it.
20:30:07speachynow I'm getting a voice stack overflow. hah!
20:31:05MarcAndersenI just tried to add it to the switch statement. Now it runs but there's no audio.
20:34:27rb-bluebotBuild Server message: New build round started. Revision b3dac27aa6, 345 builds, 9 clients.
20:34:27rb-bluebotSDL: Convert to SDL2's AudioDevice() API by Solomon Peachy
20:35:32MarcAndersenGuess what? I got it to work by setting set SDL_AUDIODRIVER=directsound !
20:36:15MarcAndersenSo I don't know if we need that commit now or?
20:36:23speachytry it with this ^^ patch
20:36:59MarcAndersenYou mean the commit you just made?
20:37:17speachyyes
20:37:33MarcAndersenOk. A few minutes then
20:37:59speachyapparnely SDL defaults to using a WASAPI backend that only speaks F32*
20:38:41MarcAndersenThen I have to remember to clear that environment var.
20:47:45rb-bluebotBuild Server message: Build round completed after 799 seconds.
20:47:46rb-bluebotBuild Server message: Revision b3dac27aa6 result: All green
21:00
21:03:30 Join othello7 [0] (~Thunderbi@pool-100-36-176-164.washdc.fios.verizon.net)
21:04:40MarcAndersenIt works, but it studders as hell
21:05:54speachyunfortunately we can't select which driver is used from within rockbox
21:06:58rb-bluebotBuild Server message: New build round started. Revision 65d94ecd08, 345 builds, 9 clients.
21:06:58rb-bluebotSDL: Allow the audio device used to be specified on the command line by Solomon Peachy
21:07:23MarcAndersenWhat's that?
21:07:58MarcAndersenHow did you put that in so quickly?
21:07:59speachyallows a choice of which _device_ gets used instead of "the default"
21:08:29speachybut it won't let you select which _driver_ is used
21:09:09speachyit does however print the list of allowed drivers, and of the selected driver, the list of detected devices.
21:09:30MarcAndersenI think that's it for now. Thank you very much for all the help! I will set up a new build server in the coming days and build fresh sims.
21:09:43speachyI can add help text that says sometihng like "if you have stuttering audio use SDL_AUDIODRIVER=<...>"
21:10:09 Quit jacobk (Ping timeout: 260 seconds)
21:10:51MarcAndersenIt was fun to track down the sdl bug.
21:16:47speachyit sucks how the default linux and windows SDL_AUDIODRIVER is so pathological for us
21:19:54speachyMarcAndersen: thanks for pointing us in the right direction. We probably have numerous other lurking platform variance differences lurking..
21:20:21rb-bluebotBuild Server message: Build round completed after 803 seconds.
21:20:23rb-bluebotBuild Server message: Revision 65d94ecd08 result: All green
21:20:33rb-bluebotBuild Server message: New build round started. Revision d483281fea, 345 builds, 9 clients.
21:20:33rb-bluebotSDL: Allow SDL_OpenAudioDevice() to override sample count by Solomon Peachy
21:20:48MarcAndersenI love rockbox! Thanks to you too.
21:23:58 Join jn_ [0] (~quassel@2a0a-a549-eb45-0-20d-b9ff-fe49-15fc.ipv6dyn.netcologne.de)
21:23:59 Quit jn_ (Changing host)
21:23:59 Join jn_ [0] (~quassel@user/jn/x-3390946)
21:24:07 Quit jn (Ping timeout: 264 seconds)
21:28:38MarcAndersenWe have a problem in sims.pl: You don't appear to have sdl-config. It is renamed to sdl2-config
21:32:23rb-bluebotBuild Server message: Build round completed after 711 seconds.
21:32:25rb-bluebotBuild Server message: Revision d483281fea result: 70 errors 0 warnings
21:32:34rb-bluebotBuild Server message: New build round started. Revision 1328464c86, 345 builds, 9 clients.
21:32:35rb-bluebotpuzzles: Update resync script to work around WIN32 issues by Solomon Peachy
21:33:15MarcAndersenOh no!
21:43:47rb-bluebotBuild Server message: Build round completed after 674 seconds.
21:43:49rb-bluebotBuild Server message: Revision 1328464c86 result: 30 errors 0 warnings
21:45:36MarcAndersenHow could 40 errors disappear by that? That makes no sense to me
21:54:43***Saving seen data "./dancer.seen"
21:57:47_bilgusWASAPI IIRC you have to set up a conversion stream thru the API to take your format to whatever WASAPI wants sample rate/ format
21:58:18_bilgusits not very fun to use but it IME is beter than anything here in linux land once you get it working
21:59:24_bilgusI wrote some autoit libraries so I could use the loopback to record tracks
21:59:31 Join jacobk [0] (~quassel@47-186-65-73.dlls.tx.frontiernet.net)
21:59:39_bilgushttps://www.autoitscript.com/forum/topic/197769-wasapi-audio-capture-w-loopback-what-u-hear-udf/
22:00
22:04:05_bilgusspeachy I have a patch up for libmad to test it on other device as is its 600bytes larger and 2-10% faster than ours I think if that carries with the other platforms itd be worth it to go with upstream
22:04:14_bilgusit sounds better too
22:05:31_bilgusIn my mind that its faster probably negates the buffer you are losing
22:07:58_bilgusalso in the same patch are the fixes for the casts to shut up asan, the size differeing one it only in the sim and I think is bc the asm has the wrong size var (also why I think its clicky staticky on the sim)
22:33:10 Join jn [0] (~quassel@user/jn/x-3390946)
22:33:12 Quit jn_ (Ping timeout: 272 seconds)
22:33:30 Join chris_s [0] (~chris_s@2a09:bac3:2b55:126e::1d6:123)
23:00
23:02:05 Quit massiveH (Quit: Leaving)
23:22:18speachyuh... I guess some of the builders have a very old version of SDL2.
23:22:49speachypipewire seems to be the best of most worlds on Linux-land.
23:23:51speachy_bilgus: the platform that are hurting are the underpowered OG ipods and coldfire-based devices
23:25:10speachyyeah.. freemyipod-user890104 is using GCC7 (!) and presumably an equally ancient SDL2
23:26:55_bilgusIDK I think they should try a test_codec with that patch its faster on this underpowered arm
23:27:33chris_s_bilgus: left you comments on the patch, unfortunately sounds distorted on iPod4g/video (using the upstream variant)
23:28:11chris_skind of "warbly"
23:28:22speachyI think it was added in SDL2.0.6 ... in 2018
23:32:28speachy_bilgus: At this point I'm more concerend with correctness across the board than speed.
23:34:27_bilgus#if 0 would be the upstream one correct?
23:34:45chris_syeah
23:35:04speachydon't forget arm (and m68k) has a lot of asm optimizations that are likely unique to us, might be interdependent
23:35:24rb-bluebotBuild Server message: New build round started. Revision da3d658880, 345 builds, 9 clients.
23:35:25rb-bluebotSDL: Work around build problems with SDL2 < 2.0.6 by Solomon Peachy
23:35:28_bilgusours just sounds more muddled like the top end is lost
23:35:34speachyI don' tthink we have any mips optimizations
23:35:57speachy"muddled" .. in sims or also on the device? :)
23:36:12_bilgusI'm ok with either TBH but its for sure better on the sim (size mismatch of buffer I bet)
23:36:14speachyI mean mp3 ought to be easy to validate correctness.
23:36:34_bilguson device its muddled more with head
23:36:36speachysame input should yield the same output
23:36:41_bilgusand sim is noiser too
23:36:42chris_sit sounds very obviously wrong on the iPods, i.e. not a subtle difference
23:37:09_bilguswell that sounds like a not better results
23:37:51_bilgusok I'll push that with the proper casts this time
23:43:31speachythis "better" is independent of the SDL audio driver shenanigans, correct?
23:47:49rb-bluebotBuild Server message: Build round completed after 746 seconds.
23:47:51rb-bluebotBuild Server message: Revision da3d658880 result: All green
23:54:47***Saving seen data "./dancer.seen"

Previous day | Next day