View Full Version : XBMC - webserver and iphone remote crashes
WinXP Home
ATI HD4850
Is there a way to set the XBMC to auto restart when it crashes?
*edit to clarify*
The webserver isn't crashing, it's functionality is blocked, see this post (http://xbmc.org/forum/showpost.php?p=337281&postcount=5) for more details.
althekiller
2009-05-16, 21:05
1) Enable debugging in settings > system
2) Use pastebin.com/ca/etc
EDIT: Why did you only ask for a nasty half-assed hack instead of offering insight into how to reproduce the problem and what *exactly* happens?
1) Enable debugging in settings > system
2) Use pastebin.com/ca/etc
EDIT: Why did you only ask for a nasty half-assed hack instead of offering insight into how to reproduce the problem and what *exactly* happens?
I *am* trying to figure out how to duplicate the problem. Unfortunately I work full time and go to school full time so my debug time is extremely limited.
Found one cause thus far.
Any time I bring a media info dialog box up the web server stops responding. If I go and close the dialog with a keyboard or mouse the webserver starts responding again.
The "nasty hack" is so my wife will stop having a fit when her remote stops working until a resolution is found.
I am using an Iphone remote so I'll eliminate the INFO button for now and see if another function also causes the same problem.
On the XBMC remote there is an INFORMATION button and a CONTEXT MENU button. When viewing a movie (for example) the context menu button and the information button both bring up an information dialog on the media being viewed.
If you use the CONTEXT MENU button to bring up the dialog, the webserver continues to respond. If you use the INFO button on the iphone remote to bring up the same dialog the webserver stops responding until the dialog is cleared view keyboard or mouse.
Rand Al Thor
2009-05-16, 22:02
Hi Fiasco,
The problem you are describing is a known issue. If you open a dialogue, such as the search function of many plugins, from within the webremote the webserver is blocked and whatever webremote you are using will no longer work until the dialogue box is closed via the keyboard or other local input. The Developers are aware of this, however it is so deeply ingrained in the webserver it is likely that a full rewrite would be required to fix the issue.
I am assuming you are using this remote (http://remote.collect3.com.au)? Just so you are aware, the Remote is made by Collect3 which is in no way affiliated with XBMC except through goodwill and open discussion between the devs. Please direct any Iphone specific questions to our forums. (http://collect3.com.au/forum/)
There seems to be a little bit of ambiguity in what freezes the webserver though. For example, the issue you mentioned where the "info" button freezes the webserver but not the context menu. There are actually several ways to call the "info" screen. One is by calling it directly, another is emulating the keyboard press of the "i" button. One freezes the webserver and the other does not. We (Collect3) have fixed this issue for the next release, but certain dialogues (like the search functions mentioned before) seem to have no work around. To be clear, if you are navigating using the "Button Remote" on the Iphone you can bring up these search dialogues and even use the Iphone Remote's keyboard to enter a search string. However, if you navigate there on the remote itself by going to music sources->Last.fm->Artist Search, as soon as the dialogue appears, the webserver is blocked. Honestly, it isn't much of an issue as there are still ways to use all of the features of XBMC. So, until someone rewrites the entire webserver, certain things may block the webserver from responding. Hopefully this clears some stuff up for you. If you have anymore Iphone specific questions, feel free to drop me a line on our forums.
Cheers,
Rand
Rand,
Thanks for the complete breakdown. I'll try to figure out all the remote functions that trigger a problem and delete those buttons from the remote.
Rand Al Thor
2009-05-16, 23:08
AFAIK, "info" was the only one and we have fixed that for the next release. As I mentioned, there are several ways of relaying each button and we went through and tried to make sure that we were using only functional implementations. Info just slipped through the cracks ;) The only "problem" (which in my opinion is not much of a problem at all) is if you really really love all of the music plugins and you refuse to have your monitor on. As I wrote above, you can use the button remote to navigate to any plugin and the Iphone's keyboard to enter any sort of text etc etc. If you want to listen to music without a monitor on and you absolutely have to use the music plugins (other than shoutcast which works 100%), you can but you have to be careful. If you pick any of the menu items with the word "search" in them, it brings up the dialogue and blocks the webserver. Personally, I have a ton of music on my HTPC and there are thousands of stations on shoutcast. If you really don't want to turn on your monitor and you can't find anything to listen to without the search function on Last.fm, you don't really want to listen to music anyway ;)
Cheers,
Rand