[DX] SVN 24195 Problems with External Player and Shutdown
#1
Log: Here

In short, play a video with external player. When the video starts, XBMC minimizes itself to the task bar. When the video stops playing (either end or stop-ed), the external player exits, but XBMC does not maxmimze itself. Alt-Tab is needed to bring it back. This is despite the fact that playercorefactory hidexbmc is set to false (see log).

Second problem is, when hitting "shutdown" from Home, XBMC hangs. Alt-Tab does not work to bring other apps to the front. Killing it from Task Manager is required.

Both these problems did not happen with SVN 24171 DX so I'm not sure what changed...

Anyone else see this happening?
Reply
#2
Hi, i can confirm the problem with the external player.
I have the same behavior as patkhoo described above.
If a log is needed i can provide one.
Reply
#3
same here using the official alpha build.
Reply
#4
OK, I still see this problem in camelot alpha1 Sad But this is now getting stranger..

1. Start XBMC
2. Go into Movies, play a trailer
3. External Player starts, XBMC minimizes to taskbar (again, hidexbmc is false)
4. MPC-HC plays trailer
5. Stop playback, MPC-HC exits
6. XBMC is still minimized
7. ALT-TAB to bring XBMC back
8. Exit to Home
9. Bring up Settings Menu ("S"), choose shutdown
10. Listen to shutdown sound played
11. XBMC hangs, Needs Task Manager to kill
See: crash log

Now, I repeat the same test with the same trailer:
1. Start XBMC
2. Go into Movies, play a trailer
3. External Player starts, XBMC minimizes to taskbar (again, hidexbmc is false)
4. MPC-HC plays trailer
5. Stop playback, MPC-HC exits
6. XBMC is still minimized
7. ALT-TAB to bring XBMC back
8. Exit to Home
Additional Step ---> Browse around Home, like to TV Shows, ...
9. Bring up Settings Menu ("S"), choose shutdown
10. Listen to shutdown sound played
11. XBMC Exits successfully
See: No crash log

So what is the reason/difference?

I am using EventGhost, but it appears to happen if I use the keyboard as well. I am running DirectX August 2009 if that makes a difference. And I'm using Aeon Showmix.

Can anyone else verify this? If yes, I will put it into trac..
Reply
#5
I have the same problem with XBMC minimizing when using an external player (VLC, in my case) but I have not had XBMC hang yet.

I am using the Alpha release also.
Reply
#6
Maybe this line in advancedsettings.xml would help:
Code:
<fakefullscreen>true</fakefullscreen>
But you have to wait for Camelot Beta 1 (or Alpha 2). Or compile rev24259 or later.
Reply
#7
patkhoo Wrote:OK, I still see this problem in camelot alpha1 Sad But this is now getting stranger..

if the shutdown freeze appears a lot in home menu, but never in one of the views, that's because of running py scripts in the background. had this a lot in showmix. go test for yourself to see if shutting down from inside a lib view (like movies/tv shows/music) still makes xbmc freeze.
cheers,azido :;):
Reply
#8
Neither of those logs are debuglogs.
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.


Image
Reply
#9
jmarshall Wrote:Neither of those logs are debuglogs.

Hi jonathon, sorry.. I've tried the exact same steps again, and reproduced both results - this time with debug logging..

Problem is, the debug logs are huge - each one is about 1.4MB! Pastebin.com died! The logs are filled with "INFO: D3DERR_DEVICELOST" messages (which I guess is during playback by MPC-HC). I started editing them out, but got scared that I would accidentally delete some other valid/important log entry..

So I apologise, but here is a zip of the logs.

Azido's guess about it being related to python scripts could be true. something to do with a script ending in error?

Code:
21:43:07 T:3904 M:1587171328  NOTICE: unload skin
21:43:07 T:3904 M:1587171328   DEBUG: CGUIAudioManager::DeInitialize
21:43:07 T:3904 M:1587408896   DEBUG: ------ Window Deinit (Home.xml) ------
21:43:07 T:3904 M:1587884032   DEBUG: ------ Window Deinit (Pointer.xml) ------
21:43:07 T:3904 M:1587884032   DEBUG: ------ Window Deinit (DialogMuteBug.xml) ------
21:43:07 T:3904 M:1596715008  NOTICE: stop python
21:43:09 T:1952 M:1600258048   ERROR: Scriptresult: Error

vs

