INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Possible to suppress error message(s)?  (Read 4064 times)

d_pert

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 398
  • I love music and great audio!
Possible to suppress error message(s)?
« on: January 05, 2015, 08:09:24 am »

Hi,

Is there a way to suppress the message, "Something went wrong with playback..." when a client MC tries to play from a server MC and that server is temporarily down/offline?

I have a scenario where a client MC is scheduled to play a new smartlist automatically at a certain time. The client instance is running already and I use MC20.exe , etc. If, on occasion, the server, previously connected, is offline (e.g., maintenance on the "Server PC"), the client instance throws the standard message in a little OK dialog.

Problem is ... that ties up normal functioning next time around; the only way to restore the preferred scheduled operation is to intervene and clear that dialog.

Thanks!
Logged
Derek Pert
(Windows 11 Pro x64 / 32GB RAM)

AndrewFG

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3392
Re: Possible to suppress error message(s)?
« Reply #1 on: January 05, 2015, 09:10:03 am »

+1

I think that at very least such error dialogs should not be modal i.e. they should not cause the UI to freeze waiting for the user to hit Cancel. On the other hand I could imagine that modeless dialogs would still be quite useful: if MC is running headless, it might over a period of time accrue a bunch of modeless error dialogs; and when the user eventually logs in, he would see all those accrued errors; so perhaps each error should have a date & time of occurrence...
Logged
Author of Whitebear Digital Media Renderer Analyser - http://www.whitebear.ch/dmra.htm
Author of Whitebear - http://www.whitebear.ch/mediaserver.htm

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5234
  • "Linux Merit Badge" Recipient
Re: Possible to suppress error message(s)?
« Reply #2 on: January 05, 2015, 09:40:01 am »

+1, an option for this would make headless administration easier for me.  I think the reason that error is modal to begin with is that it typically suggests alternative playback options that might work, so there are two options that require user interaction.  Maybe it could be modeless when it's not offering any suggestions (i.e. when there is only one option)?

Also, at the risk of opening a can of worms, I think fewer modal dialogs program-wide could be good, especially for things that can take a little while to do, which can create a "hang" if you try to click on the interface. There are obviously important messages/configuration options that need to be modal, but I'm not sure why last.fm artist image lookups should be modal, for example.  
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42385
  • Shoes gone again!
Re: Possible to suppress error message(s)?
« Reply #3 on: January 05, 2015, 10:18:57 am »

Next build:
NEW: Added MCWS/v1/Configuration/ErrorFreeMode to set the program into error free mode.
Logged
Matt Ashland, JRiver Media Center

d_pert

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 398
  • I love music and great audio!
Re: Possible to suppress error message(s)?
« Reply #4 on: January 06, 2015, 09:33:37 am »

Wow! Thanks.

... but I have installed .51 and cannot find this new option listed anywhere. Where it is? Do I misunderstand your post?  ?

THANKS

Logged
Derek Pert
(Windows 11 Pro x64 / 32GB RAM)

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42385
  • Shoes gone again!
Re: Possible to suppress error message(s)?
« Reply #5 on: January 06, 2015, 09:54:25 am »

Wow! Thanks.

... but I have installed .51 and cannot find this new option listed anywhere. Where it is? Do I misunderstand your post?  ?

THANKS

Open the web service in a browser (search options for 'mcws' and pick 'Open with web browser...')
Logged
Matt Ashland, JRiver Media Center

d_pert

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 398
  • I love music and great audio!
Re: Possible to suppress error message(s)?
« Reply #6 on: January 06, 2015, 03:37:50 pm »

Thanks again ... but yikes ... I feel dumb; how does that HTTP page relate to actually setting this new option on?

It looks to me like just a reference, with examples. I have no idea how to actually activate the new option (e.g., checkbox somewhere).

Also, is this a server-side or client-side setting (I am assuming client-side).

Thanks and sorry for my ignorance.  :-\

Logged
Derek Pert
(Windows 11 Pro x64 / 32GB RAM)

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42385
  • Shoes gone again!
Re: Possible to suppress error message(s)?
« Reply #7 on: January 06, 2015, 04:14:11 pm »

