When trying to play HD .mkv files XBMC freezes after about 5 seconds does anybody have a fix for this. When looking in the log I see memory leaks. Here is part of the log when trying to play a .mkv and saying there has been memory leaks:
22:12:14 T:776 M:2147483647 ERROR: CWin32DirectSound::CWin32DirectSound - cannot create secondary (stream)buffer (DSERR_INVALIDCALL)
22:12:14 T:776 M:2147483647 ERROR: CThread:
taticThread : Access violation at 0x0041656e: Reading location 0x00000000
22:12:14 T:776 M:2147483647 NOTICE: Closing audio device
22:12:14 T:776 M:2147483647 ERROR: CThread:
taticThread : Access violation at 0x004164a9: Reading location 0x00000000
22:12:14 T:776 M:2147483647 DEBUG: CThread:
taticThread, deleting thread graphic context
22:12:14 T:776 M:2147483647 DEBUG: Thread 776 terminating
22:12:14 T:5132 M:2147483647 DEBUG: Alloc resources: 2.75ms (0.00 ms skin load, 0.20 ms preload)
22:12:14 T:4988 M:2147483647 NOTICE: fps: 23.975986, pwidth: 1280, pheight: 688, dwidth: 1280, dheight: 688
22:12:14 T:4988 M:2147483647 DEBUG: CDVDPlayerVideo::OutputPicture - change configuration. 1280x688. framerate: 23.98
22:12:14 T:4988 M:2147483647 NOTICE: Display resolution AUTO : 1680x1050 (Full Screen) (12)
22:12:14 T:4988 M:2147483647 WARNING: Upscale: selected algorithm 1
22:12:14 T:5132 M:2147483647 DEBUG: Activating window ID: 12005
22:12:14 T:5132 M:2147483647 DEBUG: Checking if window ID 12005 is locked.
22:12:14 T:5132 M:2147483647 INFO: Loading skin file: VideoFullScreen.xml
22:12:14 T:5132 M:2147483647 DEBUG: Load VideoFullScreen.xml: 3.72ms (0.71 ms xml load)
22:12:14 T:5132 M:2147483647 DEBUG: Alloc resources: 13.16ms (3.84 ms skin load, 0.07 ms preload)
22:12:14 T:5132 M:2147483647 INFO: Loading skin file: VideoOSD.xml
22:12:14 T:5132 M:2147483647 DEBUG: Load VideoOSD.xml: 2.08ms (0.60 ms xml load)
22:12:14 T:5132 M:2147483647 DEBUG: Alloc resources: 54.12ms (0.00 ms skin load, 0.27 ms preload)
22:12:14 T:5132 M:2147483647 INFO: Loading skin file: VideoOSDSettings.xml
22:12:14 T:5132 M:2147483647 DEBUG: Load VideoOSDSettings.xml: 1.22ms (0.42 ms xml load)
22:12:14 T:5132 M:2147483647 DEBUG: Alloc resources: 16.09ms (0.00 ms skin load, 0.13 ms preload)
22:12:14 T:5132 M:2147483647 INFO: Loading skin file: VideoOSDSettings.xml
22:12:14 T:5132 M:2147483647 DEBUG: Load VideoOSDSettings.xml: 1.24ms (0.43 ms xml load)
22:12:14 T:5132 M:2147483647 DEBUG: Alloc resources: 0.10ms (0.00 ms skin load, 0.03 ms preload)
22:12:14 T:5132 M:2147483647 DEBUG: CGUIFontTTF::Load Scaled size of font C:\XBMC\media\Fonts\Arial.ttf (51.041668): width = 176, height = 69, lineheight = 59
22:12:14 T:5132 M:2147483647 NOTICE: GL: Selecting YUV 2 RGB Progressive Shader
22:12:14 T:5132 M:2147483647 DEBUG: GL: Shader compilation log:
22:12:14 T:5132 M:2147483647 DEBUG: Vertex shader was successfully compiled to run on hardware.
22:12:15 T:5132 M:2147483647 DEBUG: GL: Shader compilation log:
22:12:15 T:5132 M:2147483647 DEBUG: Fragment shader was successfully compiled to run on hardware.
22:12:15 T:5132 M:2147483647 NOTICE: GL: OpenGL version 2.1 detected
22:12:15 T:5132 M:2147483647 NOTICE: GL: NPOT texture support detected
22:12:15 T:5132 M:2147483647 DEBUG: GL: Creating Y NPOT texture of size 1280 x 688
22:12:15 T:5132 M:2147483647 DEBUG: GL: Creating U NPOT texture of size 640 x 344
22:12:15 T:5132 M:2147483647 DEBUG: GL: Creating V NPOT texture of size 640 x 344
22:12:15 T:5132 M:2147483647 DEBUG: GL: Creating Y NPOT texture of size 1280 x 688
22:12:15 T:5132 M:2147483647 DEBUG: GL: Creating U NPOT texture of size 640 x 172
22:12:15 T:5132 M:2147483647 DEBUG: GL: Creating V NPOT texture of size 640 x 172
22:12:15 T:5132 M:2147483647 DEBUG: GL: Creating Y NPOT texture of size 1280 x 688
22:12:15 T:5132 M:2147483647 DEBUG: GL: Creating U NPOT texture of size 640 x 172
22:12:15 T:5132 M:2147483647 DEBUG: GL: Creating V NPOT texture of size 640 x 172
22:12:15 T:5132 M:2147483647 DEBUG: GL: Creating Y NPOT texture of size 1280 x 688
22:12:15 T:5132 M:2147483647 DEBUG: GL: Creating U NPOT texture of size 640 x 344
22:12:15 T:5132 M:2147483647 DEBUG: GL: Creating V NPOT texture of size 640 x 344
22:12:15 T:5132 M:2147483647 DEBUG: GL: Creating Y NPOT texture of size 1280 x 688
22:12:15 T:5132 M:2147483647 DEBUG: GL: Creating U NPOT texture of size 640 x 172
22:12:15 T:5132 M:2147483647 DEBUG: GL: Creating V NPOT texture of size 640 x 172
22:12:15 T:5132 M:2147483647 DEBUG: GL: Creating Y NPOT texture of size 1280 x 688
22:12:15 T:5132 M:2147483647 DEBUG: GL: Creating U NPOT texture of size 640 x 172
22:12:15 T:5132 M:2147483647 DEBUG: GL: Creating V NPOT texture of size 640 x 172
22:12:17 T:816 M:2147483647 DEBUG: Alloc resources: 9.56ms (0.00 ms skin load, 0.15 ms preload)
22:12:20 T:4988 M:2147483647 INFO: CDVDPlayerVideo - Stillframe detected, switching to forced 23.975986 fps
22:12:23 T:5132 M:2147483647 DEBUG: SDLKeyboard found something unknown (unicode <> printable ASCII): scancode: 56, sym: 308, unicode: 0, modifier: 4096
22:12:24 T:5132 M:2147483647 DEBUG: CApplication::OnKey: 61604 pressed, action is 0
22:12:27 T:5132 M:2147483647 NOTICE: Storing total System Uptime
22:12:27 T:5132 M:2147483647 NOTICE: Saving settings
22:12:27 T:5132 M:2147483647 NOTICE: stop all
22:12:27 T:5132 M:2147483647 DEBUG: CNetwork::NetworkMessage - Stopping network services
22:12:27 T:5132 M:2147483647 NOTICE: ES: Stopping event server
22:12:28 T:2892 M:2147483647 NOTICE: ES: UDP Event server stopped
22:12:28 T:2892 M:2147483647 DEBUG: CThread:
taticThread, deleting thread graphic context
22:12:28 T:2892 M:2147483647 DEBUG: Thread 2892 terminating
22:12:28 T:5132 M:2147483647 NOTICE: stop dvd detect media
22:12:28 T:5292 M:2147483647 DEBUG: CThread:
taticThread, deleting thread graphic context
22:12:28 T:5292 M:2147483647 DEBUG: Thread 5292 terminating
22:12:28 T:5132 M:2147483647 NOTICE: stop mplayer
22:12:28 T:5132 M:2147483647 NOTICE: CDVDPlayer::CloseFile()
22:12:28 T:5132 M:2147483647 NOTICE: DVDPlayer: waiting for threads to exit
22:12:28 T:2900 M:2147483647 NOTICE: CDVDPlayer::OnExit()
22:12:28 T:2900 M:2147483647 NOTICE: DVDPlayer: closing audio stream
22:12:28 T:2900 M:2147483647 NOTICE: Closing audio stream
22:12:28 T:2900 M:2147483647 NOTICE: waiting for audio thread to exit
22:12:28 T:2900 M:2147483647 NOTICE: Deleting audio codec
22:12:28 T:2900 M:2147483647 NOTICE: DVDPlayer: closing video stream
22:12:28 T:2900 M:2147483647 NOTICE: Closing video stream
22:12:28 T:2900 M:2147483647 NOTICE: waiting for video thread to exit
22:12:28 T:4988 M:2147483647 ERROR: - Timeout waiting for previous frame to be presented
22:12:28 T:4988 M:2147483647 NOTICE: thread end: video_thread
22:12:28 T:4988 M:2147483647 DEBUG: CThread:
taticThread, deleting thread graphic context
22:12:28 T:4988 M:2147483647 DEBUG: Thread 4988 terminating
22:12:28 T:2900 M:2147483647 NOTICE: deleting video codec
22:12:28 T:2900 M:2147483647 NOTICE: DVDPlayer: closing video stream
22:12:28 T:2900 M:2147483647 NOTICE: Closing subtitle stream
22:12:28 T:2900 M:2147483647 NOTICE: CDVDPlayer::OnExit() deleting demuxer
22:12:28 T:2900 M:2147483647 NOTICE: CDVDPlayer::OnExit() deleting input stream
22:12:28 T:2900 M:2147483647 DEBUG: CThread:
taticThread, deleting thread graphic context
22:12:28 T:2900 M:2147483647 DEBUG: Thread 2900 terminating
22:12:28 T:5132 M:2147483647 NOTICE: DVDPlayer: finished waiting
22:12:28 T:5132 M:2147483647 NOTICE: CDVDPlayerVideo::~CDVDPlayerVideo - uninitting video device
22:12:28 T:5132 M:2147483647 NOTICE: clean cached files!
22:12:28 T:5132 M:2147483647 NOTICE: unload skin
22:12:28 T:5132 M:2147483647 NOTICE: stop python
22:12:28 T:5132 M:2147483647 NOTICE: stopped
22:12:28 T:5132 M:2147483647 NOTICE: destroy
22:12:28 T:5132 M:2147483647 NOTICE: unload sections
22:12:28 T:5132 M:2147483647 DEBUG: SECTION:UnloadAll(SECTION: LCODE)
22:12:28 T:5132 M:2147483647 DEBUG: SECTION:UnloadAll(DLL: Q:\system\ImageLib.dll)
22:12:28 T:5132 M:2147483647 DEBUG: Q:\system\ImageLib.dll (base 075F0000): Detected memory leaks: 10 leaks
22:12:28 T:5132 M:2147483647 DEBUG: leak caller address 75f1edc, size 17120, counter 10
22:12:28 T:5132 M:2147483647 DEBUG: ImageLib.dll: Total bytes leaked: 17120
22:12:28 T:5132 M:2147483647 DEBUG: SECTION:UnloadAll(DLL: Q:\system\players\dvdplayer\avutil-49.dll)
22:12:28 T:5132 M:2147483647 DEBUG: SECTION:UnloadAll(DLL: Q:\system\players\dvdplayer\avcodec-51.dll)
22:12:28 T:5132 M:2147483647 DEBUG: SECTION:UnloadAll(DLL: Q:\system\players\dvdplayer\avformat-52.dll)
22:12:28 T:5132 M:2147483647 DEBUG: SECTION:UnloadAll(DLL: Q:\system\players\dvdplayer\swscale-0.5.0.dll)
22:12:28 T:5132 M:2147483647 DEBUG: SECTION:UnloadAll(DLL: Q:\system\players\dvdplayer\libdts.dll)
22:12:28 T:5132 M:2147483647 DEBUG: Q:\system\players\dvdplayer\libdts.dll (base 06820000): Detected memory leaks: 1 leaks
22:12:28 T:5132 M:2147483647 DEBUG: leak caller address 682611d, size 60, counter 1
22:12:28 T:5132 M:2147483647 DEBUG: libdts.dll: Total bytes leaked: 60
22:12:28 T:5132 M:2147483647 DEBUG: SECTION:UnloadAll(DLL: Q:\system\players\dvdplayer\liba52.dll)
22:12:28 T:5132 M:2147483647 DEBUG: Q:\system\players\dvdplayer\liba52.dll (base 02C00000): Detected memory leaks: 1 leaks
22:12:28 T:5132 M:2147483647 DEBUG: leak caller address 2c0812a, size 56, counter 1
22:12:28 T:5132 M:2147483647 DEBUG: liba52.dll: Total bytes leaked: 56
22:12:28 T:5132 M:2147483647 INFO: lastfm destroyed
22:12:28 T:5132 M:2147483647 NOTICE: application stopped...