Code:
21:45:27 T:2316 M:1582411776  NOTICE: unload skin
21:45:27 T:2316 M:1582411776   DEBUG: CGUIAudioManager::DeInitialize
21:45:27 T:2316 M:1582653440   DEBUG: ------ Window Deinit (Home.xml) ------
21:45:27 T:2316 M:1582940160   DEBUG: ------ Window Deinit (Pointer.xml) ------
21:45:27 T:2316 M:1582931968   DEBUG: ------ Window Deinit (DialogMuteBug.xml) ------
21:45:27 T:2316 M:1582931968 WARNING: CGUITextureManager::Cleanup: Having to cleanup texture multiplex/multiplex_tvmask.png
21:45:27 T:2316 M:1582931968 WARNING: CGUITextureManager::Cleanup: Having to cleanup texture multiplex/multiplex_tvmask2.png
21:45:27 T:2316 M:1583611904 WARNING: CGUITextureManager::Cleanup: Having to cleanup texture home/nowplaying_mask.png
21:45:27 T:2316 M:1592340480  NOTICE: stop python
21:45:27 T:2316 M:1592332288  NOTICE: stopped
21:45:27 T:2316 M:1592332288  NOTICE: destroy
21:45:27 T:2316 M:1592360960  NOTICE: unload sections
21:45:27 T:2316 M:1592352768   DEBUG: SECTION:UnloadAll(SECTION: LIBHTTP)
21:45:27 T:2316 M:1592352768   DEBUG: SECTION:UnloadAll(DLL: special://xbmc/system/ImageLib.dll)
21:45:27 T:2316 M:1592352768   DEBUG: Win32DllLoader::Unload ImageLib.dll
...

So again, two problems - XBMC hides itself even when told not to when using external player, and if there is a script error on exit, XBMC becomes confused Huh
Reply
#10
Nickman99 Wrote:Maybe this line in advancedsettings.xml would help:
Code:
<fakefullscreen>true</fakefullscreen>
But you have to wait for Camelot Beta 1 (or Alpha 2). Or compile rev24259 or later.

fakefullscreen fixed the problem (for me anyways), thanks Big Grin
Reply
#11
i have the exact same problem
i am using latest kricker build from SVN (9.11 crashed on me al the time)
and XBMC keeps minimizing itself and never gets its focus back when exiting out of a movie. i am using windows 7 fully updated
and AC3 filter and MPC-HC for playing movies

Thats about it, i ahve no more software installed i think (yes winamp and winrar he he)

problem is anoying as hell

update: gonna try svn 24368 now see what happends. maby try the fakefullscreen arg. in advsettings aswell
Reply
#12
hey spuck how did you get it to work? all the details please!
build version, windows version, advancedsettings.xml or playercorefactory and its contents and so on... i cant get it to play right
Reply
#13
Sure thing, here you go.

XBMC DX SVN 24368
Windows 7 Ultimate N 64-bit

Code:
<playercorefactory>
  <players>
    <player name="MPC-HC" type="ExternalPlayer" audio="true" video="true">
      <filename>C:\Program Files (x86)\MPC HomeCinema\mpc-hc.exe</filename>
      <args>/fullscreen /close "{1}"</args>
      <hidexbmc>false</hidexbmc>
      <hideconsole>false</hideconsole>
      <warpcursor>none</warpcursor>
    </player>
  </players>
  <rules action="prepend">
    <rule filetypes="wmv" player="MPC-HC"/>
  </rules>
</playercorefactory>
Code:
<advancedsettings>
<fakefullscreen>true</fakefullscreen>
<tvshowmatching action="append">
  <regexp>[\._ \-][Ss]([0-9]+)[\.\-\s]?[Ee]([0-9]+)([^\\/]*)</regexp>
</tvshowmatching>
<audio>
  <defaultplayer>dvdplayer</defaultplayer>
</audio>
<videolibrary>
  <cleanonupdate>true</cleanonupdate>
  <hideallitems>true</hideallitems>
  <hideemptyseries>true</hideemptyseries>
  <itemseparator> / </itemseparator>
</videolibrary>
<videoextensions>
  <remove>.dat</remove>
</videoextensions>
</advancedsettings>
Reply
#14
Hi Guys,

I'm getting the same D3DERR_DEVICELOST error in my log file, but I cant find an advancedsettings.xml file anywhere on my machine. Can someone point me in the right direction?

Windows XP SP3
XBMC 9.11 Camelot Alpha 1

Oh yeah, my XBMC crashes whenever I try to browse a network device or Media Server for files to play. Most of the time I get through the file browse but it then crashes when the video is playing.

last debug log
Reply
#15
I tried spuck's settings using the latest Alpha Build 2, and running on Windows XP, but when exiting out of MPC-HC my XBMC app is still minimized. Sad
Reply

Logout Mark Read Team Forum Stats Members Help
[DX] SVN 24195 Problems with External Player and Shutdown0