1
Other Utilities / Re: IRC logs behaving oddly
« Last post by Frankenpod on May 22, 2022, 06:49:17 PM »Now it works with Edge (swear that it didn't before). Also works with Opera and Chromodo. Still fails to work with Firefox - presumably it's a Firefox bug?
2
New Ports / Re: Fiio M3k
« Last post by stridechicken on May 22, 2022, 06:07:13 PM »Thank you! I've got it all set up now.
3
Plugins/Viewers / Re: [lastfm_scrobbler] plugin creates a *PANIC* when USB unplugs.
« Last post by amachronic on May 22, 2022, 04:40:33 PM »Thanks, no worries. I forgot to ask before - did you have USB Mode set to Ask? It's under settings -> general -> system. That is known not to work and might cause a problem like this. (That setting really needs to be removed...)
If it's not that, I think this probably a hardware-specific issue. There's a few things I could think of that might help, I'll post again when I have some fixes you can test.
If it's not that, I think this probably a hardware-specific issue. There's a few things I could think of that might help, I'll post again when I have some fixes you can test.
4
Plugins/Viewers / Re: [lastfm_scrobbler] plugin creates a *PANIC* when USB unplugs.
« Last post by dhugas on May 22, 2022, 12:32:05 PM »Hello,
Sorry for the late response.
The *PANIC* is reproducible, always. I've run the cube plugin and it happens the same as the lastfm and battery_bench plugin: the cube is turning, whin I plug the USB the cube disappears, the USB connection icon in the xDuoo appears and the computer does not detect the device. When I unplug it, the *PANIC* error appears.
It's not a big issue for me, I just have to remember to stop any plugin before I plug it to my computer.
Thank you for looking into it!
Sorry for the late response.
The *PANIC* is reproducible, always. I've run the cube plugin and it happens the same as the lastfm and battery_bench plugin: the cube is turning, whin I plug the USB the cube disappears, the USB connection icon in the xDuoo appears and the computer does not detect the device. When I unplug it, the *PANIC* error appears.
It's not a big issue for me, I just have to remember to stop any plugin before I plug it to my computer.
Thank you for looking into it!
5
Other - Installation/Removal / Re: FiiO M3K Install (Native port)
« Last post by amachronic on May 22, 2022, 07:42:01 AM »I just got the following white screen with the following error message again![]()
*PANIC*
TLB refill handler at 0x800272fc! [0x4]
My rockbox version is 2f71571c0a-220515. It doesn't happen all the time but seems to happen when I eject and remove the USB from the M3K. I am able to turn off the device then reboot back into Rockbox.
I could try reinstalling Rockbox from scratch. What the best method for clean installing Rockbox (including reformatting the SD card) ?
Update
It happened again but with a slightly different message
*PANIC*
TLB refill handler at 0x8007c970! [0x720065]
I can reproduce the first crash by plugging in USB from the file browser and then clicking a file after unplugging. The second crash is probably caused by the same underlying bug. I opened an issue for it on the bug tracker, FS#13352.
Reinstalling rockbox won't help, but you should be able to work around the bug by exiting the file browser and going back to the main menu before you plug in USB.
Just for reference, if you want to do a clean re-install of rockbox for any reason: you only need to delete the entire .rockbox folder and unzip a new build. You don't need to reformat the SD card unless you suspect filesystem corruption.
6
Rockbox General Discussion / Re: I'd like to buy a new player to put rockbox on, what should I look at?
« Last post by Falco98 on May 22, 2022, 12:30:03 AM »So I have my F20 now and interestingly, since March 2022 they're coming with firmware revision 2.7 instead of 2.5 (the latest mentioned by RB util). Trying to install anyway with RB util insta-crashes on me.
I took my chances on manually installing the prepatched 2.5 FW update and it seemed to work - i get the bootloader with Rockbox or OF choices, and RB boots fine - but the second I try to play music, i get a segmentation fault and it forces the player to hard restart.
If I boot into the OF, it now reports it's on firmware version 2.5, and playing the same music seems to work with no hitch. Caveat that I've only tried this particular album so far.
Anyone have any insight? Have I just angered the gods by installing a downgraded firmware, or what?
I took my chances on manually installing the prepatched 2.5 FW update and it seemed to work - i get the bootloader with Rockbox or OF choices, and RB boots fine - but the second I try to play music, i get a segmentation fault and it forces the player to hard restart.
If I boot into the OF, it now reports it's on firmware version 2.5, and playing the same music seems to work with no hitch. Caveat that I've only tried this particular album so far.
Anyone have any insight? Have I just angered the gods by installing a downgraded firmware, or what?
7
Rockbox General Discussion / Re: Anyone still scrobbling in 2022?
« Last post by Bilgus on May 21, 2022, 11:57:09 AM »It tests the same for me..
amachronic I added a foreground mode so we can test both
doomsquirrel here is a build with the test plugin if you could test both the TSR and fg mode with your Fio
https://www.mediafire.com/file/bbq07r2nj8lpcxe/rockbox_TestUSB_FioM3k_bm.zip/file
amachronic I added a foreground mode so we can test both
Code: [Select]
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
* \/ \/ \/ \/ \/
* $Id$
*
* Copyright (C) 2022 Aidan MacDonald
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
****************************************************************************/
#include "plugin.h"
#include "logf.h"
#undef DEBUGF
#define DEBUGF(...)
//#define DEBUGF printf
#define EV_EXIT MAKE_SYS_EVENT(SYS_EVENT_CLS_PRIVATE, 0xFF)
unsigned char stack[DEFAULT_STACK_SIZE];
struct event_queue queue;
int thread_id;
const char* state = "none";
const char* prev_state = "none";
static void main_loop(void)
{
bool exiting = false;
struct queue_event ev;
while(true) {
rb->queue_wait(&queue, &ev);
/* events that are handled whether exiting or not */
switch(ev.id) {
case EV_EXIT:
return;
}
if(exiting)
continue;
/* events handled only when not exiting */
switch(ev.id) {
case SYS_USB_CONNECTED:
prev_state = state;
state = "connected";
logf("test_usb: connect ack %ld", *rb->current_tick);
DEBUGF("test_usb: connect ack %ld\n", *rb->current_tick);
rb->usb_acknowledge(SYS_USB_CONNECTED_ACK);
break;
case SYS_USB_DISCONNECTED:
prev_state = state;
state = "disconnected";
logf("test_usb: disconnect %ld", *rb->current_tick);
DEBUGF("test_usb: disconnect %ld\n", *rb->current_tick);
break;
case SYS_POWEROFF:
case SYS_REBOOT:
prev_state = state;
state = "exiting";
exiting = true;
break;
}
}
}
static void kill_tsr(void)
{
rb->queue_post(&queue, EV_EXIT, 0);
rb->thread_wait(thread_id);
rb->queue_delete(&queue);
}
static bool exit_tsr(bool reenter)
{
MENUITEM_STRINGLIST(menu, "USB test menu", NULL,
"Status", "Stop plugin", "Back");
while(true) {
int result = reenter ? rb->do_menu(&menu, NULL, NULL, false) : 1;
switch(result) {
case 0:
rb->splashf(HZ, "State: %s", state);
rb->splashf(HZ, "Prev: %s", prev_state);
break;
case 1:
rb->splashf(HZ, "Stopping USB test thread");
kill_tsr();
return true;
case 2:
return false;
}
}
}
static void run_fg(void)
{
rb->queue_init(&queue, true);
thread_id = rb->create_thread(main_loop, stack, sizeof(stack),
0, "test_usb"
IF_PRIO(, PRIORITY_USER_INTERFACE)
IF_COP(, CPU));
rb->splashf(HZ, "Thread started");
while(true)
{
if (rb->button_get_w_tmo(HZ) != BUTTON_NONE)
{
kill_tsr();
rb->splashf(HZ, "Thread Exiting");
return;
}
}
}
static void run_tsr(void)
{
rb->queue_init(&queue, true);
thread_id = rb->create_thread(main_loop, stack, sizeof(stack),
0, "test_usb TSR"
IF_PRIO(, PRIORITY_BACKGROUND)
IF_COP(, CPU));
rb->plugin_tsr(exit_tsr);
}
enum plugin_status plugin_start(const void* parameter)
{
(void)parameter;
MENUITEM_STRINGLIST(menu, "USB test menu", NULL,
"Start TSR", "Start Foreground", "Quit");
while(true) {
switch(rb->do_menu(&menu, NULL, NULL, false)) {
case 0:
run_tsr();
rb->splashf(HZ, "Thread started");
return PLUGIN_OK;
case 1:
run_fg();
continue;
case 2:
return PLUGIN_OK;
default:
return PLUGIN_ERROR;
}
}
}
doomsquirrel here is a build with the test plugin if you could test both the TSR and fg mode with your Fio
https://www.mediafire.com/file/bbq07r2nj8lpcxe/rockbox_TestUSB_FioM3k_bm.zip/file
8
Rockbox General Discussion / Re: Anyone still scrobbling in 2022?
« Last post by amachronic on May 21, 2022, 10:25:01 AM »bilgus, re IRC yesterday, I'm not sure why usb events wouldn't be propagated. It seems to be working for me but maybe my testing is too simple. This is what I did (with a clean RB install):
1. start up scrobbler and play a few tracks
2. plug in USB, I can see the tracks in the scrobbler log
3. unplug USB and play a few more tracks
4. plug in USB again, new tracks show up in scrobbler log
I added a USB TSR test plugin g#4555 to debug connection issues but it seems to be getting both connect & disconnect as expected.
doomsquirrel if you can think of any more specific thing I can try to trigger the bug i'd appreciate it.
1. start up scrobbler and play a few tracks
2. plug in USB, I can see the tracks in the scrobbler log
3. unplug USB and play a few more tracks
4. plug in USB again, new tracks show up in scrobbler log
I added a USB TSR test plugin g#4555 to debug connection issues but it seems to be getting both connect & disconnect as expected.
doomsquirrel if you can think of any more specific thing I can try to trigger the bug i'd appreciate it.
9
Plugins/Viewers / Re: [lastfm_scrobbler] plugin creates a *PANIC* when USB unplugs.
« Last post by amachronic on May 21, 2022, 10:20:14 AM »*PANIC* mount:0 is from usb.c L265 so I can't see why the scrobbler would affect it... more likely it's noise from the usb unplug making the card detect look like the SD card is not present, possibly combined with a timing issue with the TSR threads.
dhugas is this panic reproducible or intermittent? and does it happen even if you disable the scrobbler?
dhugas is this panic reproducible or intermittent? and does it happen even if you disable the scrobbler?