View Full Version : Cancel button on DVD-Remote don't work!
hi,
when i click on a .strm file, it opens a window that says "opening file…", and begin receiving the streaming from the internet, but if the speed is too slow, and so the cacheing (!) process takes too much time, i'd like to quit the operation. to do so i try to push that big orange "cancel" button, in the same window, but it doesn't seem to work. i've pushed every button on the joypad, without any result. so, if the streaming is reeeeeally slow, or it hangs, i can't take control anymore of my xbmc.
is the cancel button not working?
is it impossibile to force quitting the process, if i want?
thank you,
jotaro
Gamester17
2004-06-10, 18:50
i believe this was fixed in the cvs earlier today, complile very latest xbmc cvs and test
so i heard, but it definately is not working. i tried a 25/6 cvs build today and the cancel button on streams does precisely nothing.
quite a few streams seem to fail and i find i have to keep powering off the xbox to restart xbmc. the cancel function would be most appreciated.
- 08-06-2004 added: [ 905913 ] abilty to cancel startup of video/audiostreams.
works for me.
really?. ok, let me make sure i've got this right... when the dialog box comes up with the cancel button on it (like when its waiting to connect to a stream) i press the central select button on the remote (tried the buttons on the controller also) and the dialog box responds?. for me it does nothing at all.
i am talking about .strm type files by the way.
any ideas?. is the 25/6 cvs build faulty? everything else seems to work fine.
canceling with the remote doesn't work for me either, canceling with the controller does.
can we have a few more people check the remote cancel issue out? try cancelling a stream that is starting up with the remote control. if you can't it's probably a bug or just a partially implemented bugfix.
thanks charly. which button did you use on the controller?
Gamester17
2004-06-29, 12:34
i tried canceling on the remote by pressing "select", confirm it doesn't work :( ...i'm one of many (the majority?) who only use the dvd-remote
thanks gamester17!. yeah, to whoever did the bugfix: the remote can control everthing else and is a must with xbmc. can you please update the fix to take input from the remote?
hmm, i just made sure mplayer would cancel if the button was pressed (acually only everytime the gui's text is updated.) this would mean that it is missing the button press entirely.
will have a look at it and se why it might happen.
thanks elupus.
how are we going about this issue folks?
jmarshall
2004-07-16, 18:54
i've just had a look at the code, and i think i understand why it doesn't work with the remote.
assuming it works with the controller (which i can't test as i don't have my xbox with me for another week or so) the only difference between the remote + the controller is the way that keypresses are detected.
i think that the problem is that keypresses are only checked whenever the window is updated with new text. thus, this is not very often. the remote "press" may be too short so as to appear in the frames inbetween the frames in which we actually update the text, and thus when we check for button presses, nothing is being pressed.
not sure if i'm on target with this or not, as i can't test anything. if anyone has a debug setup, it should be quite easy to see what is causing it to not work - just output the state of the remote keys each time progress() is called in cguidialogprogress(). then try caching a file and press the remote keys. examine the output to see if the keys are being detected or not.
cheers,
jonathan
btw: elupus is on holiday for a few weeks, which is why you haven't heard from him.
i have the same problem.. can't cancel via remote or via controller. this is when trying to hit cancel when it's trying to load a .strm stream.
i am using cvs build from july 12th.
jmarshall
2004-07-16, 21:44
can we please get some clarification here:
we know it doesn't work (pressing the select button) on the remote.
does it work on the controller (should be the a button??)
please test this thoroughly (pressing the a button on the controller repeatedly - try holding it down as well for a decent amount of time).
thanks,
jonathan
i've tried select with the remote and the a button with the controller. nothing worked for me.
i will try it again tonight with just the controller and trying some longer button presses..
running "july 17th 2004 unofficial build" and it doesnt work for me either.
ok, just compiled with up to date sources and it doesnt work.
not with the controller (tried long a presses, short ones, multiple ones.. nada) and not with the remote.
great. i am glad i wasn't just imagining this. i have read here that the controller button is only checked when the text changes on the dialog box, but in any case that's not really ah... adequate, is it.
let's hope a dev with time on their hands can look into this bug soon.
i hope so too, nothing is quite as anoying when you have to wait for no good reason.. and with the streams, sometimes it tries to connect again, so you have to wait even longer..
we really need a quick way to cancel those displays..
or remove the cancel button, so you know you can't cancel out of it :)
good point msan, but i hope the devs don't try that solution. a timeout would be nice. i don't mean for a timeout to replace the faulty cancel button, but just to save having to reboot the xbox everytime a stream fails part-way into the connect phase.
hey, has anyone tried to fix this bug or is it really too hard to fix? even just making the controller's a button work at any time (not just when the text changes - which could be never) would be a start.
is this bug so hard to fix?. once xbmc is waiting for a dead stream to start even the controller's button won't work and xbmc hangs. i mean, so no-one else had a problem with xbmc needing a reboot when a stream fails?. :shocked:
if is really is some design flaw that can't be fixed, then how about a timeout?.
WarriorSan
2004-08-29, 22:49
i'm using a compiled cvs release of 2004-08-27 and it still doesn't work both remoted and controller...damn
the devs will be upset to hear it but i think that not fixing a known gui bug that hangs xbmc is wussing out. i think even xbmp had a timeout...
while the cancel button doesnt work, i could've sworn that it does eventually time out (but it does take a long time.) i dont think i've ever needed to reboot the xbox when it was stuck at the shoutcast dialog box.
ok, just a bump to try and maintain awareness of this problem. a bug fix would be wonderful.
Gamester17
2004-09-09, 13:01
has this bug report been submitted to our official bug-tracker on sourceforge.net?, if so got the link? ...because forum is discussion only
yes, i submitted the bug report a while ago. i will check for a link and post it back here later.
ok, here is my bug report --> here (http://sourceforge.net/tracker/index.php?func=detail&aid=987004&group_id=87054&atid=581838)
i also notice that someone has spotted that even the game controller buttons are almost useless to cancel a locked-up stream with this bug report --> here (http://sourceforge.net/tracker/index.php?func=detail&aid=1008142&group_id=87054&atid=581838).
there may be others. the controller button may work sometimes, but certainly not once the stream is fully locked up.
ok ok i get the message. it's either too hard, or not interesting enough right?.
i have decided that like i did with xbmp, i will fix the bug myself. give me a few weeks at least to get the development environment set up and up to speed with xbmc and i will be right.
with a recently born son my time is very precious at home but it seems the only way to fix what i see as a major bug in the streaming media part of xbmc. *i do program for a living, but i'd prefer to leave all that at work.
i suspect that the whole handling of dialog boxes is screwed so it may take a while, but i will get back to you when it's done.
jmarshall
2004-09-17, 12:37
thanks anomoly.
as with most things opensource, sometimes bugs hang around and hang around without being fixed. it's usually due to devs not actually using such features themselves.
the main problem for this particular issue is the way the dialogs are set up and are used. feel free to ask any questions or suggest alternative methods etc. that could be used, and i'll attempt to help in any way i can.
cheers,
jonathan
ok ok i get the message. it's either too hard, or not interesting enough right?.
i have decided that like i did with xbmp, i will fix the bug myself. give me a few weeks at least to get the development environment set up and up to speed with xbmc and i will be right.
with a recently born son my time is very precious at home but it seems the only way to fix what i see as a major bug in the streaming media part of xbmc. *i do program for a living, but i'd prefer to leave all that at work.
i suspect that the whole handling of dialog boxes is screwed so it may take a while, but i will get back to you when it's done.
i also program for a living and have other things in life but i decided that contributing to the community in this form is worth while.
so -- if you can fix the bug the community will be thankful and we will probably ask you to fix a few more if you can.
if not, please wait patiently.
kind regards,
-yuval
feel free to ask any questions or suggest alternative methods etc. that could be used, and i'll attempt to help in any way i can.
thanks. i am ready to go now and have posted you a message with some details and questions.
a major change was done today to the way the remote control is working with xbmc. it also resolved the problem discussed in this thread.
-yuval
yay!. thanks so much. can't wait to see it.
ok, i tried the latest xbmc with the remote "fix" in it.
perhaps this bugfix may fix the issue where the remote is not recognised at all but it certainly does not seem to solve the issue of not being able to cancel loading or hung streams. i tried it last night and it behaved much the same way as it used to.
what we really need is to be able to interrupt the waiting (or hung) thread. currently you can pressed the remote button as many times as you like but it will ignore you until it times out or refreshes the dialog box text.
jmarshall
2004-10-10, 16:04
we are talking about shoutcast type streams, right?
i'm playing with it at the moment.
jmarshall
2004-10-10, 16:32
if you are talking about the cancel dialog that occurs while caching a .strm file, then it is cancellable with the remote.
it only gets called when the dialog is updated, as it is being called from mplayer the dll (a separate thread).
in order to cancel it, just hold down the select button on the remote and it'll cancel either the next time it updates (or the one after, as the remote's interaction with the xbox hardware can often miss occasionally due to the nature of ir).
if it's not during the caching, please specify when it is so that we can look further into it. an example stream would do the trick.
ok, i tried the latest xbmc with the remote "fix" in it.
perhaps this bugfix may fix the issue where the remote is not recognised at all but it certainly does not seem to solve the issue of not being able to cancel loading or hung streams. i tried it last night and it behaved much the same way as it used to.
what we really need is to be able to interrupt the waiting (or hung) thread. currently you can pressed the remote button as many times as you like but it will ignore you until it times out or refreshes the dialog box text.
you are welcome to do a better fix. i think this fix is much better than what it was before and think that there are other higher priority issues than this.
i'd also appreciate if you stop using the "complaining" tone as it is not really helping anyone.
-yuval
yuval: sorry if you interpreted my post as a complaint. consider it a misunderstanding.
jmarshall: i"m talking about video .strm streams. from your reply i see that this is just a bugfix for the remote not being recognised, as opposed to rewriting the dialog box code that nikon70 or myself was going to attempt.
my pc lost it's system drive shortly after we chatted about fixing the way the dialog worked so i had to go back to a july backup *:sniffle: *and so lost my newly-installed xbmc development envronment.
to be honest, when i got an auto e-mail from the sourceforge site that someone had addressed the problem i stopped work on it. i'll get back on it now.
what i should do, i suppose it make a new bug report that separates the "remote button" problem (sorta fixed) from the "ignore everything while not updating text" problem.
jmarshall
2004-10-11, 12:44
exactly. the problem is simply the implementation of the dialog box + mplayer interaction.
to be honest, i'm not sure how you are going to get around this. i'm not 100% sure whether mplayer has started a new thread at the point that the dialog box stuff is being done, so i'm not sure where xbmc is at that time.
your best bet is to play around in mplayer.cpp and see what you can find out.
good luck (you'll need it :p )