Author Topic: WARNING #PR_Error:  (Read 6044 times)

Maitho

  • Jr. Member

  • Offline
  • **
  • 55
Re: WARNING #PR_Error:
« Reply #15 on: August 01, 2016, 07:58:55 AM »
@Maitho: if you replaced the xml file with the default one, it was also replaced the default rotation ID. Please go to options, tracks rotations and select your default rotation and click ok. This should save it to your new xml file.

Thank you for the heads up. It's done.

Valdis

  • Hero Member

  • Offline
  • *****
  • 562
  • Personal Text
    Radio is a mental condition
    • home
Re: WARNING #PR_Error:
« Reply #16 on: August 01, 2016, 12:31:56 PM »
@Valdis:
Since Maitho mentioned the "#PR_ERROR" identifier i searched the code to see in what block is used and i could find it only on the priority set block.
If after that, the color or other settings raised new exceptions, i can't know that, because the OP didn't mentioned them and the xml file content was posted only after my reply.  ;)

Also, keep in mind that this version of RadioDJ is has been released over an year a go. The new version has the default values hard coded and if for some reason it can't read them from the xml file, it will use them as a fallback.
@Marius:
Sorry, I didn't mean to offend you in any way. I've had a long day and had become a bit grumpy.
I followed back the code execution path to find any invalid integer casts from empty string and found that the exception bubbles up from jrdjInterface.Settings.LoadSettings method, where ColorPlayed and ColorDisabled options are cast as integers but read with empty string as default value.
In general the exception from that place could occur only if settings_general.xml was empty, missing or corrupt.

@Maitho:
The AutoDJ button suggestion based on experience that users sometimes tend to miss the most obvious thing when using software. It happens to me too. However, this time the settings files may have gone missing or corrupt. But at the end of day your issue surfaced a small bug in RadioDJ which was unnoticed until now.
I'm glad I could help you and teach something new along the way.

I am, therefore I think.
I design and develop web apps, and have created few RadioDJ plugins - https://axellence.lv/downloads/

Marius

  • Administrator
  • Hero Member

  • Offline
  • *****
  • 5718
    • Radio DJ
Re: WARNING #PR_Error:
« Reply #17 on: August 01, 2016, 01:19:01 PM »
@Marius:
Sorry, I didn't mean to offend you in any way. I've had a long day and had become a bit grumpy.

Don't worry, i know the feeling.  :)
Just there are times when it's hard to remember how or where i coded something over a year ago.  :D
DOWNLOADS PAGE

HOW TO FIX RADIODJ DATABASE
----------------
Please don't PM me for support requests. Use the forums instead.

neutralhills

  • Sr. Member

  • Offline
  • ****
  • 341
  • Personal Text
    Nil sine labore.
    • squirrel.fm
Re: WARNING #PR_Error:
« Reply #18 on: May 25, 2017, 04:03:35 PM »
We had some electrical storms that messed up our power last night (the week after my battery backup dies and before the new battery arrives, of course). I got this error on startup and RadioDJ hung on loading. The settings_general.xml file got messed up when the power cycled. I just had to go in and fix the file and everything worked again. If you see that error, check that your .xml files are okay in the RadioDJ directory (you have these backed up, right?)

Just the kind of problem you want to troubleshoot from a hospital bed on a tiny phone screen using Chrome Remote Desktop. Argh.
Squirrel FM : Always playing with our nuts!
www.squirrel.fm
Studio systems running RadioDJ & Rivendell (occasional only)
Flow 8 Deck & PlayIt Cartwall for live mixing and assist.
Remote systems running RadioDJ
Pioneer DDJ-SX control surface.

DJ Garybaldy

  • Global Moderator
  • Hero Member

  • Offline
  • *****
  • 4603
  • Personal Text
    Don't Shoot! I'm only the Moderator
    • DJ Garybaldy Blog
Re: WARNING #PR_Error:
« Reply #19 on: May 25, 2017, 04:08:44 PM »
We had some electrical storms that messed up our power last night (the week after my battery backup dies and before the new battery arrives, of course). I got this error on startup and RadioDJ hung on loading. The settings_general.xml file got messed up when the power cycled. I just had to go in and fix the file and everything worked again. If you see that error, check that your .xml files are okay in the RadioDJ directory (you have these backed up, right?)

Just the kind of problem you want to troubleshoot from a hospital bed on a tiny phone screen using Chrome Remote Desktop. Argh.

Its probably a good idea to repair the database too...

We had a power outage a while back and it corrupted the database its one of those things you can't really protect against.
Proud USER of RadioDJ since 2010

https://djgarybaldy.blogspot.com

How to Install RadioDJ: https://djgarybaldy.blogspot.com/2020/08/how-to-install-radiodj-free-radio.html

RadioDJ is my most FAVOURITE piece of software EVER

What I do with RadioDJ: http://goldradio.servemp3.com

neutralhills

  • Sr. Member

  • Offline
  • ****
  • 341
  • Personal Text
    Nil sine labore.
    • squirrel.fm
Re: WARNING #PR_Error:
« Reply #20 on: May 25, 2017, 07:25:25 PM »
Its probably a good idea to repair the database too...

We had a power outage a while back and it corrupted the database its one of those things you can't really protect against.

Yes, good point. I just checked the DB and it's still in good shape, thankfully. It auto backs off to Google Drive every evening just to be on the safe side.

I'm a bit loopy on pain meds right now.
Squirrel FM : Always playing with our nuts!
www.squirrel.fm
Studio systems running RadioDJ & Rivendell (occasional only)
Flow 8 Deck & PlayIt Cartwall for live mixing and assist.
Remote systems running RadioDJ
Pioneer DDJ-SX control surface.

DJ Garybaldy

  • Global Moderator
  • Hero Member

  • Offline
  • *****
  • 4603
  • Personal Text
    Don't Shoot! I'm only the Moderator
    • DJ Garybaldy Blog
Re: WARNING #PR_Error:
« Reply #21 on: May 26, 2017, 10:28:18 AM »
Quote
I'm a bit loopy on pain meds right now.

Welcome to my world I'm spaced out half the time because of my pain medication...
Proud USER of RadioDJ since 2010

https://djgarybaldy.blogspot.com

How to Install RadioDJ: https://djgarybaldy.blogspot.com/2020/08/how-to-install-radiodj-free-radio.html

RadioDJ is my most FAVOURITE piece of software EVER

What I do with RadioDJ: http://goldradio.servemp3.com