Win XBMC freezes on startup
#16
I had the problem too last night. I found out XBMC would'nt startup if I have an audio cd in my drive. It keep saying XBMC not responding, until I took the cd out, then it started up as usual.

Did the test 3 times with different cd's and each time the result was the same with not responding.
Reply
#17
OK I've built a version of Eden with extra logging. It will still crash/hang, but at least we'll have more idea where it's happening.

Grab XBMC.exe from http://swarchive.ratsauce.co.uk/xbmc/HangInWindows/ and copy the file into the XBMC installation directory i.e. replace the version of XBMC.exe created by the Eden installer. Now just run XBMC, and after it hangs/crashes upload the log to http://pastebin.com/ and post the link here.

The extra logging info will look like:

Code:
DEBUG: guilib: Fill viewport always for solving rendering passes
  INFO: CApplication::Create: calling CUtil::InitRandomSeed()
  INFO: CApplication::Create: calling g_mediaManager.Initialize()
  INFO: CApplication::Create: returning CApplication::Initialize()
  INFO: CApplication::Initialize: entering CApplication::Initialize()
  INFO: CApplication::Initialize: calling g_curlInterface.Load()
DEBUG: SECTION:LoadDLL(special://xbmcbin/system/libcurl.dll)
  INFO: CApplication::Initialize: calling g_curlInterface.Unload()
  INFO: CApplication::Initialize: calling CApplication::StartServices()
NOTICE: initializing playlistplayer

The logs that have been posted in this thread stop at the entry:

Code:
DEBUG: guilib: Fill viewport always for solving rendering passes

and normally the next log entry is:

Code:
DEBUG: SECTION:LoadDLL(special://xbmcbin/system/libcurl.dll)

so hopefully the extra logging will tell us where in between XBMC is hanging.
Reply
#18
OK - I've downloaded the extra logging version, enabled debug and run it - here's the log
http://pastebin.com/SPUEkF1z

Looks like the last entries are:
Code:
08:41:54 T:6528   DEBUG: CButtonTranslator::Load - no userdata IRSSmap.xml found, skipping
08:41:54 T:6528    INFO: GUI format 1600x900 1600x900 @ 60.00 - Full Screen
08:41:54 T:6528   DEBUG: guilib: Fill viewport always for solving rendering passes
08:41:54 T:6528    INFO: CApplication::Create: calling CUtil::InitRandomSeed()
08:41:54 T:6528    INFO: CApplication::Create: calling g_mediaManager.Initialize()
08:41:55 T:1480   DEBUG: CRemoteControl::Connect - connecting to: 127.0.0.1:24000 ...
08:41:57 T:1480   ERROR: CRemoteControl::Connect - failed to connect
08:41:57 T:1480    INFO: CRemoteControl::Process - failed to connect to irss, will keep retrying every 5 seconds

Note this might not be the same problem as jordandk is seeing, there is definitely no CD in my machine.

UPDATE: OK it seems to be working again, not sure how/why, but the log from the working instance diverges from previous logs after this line:
Code:
09:22:42 T:7004    INFO: CApplication::Create: calling g_mediaManager.Initialize()

and instead logs out:
Code:
09:22:42 T:7004    INFO: CApplication::Create: returning CApplication::Initialize()
09:22:42 T:7004    INFO: CApplication::Initialize: entering CApplication::Initialize()
09:22:42 T:7004    INFO: CApplication::Initialize: calling g_curlInterface.Load()
09:22:42 T:7004   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/libcurl.dll)
09:22:42 T:7004    INFO: CApplication::Initialize: calling g_curlInterface.Unload()
09:22:42 T:7004    INFO: CApplication::Initialize: calling CApplication::StartServices()
09:22:42 T:7004  NOTICE: initializing playlistplayer
09:22:42 T:7004  NOTICE: DONE initializing playlistplayer
09:22:42 T:7004   DEBUG: DPMS: supported power-saving modes: OFF STANDBY
...
Reply
#19
This looks very like a hang polling the optical disks.

I've updated the XBMC.exe on my site to enhance the logging around the optical disk check. You might be interested to try it, though if your system is no longer hanging the info we'll get will be limited.

Incidentally, there's nothing "experimental" about this build. It's the same as the release version of Eden except for the extra logging, so you can use it for your regular film watching.
Reply
#20
Yes agreed - it seems to be connected to optical drives - managed to reproduce the problem again with your updated build (although it seems to be an intermittent problem):

Code:
20:07:36 T:10800    INFO: CMediaManager::Initialize: calling m_platformStorage->Initialize()
20:07:36 T:10800    INFO: CWin32StorageProvider::Initialize: calling CWIN32Util::GetDrivesByType
20:07:36 T:10800    INFO: CWin32StorageProvider::Initialize: called CWIN32Util::GetDrivesByType
20:07:36 T:10800    INFO: CWin32StorageProvider::Initialize: checking for DRIVE_CLOSED_MEDIA_PRESENT
20:07:36 T:10800    INFO: CWin32StorageProvider::Initialize: checking drive E:
20:07:36 T:8896   DEBUG: CRemoteControl::Connect - connecting to: 127.0.0.1:24000 ...
20:07:43 T:8896   ERROR: CRemoteControl::Connect - failed to connect
20:07:43 T:8896    INFO: CRemoteControl::Process - failed to connect to irss, will keep retrying every 5 seconds

At the same time that XBMC was hanging, trying to open the E: drive in Windows Explorer would also hang - not sure if one causes the other, or something else is causing both to hang.
Reply
#21
after using jhsrennie's modified exe file my XBMC runs on my new laptop for the first time.
Of course I knew it was coincidence. Second run hang as usual.
first one runs great, and didn't look like unstable. I did many different changes, and setups and it works smoothly. I've checked system setting and XBMC shows that it's running on Intel graphics, thou I've set to use Radeon card for xbmc.
Had some errors with scrapper connection, but that was nothing important.
First run log: http://pastebin.com/JrQf398b

after that I run XBMC second time, but now it stops as usual
second run log: http://pastebin.com/JkSVLK6h

logs are the same at the beginning
Reply
#22
@Wigash: your installation is hanging at a different place to sc84647's. It looks as though it's hanging loading the settings, which seems an odd place to stop.

I've added extra logging around the code that loads the settings and put the new version on my web site. Please will you download and run the new version and post the log it produces.

I'm afraid finding the problem is going to be a series of trying new builds until we pin down exactly where XBMC is hanging. Your patience is much appreciated :-)
Reply
#23
@sc84647: I've added even more detailed logging to try and spot where the hang is. I suspect it's acquiring the lock at line https://github.com/xbmc/xbmc/blob/Eden/x...r.cpp#L376

Can you grab the new XBMC.exe, run it and post the log.
Reply
#24
Hi, here is newest log
http://pastebin.com/qNnWpbf8

I thought those crashes were connected to 64bit Windows 7 or switchable graphics (intel's and radeon), but after XBMC runs I don't know what is all about?

If you want test some other version of app I will gladly test it!
Reply
#25
@Wigash: that looks really odd. I just can't see anything around the last line in your log that would cause the crash. I've added even more logging and popped another new version of XBMC.exe on my site. Please will you give this one a try and post the log. Thanks again for your help with this.

Can you also enable debug logging. You'll need to do this manually since XBMC won't start. Press Windows-R and in the Run dialog type:

Code:
notepad "%APPDATA%\xbmc\userdata\advancedsettings.xml"

Click OK and answer Yes when Notepad asks if you want to create a new file. Copy and paste the following into Notepad:

Code:
<advancedsettings>
  <loglevel>1</loglevel>
</advancedsettings>

Close Notepad and save the changes. This will increase the amount of detail in the log.
Reply
#26
OK - another freeze, using your latest build this time - here's the debug log:

http://pastebin.com/EAn6fMm5
Reply
#27
Hi,

I just installed Xbmc in Windows XP sp3. Just after install and during the first run the first thing I get is:

Image

I have turned on debug and run your special exe with extra logging. My log file is at:

http://pastebin.com/nDRUMdDQ

Is there anything I can do to help this run correctly?

Thank you very much,

Docfxit
Reply
#28
@Docfxit: you have a problem with the video driver. The relevant log entry is:

Code:
line 264: 264.15:53:04 T:5060   ERROR: CRenderSystemDX::CreateDevice - unable to create a device. 8876086A - D3DERR_NOTAVAILABLE (Not available)

Check control panel, Display, Settings tab, Advanced button, Troubleshoot tab and make sure the hardware acceleration slider is set to Full. If that doesn't work update the video driver to the latest version and try installing the latest version of DirectX from the MS web site: http://www.microsoft.com/downloads/detai...ceb6d8fa8d
Reply
#29
@sc84647: thanks, it looks as if the hang is happening at:

https://github.com/xbmc/xbmc/blob/master...l.cpp#L191

We'll have to trawl the MS documentation to try and see what's going on.
Reply
#30
(2012-06-14, 10:39)jhsrennie Wrote: @Docfxit: you have a problem with the video driver. The relevant log entry is:

Code:
line 264: 264.15:53:04 T:5060   ERROR: CRenderSystemDX::CreateDevice - unable to create a device. 8876086A - D3DERR_NOTAVAILABLE (Not available)

Check control panel, Display, Settings tab, Advanced button, Troubleshoot tab and make sure the hardware acceleration slider is set to Full. If that doesn't work update the video driver to the latest version and try installing the latest version of DirectX from the MS web site: http://www.microsoft.com/downloads/detai...ceb6d8fa8d

Changing the hardware acceleration slider to full solved the problem. It's running now. It looks really great. I can't wait to figure out what I can do to enhance my experience with it.

Thank you very much,

Docfxit

Reply

Logout Mark Read Team Forum Stats Members Help
XBMC freezes on startup1