Unhandled "null object reference" crash in Mixer/VolumeHandler (not power setting related)

Discussion in '1.9.x' started by Stilez, December 17, 2014.

  1. Stilez

    Stilez Portal Member

    Joined:
    November 19, 2014
    Messages:
    16
    Likes Received:
    1
    Ratings:
    +1 / 1
    Home Country:
    European Union European Union
    MediaPortal Version: 1.9.0

    Description
    Apologies for posting this if it's the wrong place to do so, or if I should do more on this before posting.

    Earlier today I was told MP 1.9.0 on Win 8.1 x64 had crashed. When I checked, the event log showed it had crashed on a dozen occasions not just once, and almost always the same place. It's also been stable for lengthy periods. I have tried several times to narrow down and reproduce it, but I haven't been able to reproduce the crash circumstances consistently.

    Having said that, the fault seems well defined and well located according to the logs, and the MP log says it's in "Core" (assuming that means what it sounds like). The only reports of exceptions I can find in the mixer/setvolume area are due to power management, but this exception happens when the display is still on, and the PC concerned has display power set to "never" timeout in Power Control Panel, so it may not be the same issue. This is what I have; the event reports all look identical.

    SYSTEM EVENT LOG:

    Application: MediaPortal.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.NullReferenceException
    Stack:
    at MediaPortal.Mixer.Mixer.set_Volume(Int32)
    at MediaPortal.Player.VolumeHandler.SetVolume(Int32)
    at MediaPortal.Player.VolumeHandler.set_Volume(Int32)
    at MyVolume.MyVolume.loadVolume()
    at MyVolume.MyVolume.run()
    at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
    at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
    at System.Threading.ThreadHelper.ThreadStart()
    MP1 log crash entries and surrounding activity:

    [2014-12-17 10:51:55,500] [Log ] [MPMain ] [INFO ] - g_Player.OnStarted() C:\ProgramData\Team MediaPortal\MediaPortal TV Server\timeshiftbuffer\live3-0.ts.tsbuffer media:TV
    [2014-12-17 10:51:55,652] [Log ] [MPMain ] [INFO ] - g_Player.OnStopped()
    [2014-12-17 10:51:55,658] [Log ] [MPMain ] [INFO ] - RadioRecorded:OnPlayRecordingBackStopped TV C:\ProgramData\Team MediaPortal\MediaPortal TV Server\timeshiftbuffer\live3-0.ts.tsbuffer
    [2014-12-17 10:51:55,660] [Log ] [MPMain ] [INFO ] - TVHome:turn tv off
    [2014-12-17 10:51:55,864] [Log ] [MPMain ] [INFO ] - TvRecorded:OnPlayRecordingBackStopped TV C:\ProgramData\Team MediaPortal\MediaPortal TV Server\timeshiftbuffer\live3-0.ts.tsbuffer
    [2014-12-17 10:51:55,872] [Log ] [MPMain ] [INFO ] - TSReaderPlayer: Cleanup DShow graph False
    [2014-12-17 10:51:55,898] [Log ] [MPMain ] [INFO ] - TSReaderPlayer: Cleanup Get hr value -2147467262
    [2014-12-17 10:51:55,900] [Log ] [MPMain ] [INFO ] - Disconnecting all pins from filter Enhanced Video Renderer
    [2014-12-17 10:51:55,900] [Log ] [MPMain ] [INFO ] - Disconnecting all pins from filter Default DirectSound Device
    [2014-12-17 10:51:55,901] [Log ] [MPMain ] [INFO ] - Disconnecting all pins from filter LAV Video Decoder
    [2014-12-17 10:51:55,902] [Log ] [MPMain ] [INFO ] - Disconnecting pin Output
    [2014-12-17 10:51:55,902] [Log ] [MPMain ] [INFO ] - Not connected
    [2014-12-17 10:51:55,904] [Log ] [MPMain ] [INFO ] - Disconnecting all pins from filter MPEG Audio Decoder
    [2014-12-17 10:51:55,904] [Log ] [MPMain ] [INFO ] - Disconnecting pin XForm Out
    [2014-12-17 10:51:55,904] [Log ] [MPMain ] [INFO ] - Not connected
    [2014-12-17 10:51:55,905] [Log ] [MPMain ] [INFO ] - Disconnecting all pins from filter TsReader
    [2014-12-17 10:51:55,905] [Log ] [MPMain ] [INFO ] - Disconnecting pin Audio
    [2014-12-17 10:51:55,905] [Log ] [MPMain ] [INFO ] - Not connected
    [2014-12-17 10:51:55,905] [Log ] [MPMain ] [INFO ] - Disconnecting pin Video
    [2014-12-17 10:51:55,905] [Log ] [MPMain ] [INFO ] - Not connected
    [2014-12-17 10:51:55,905] [Log ] [MPMain ] [INFO ] - Disconnecting pin Subtitle
    [2014-12-17 10:51:55,906] [Log ] [MPMain ] [INFO ] - Not connected
    [2014-12-17 10:51:55,917] [Log ] [MPMain ] [INFO ] - TSReaderPlayer: Disabling DX9 exclusive mode
    [2014-12-17 10:51:55,917] [Log ] [MPMain ] [INFO ] - Main: GUI_MSG_SWITCH_FULL_WINDOWED message is obsolete.
    [2014-12-17 10:51:55,921] [Log ] [MPMain ] [INFO ] - tv home init:BBC ONE Lon done
    [2014-12-17 10:51:55,952] [Error ] [MyVolumeThread] [ERROR] - MediaPortal: Unhandled exception occured
    [2014-12-17 10:51:55,954] [Log ] [MyVolumeThread] [ERROR] - Exception: System.NullReferenceException: Object reference not set to an instance of an object.
    at MediaPortal.Mixer.Mixer.set_Volume(Int32 value)
    at MediaPortal.Player.VolumeHandler.SetVolume(Int32 volume)
    at MediaPortal.Player.VolumeHandler.set_Volume(Int32 value)
    at MyVolume.MyVolume.loadVolume()
    at MyVolume.MyVolume.run()
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart() Message: Object reference not set to an instance of an object. Site : Void set_Volume(Int32) Source : Core Stack Trace: at MediaPortal.Mixer.Mixer.set_Volume(Int32 value)
    at MediaPortal.Player.VolumeHandler.SetVolume(Int32 volume)
    at MediaPortal.Player.VolumeHandler.set_Volume(Int32 value)
    at MyVolume.MyVolume.loadVolume()
    at MyVolume.MyVolume.run()
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()

    [2014-12-17 10:52:07,611] [Log ] [MPMain ] [INFO ] - TvNotify:LoadNotifies​

    While browsing the logs, I also noticed a second error a few times (not often and not apparently connected), so I'm posting that one also, in case it's meaningful to someone else, perhaps some kind of memory access issue. Doesn't appear to be related to the main issue but I could be mistaken.



    Faulting application name: MediaPortal.exe, version: 1.9.0.0, time stamp: 0x54168047
    Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
    Exception code: 0xc0000005
    Fault offset: 0x1e63c2ee
    Faulting process id: 0x1a18
    Faulting application start time: 0x01d019e7670fce0f
    Faulting application path: C:\Program Files (x86)\MediaPortal\MediaPortal\MediaPortal.exe
    Faulting module path: unknown​

    As I said, I have tried to figure out reproduction steps and whether I could confirm if it was in an extension or core (the MP1 log says "Source:Core" but I don't know how much to read into it), but abjectly failed, so I'm reporting it here instead. If there's more info I could provide that would help, please say - I'm reporting at this point mainly because of the apparent clear description and location of the error.

    Steps to Reproduce:
    Tried to find a reliable means to reproduce but could not - see description.
     
    Last edited: December 17, 2014
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,275
    Likes Received:
    6,223
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,235 / 9
    Home Country:
    France France
    Show System Specs
    Hi :)
    You forgot to put full log lol
    Can you retry with debug first option ?
    Also do you have a plugin (MyVolumeThread) or maybe it's from MP but i can't recall that.
     
  4. Stilez

    Stilez Portal Member

    Joined:
    November 19, 2014
    Messages:
    16
    Likes Received:
    1
    Ratings:
    +1 / 1
    Home Country:
    European Union European Union
    Full log didn't seem to say anything else useful :) - attach it anyway?

    I have two extensions with similar names - "MyVolume" and "VolumeControl" - I uninstalled both in case those were responsible, was that the right thing to do?

    I also set log mode to "debug" instead of "info" hoping this will help, I think that's what you meant. (The hardware is high spec - quad core Haswell + lots of fast RAM - so it won't cause problems to increase the logging level).

    Now watch and see what happens?
     
    Last edited: December 19, 2014
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!