Thanks again ... but yikes ... I feel dumb; how does that HTTP page relate to actually setting this new option on?

Visit this URL to turn on:
http://localhost:52199/MCWS/v1/Configuration/ErrorFreeMode?ErrorFree=1
Logged
Matt Ashland, JRiver Media Center

d_pert

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 398
  • I love music and great audio!
Re: Possible to suppress error message(s)?
« Reply #8 on: January 06, 2015, 05:30:47 pm »

Awesome, thanks.

And this should be done only on any client install that I wish to supress error messages on?

Thanks again.
Logged
Derek Pert
(Windows 11 Pro x64 / 32GB RAM)

d_pert

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 398
  • I love music and great audio!
Re: Possible to suppress error message(s)?
« Reply #9 on: January 06, 2015, 05:49:40 pm »

P.S. -- Both the Client and the Server instances are Portable mode; I hope that doesn't matter. (?)

Just out of interest, where exactly does that MCWS parameter get recorded (e.g., filename)?

Thanks.
Logged
Derek Pert
(Windows 11 Pro x64 / 32GB RAM)

millst

  • Galactic Citizen
  • ****
  • Posts: 256
Re: Possible to suppress error message(s)?
« Reply #10 on: April 21, 2015, 12:47:39 pm »

Is this working okay for people? I tried setting it and it didn't seem to help. At least not for the dialogs causing me problems. Will the setting persist or does it need to be set again after exiting?

My setup isn't headless, but I control it remotely quite a bit and it's annoying to have to walk to the computer to clear the error dialog. I think the one I run into the most is when I watch a movie, eject the disc / delete the movie file, forget that I now don't have any songs queued up, and then press play to listen to music. I probably occasionally delete a music file that is queued up, forget to dequeue it, and then press play later.

-tm
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42385
  • Shoes gone again!
Re: Possible to suppress error message(s)?
« Reply #11 on: April 21, 2015, 01:19:31 pm »

Is this working okay for people? I tried setting it and it didn't seem to help. At least not for the dialogs causing me problems. Will the setting persist or does it need to be set again after exiting?

My setup isn't headless, but I control it remotely quite a bit and it's annoying to have to walk to the computer to clear the error dialog. I think the one I run into the most is when I watch a movie, eject the disc / delete the movie file, forget that I now don't have any songs queued up, and then press play to listen to music. I probably occasionally delete a music file that is queued up, forget to dequeue it, and then press play later.

-tm

What error are you still seeing specifically?  Give the exact text so I can search for it in the code.

Thanks.
Logged
Matt Ashland, JRiver Media Center

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42385
  • Shoes gone again!
Re: Possible to suppress error message(s)?
« Reply #12 on: April 21, 2015, 07:26:29 pm »

<bump>
Logged
Matt Ashland, JRiver Media Center

millst

  • Galactic Citizen
  • ****
  • Posts: 256
Re: Possible to suppress error message(s)?
« Reply #13 on: April 21, 2015, 09:55:11 pm »

"The track named 'xxx' cannot be played because the volume labeled 'xxx' was not found.

Would you like to try again?

Yes No Cancel
Logged

millst

  • Galactic Citizen
  • ****
  • Posts: 256
Re: Possible to suppress error message(s)?
« Reply #14 on: April 21, 2015, 09:57:28 pm »

Something went wrong with playback.

Details:
The volume labled 'xxx' could not be found.

OK Help
Logged

millst

  • Galactic Citizen
  • ****
  • Posts: 256
Re: Possible to suppress error message(s)?
« Reply #15 on: April 21, 2015, 09:59:33 pm »

Something went wrong with playback.

Details.
The file could not be found. Check that the filename in the library matches the filename on disk.

OK Help
Logged

millst

  • Galactic Citizen
  • ****
  • Posts: 256
Re: Possible to suppress error message(s)?
« Reply #16 on: April 21, 2015, 10:07:22 pm »

Something went wrong with playback.

Details:
Playback could not be started on the output 'WASAPI' using the format '44.1kHz 2ch'.

