[BUG] Resuming from standby causes XBMC to crash

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
WiSo Offline
Team-XBMC Developer
Posts: 2,481
Joined: Oct 2003
Reputation: 0
Location: Germany
Post: #11
I was never able to reproduce 1) on my XP. Surely the gui was blurred after resume (which I still can't fix as of yet) but XBMC still worked for me.

Concerning 2) what shall we do if XBMC is crashed? If you speak about the screensaver dimming we do this by applying a gamma ramp which needs to be reversed in order to restore the previous state. If XBMC has crashed we can't do so. So its more important to find the reason for the crash or what ever you mean with an improper close.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
uchenzei Offline
Junior Member
Posts: 45
Joined: Dec 2008
Reputation: 0
Post: #12
I join this thread instead of opening a new one cause it seems appropriate.
I have just discovered that xbmc is some way the reason why on my pc I need to press the power button 2 times before it could wake from S3.

I don't turn off the pc, just send it in s3 standby with xbmc still running and this is what happens when I go for resume it:

- I press the power button. Windows resuming screen appears on the display exactly the way it should
- After about 10 seconds the pc goes back into the s3 standby
- I press again the power button and the pc correctly resume in a couple of seconds.

I never figured what the problem was until I tried closing xbmc before going into standby mode. So I discovered that if xbmc is not running, the resume works well at first shot.
find quote
Dam0 Offline
Fan
Posts: 318
Joined: Jun 2008
Reputation: 0
Post: #13
i have been experiencing similar crashing/lack of display output when return from hibernate for a while now.

after power button to resume, if i get a blank screen, i have to hit reset button on pc to reboot. powerbutton again seems to put the pc to sleep, however the pc will resume again on next button press with blank screen output.

Dam0
find quote
uchenzei Offline
Junior Member
Posts: 45
Joined: Dec 2008
Reputation: 0
Post: #14
iBeech Wrote:I have written a small application which fixes this problem until the devs do a propper fix...

iBeech I found your tiny application very very useful! Thanks a lot Nod
I also think it would definitely be amazing if this application could be expanded a bit and I would do it by myself if only I was able to program. For example:

- launch more than 1 application sequentially when resuming from standby
- customize the application list with a simple .ini or similar
- close a given application (or all applications) before entering in standby (this would be a killer feature! Wink)

Too many pretensions? Big Grin
find quote
iBeech Offline
Member
Posts: 93
Joined: Dec 2008
Reputation: 0
Post: #15
WiSo Wrote:I was never able to reproduce 1) on my XP. Surely the gui was blurred after resume (which I still can't fix as of yet) but XBMC still worked for me.

Concerning 2) what shall we do if XBMC is crashed? If you speak about the screensaver dimming we do this by applying a gamma ramp which needs to be reversed in order to restore the previous state. If XBMC has crashed we can't do so. So its more important to find the reason for the crash or what ever you mean with an improper close.

This bug is specifically about XBMC crashing after resume from standby / hibernation.
find quote
iBeech Offline
Member
Posts: 93
Joined: Dec 2008
Reputation: 0
Post: #16
uchenzei Wrote:iBeech I found your tiny application very very useful! Thanks a lot Nod
I also think it would definitely be amazing if this application could be expanded a bit and I would do it by myself if only I was able to program. For example:

- launch more than 1 application sequentially when resuming from standby
- customize the application list with a simple .ini or similar
- close a given application (or all applications) before entering in standby (this would be a killer feature! Wink)

Too many pretensions? Big Grin

Sure, all of those features would be pretty easy to implement for you. I'll see if i get time at lunch. The XML config will look something like

<Config>
<App Order=1 Path="C:\PathToApp\App.exe" RestartOnResume=false RestartOnSleep=true />
<App Order=2 Path="C:\PathToAnotherApp\App2.exe" RestartOnResume=true RestartOnSleep=false />
</Config>
find quote
uchenzei Offline
Junior Member
Posts: 45
Joined: Dec 2008
Reputation: 0
Post: #17
iBeech Wrote:Sure, all of those features would be pretty easy to implement for you. I'll see if i get time at lunch. The XML config will look something like

<Config>
<App Order=1 Path="C:\PathToApp\App.exe" RestartOnResume=false RestartOnSleep=true />
<App Order=2 Path="C:\PathToAnotherApp\App2.exe" RestartOnResume=true RestartOnSleep=false />
</Config>

Sounds very good Smile
I suppose resume=hibernation and sleep=standby right?
What do you think about the possibility to automatically close an app *before* system goes into standby? I've been searching on the net for ages looking something like that but I've never been able to find anything...
find quote
iBeech Offline
Member
Posts: 93
Joined: Dec 2008
Reputation: 0
Post: #18
before the system goes into standby could be possible. It depends when the event gets through. I'll take alook.
find quote
uchenzei Offline
Junior Member
Posts: 45
Joined: Dec 2008
Reputation: 0
Post: #19
iBeech Wrote:before the system goes into standby could be possible. It depends when the event gets through. I'll take alook.

I would like to be able to help you but the only idea I formed is that there should be some difficulties in intercepting the power button pressure and execute custom operations before system goes sleeping...
find quote
RockDawg Offline
Posting Freak
Posts: 1,257
Joined: Jun 2005
Reputation: 0
Post: #20
uchenzei Wrote:Sounds very good Smile
What do you think about the possibility to automatically close an app *before* system goes into standby? I've been searching on the net for ages looking something like that but I've never been able to find anything...

Check out EventGhost. It will do that. It's how I deal with this problem on my machine.
find quote
Post Reply