Thous output format may not be supported by your hardware. You can use DSP Studio to chagne the output to a compatible format.

Also, make sure that your system has a valid sound playback device and that it is properly configured in playback options.

OK Help
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42385
  • Shoes gone again!
Re: Possible to suppress error message(s)?
« Reply #17 on: April 22, 2015, 07:05:35 am »

The "Something went wrong with playback" errors are already checking for error free mode.  So if you're doing the thing to set us into that mode, you should not see those errors.
Logged
Matt Ashland, JRiver Media Center

millst

  • Galactic Citizen
  • ****
  • Posts: 256
Re: Possible to suppress error message(s)?
« Reply #18 on: April 22, 2015, 10:59:49 am »

Any idea why it isn't working for me on that error? I am on build 20.0.93. I reopened the link and it responds with <Response Status="OK"/>. I still got the error so maybe I'm not even getting into error-free mode.

The "Something Went Wrong with Playback" errors aren't ones I run into very often. I'm actually forcing this to happen by disabling exclusive access for the device in its driver/Windows properties.

-tm
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42385
  • Shoes gone again!
Re: Possible to suppress error message(s)?
« Reply #19 on: April 22, 2015, 01:50:58 pm »

I'm not sure.

I watched and:
http://localhost:52199/MCWS/v1/Configuration/ErrorFreeMode?ErrorFree=1

Makes my MC go into error free mode.

And once we're in error free mode, we won't show the "Something went wrong with playback" error dialogs.
Logged
Matt Ashland, JRiver Media Center

millst

  • Galactic Citizen
  • ****
  • Posts: 256
Re: Possible to suppress error message(s)?
« Reply #20 on: April 22, 2015, 02:18:42 pm »

Is there any way I can verify that it is going into that mode? What about the other dialogs? Are those part of error free mode yet?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42385
  • Shoes gone again!
Re: Possible to suppress error message(s)?
« Reply #21 on: April 22, 2015, 02:19:48 pm »

What about the other dialogs? Are those part of error free mode yet?

Any of them that we've noticed have been flagged for error free mode.  If you notice others that don't get checked, just let us know.
Logged
Matt Ashland, JRiver Media Center

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42385
  • Shoes gone again!
Re: Possible to suppress error message(s)?
« Reply #22 on: April 22, 2015, 02:28:39 pm »

Next build:
Changed: MCWS/v1/Configuration/ErrorFreeMode responds with an ErrorFree indicator for what the current mode is after the change.
Logged
Matt Ashland, JRiver Media Center

millst

  • Galactic Citizen
  • ****
  • Posts: 256
Re: Possible to suppress error message(s)?
« Reply #23 on: April 22, 2015, 08:30:46 pm »

Thanks. Here is a log snippet that might be of interest:


0005929: 8100: Sharing Plugins: CHTTPListenerWorker::HandleConnection: Start
0005929: 8100: Sharing Plugins: CHTTPListenerWorker::HandleRequest: TCP: 127.0.0.1: GET: http://localhost:52199/MCWS/v1/Configuration/ErrorFreeMode?ErrorFree=1
0005929: 8100: Sharing Plugins: JRWebService::Process: Start
0005929: 8100: Sharing Plugins: JRWebService::Process: URL: /MCWS/v1/Configuration/ErrorFreeMode?ErrorFree=1
0005929: 8100: Sharing Plugins: JRWebService::Process: Finish (0 ms)
0005929: 8100: Sharing Plugins: VHTTPMessage::Write: Wrote 83 bytes

...

0093149: 2724: Playback: CPlayerZone::Play: Playing: <XMLFN version="1.0"><Item Name="Filename">C:\Users\tobyjohnm\Downloads\1Eduardo Castillo - Robot Heart - Burning Man 2014.mp3</Item><Item Name="PlaylistIndex">0</Item><Item Name="AlbumSequentialWithLastTrack">0</Item><Item Name="SampleRate">44100</Item><Item Name="VolumeReset">1</Item><Item Name="Channels">2</Item><Item Name="ErrorFreeMode">0</Item><Item Name="VolumePeakLevels"></Item><Item Name="MediaType">Audio</Item><Item Name="DatabaseKey">126436</Item><Item Name="VolumeTrackMaxSafeGain">-1</Item><Item Name="Bitrate">320</Item><Item Name="Bookmark"></Item><Item Name="BitDepth">16</Item><Item Name="LengthInPCMBlocks"></Item><Item Name="DRMProtected"></Item><Item Name="VolumeLeveling">-10</Item><Item Name="DSP"></Item><Item Name="FileType">mp3</Item><Item Name="UserInterfaceModeChangeEventHandle">000001D4</Item></XMLFN>

Note that the ErrorFreeMode value is 0.

-tm
Logged

millst

  • Galactic Citizen
  • ****
  • Posts: 256
Re: Possible to suppress error message(s)?
« Reply #24 on: April 24, 2015, 10:05:48 am »

Tried the new build out. If I use this URL:

http://localhost:52199/MCWS/v1/Configuration/ErrorFreeMode?ErrorFree=1

I get back:

<Response Status="OK">
<Item Name="ErrorFree">1</Item>
</Response>

If I then try to check the status with this URL:

http://localhost:52199/MCWS/v1/Configuration/ErrorFreeMode

I get back:

<Response Status="OK">
<Item Name="ErrorFree">0</Item>
</Response>

It seems like it's not getting turned on for me still. I ignored the 0 and tried something that causes an error. I still get an error dialog.

-tm
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42385
  • Shoes gone again!
Re: Possible to suppress error message(s)?
« Reply #25 on: April 24, 2015, 10:09:05 am »

Calling in without a parameter like:
http://localhost:52199/MCWS/v1/Configuration/ErrorFreeMode

is going to turn ErrorFree mode off because the default for no value is "false" or "0".
Logged
Matt Ashland, JRiver Media Center

millst

  • Galactic Citizen
  • ****
  • Posts: 256
Re: Possible to suppress error message(s)?
« Reply #26 on: April 24, 2015, 11:15:26 am »

Ok, that explains that. However, I still get the error dialogs, even when it reports back 1. Any ideas?

-tm
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42385
  • Shoes gone again!
Re: Possible to suppress error message(s)?
« Reply #27 on: April 24, 2015, 11:21:51 am »

Ok, that explains that. However, I still get the error dialogs, even when it reports back 1. Any ideas?

-tm

And what's an example error dialog you're still seeing?

I promise the "Something went wrong with playback" errors are protected by the error free mode.
Logged
Matt Ashland, JRiver Media Center

millst

  • Galactic Citizen
  • ****
  • Posts: 256
Re: Possible to suppress error message(s)?
« Reply #28 on: April 24, 2015, 11:53:08 am »

The one in reply #15. I didn't try the "Something went wrong with playback" scenario this morning. The other ones I posted are the more common dialogs I hit. Are those protected?

-tm
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42385
  • Shoes gone again!
Re: Possible to suppress error message(s)?
« Reply #29 on: April 24, 2015, 11:54:51 am »

The one in reply #15. I didn't try the "Something went wrong with playback" scenario this morning. The other ones I posted are the more common dialogs I hit. Are those protected?

-tm

That's "Something went wrong with playback."

That error is protected by error free mode, so I don't think you're properly getting the program into that mode (or you're getting a second running copy into it or something).
Logged
Matt Ashland, JRiver Media Center

millst

  • Galactic Citizen
  • ****
  • Posts: 256
Re: Possible to suppress error message(s)?
« Reply #30 on: April 24, 2015, 12:07:35 pm »

Oops, that's right. I was thinking of the scenario in reply #16. Now I see that most of those I posted are "Something went wrong with playback."

Any ideas why it might not be entering error free mode? The web response indicated success. I've only got one copy running. I know the web interface works, because I have some home automation stuff I wrote tied into it that works fine.

Could a plugin have any effect?
Logged

millst

  • Galactic Citizen
  • ****
  • Posts: 256
Re: Possible to suppress error message(s)?
« Reply #31 on: April 28, 2015, 10:48:28 am »

Bump. Any more ideas? Is this working for others?
Logged
Pages: [1]   Go Up