Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cec-tray crashes with System.ObjectDisposedException with Kodi #15

Open
lukjak opened this issue May 21, 2023 · 1 comment
Open

cec-tray crashes with System.ObjectDisposedException with Kodi #15

lukjak opened this issue May 21, 2023 · 1 comment

Comments

@lukjak
Copy link

lukjak commented May 21, 2023

Hello,

cec-tray (6.0.2) crashes with exception when Kodi (https://kodi.tv) application starts. Please mind that I use my own Kodi build with all CEC support disabled and which does not load cec.dll - so there is no conflict here.

System.ObjectDisposedException
   w System.Windows.Forms.Control.CreateHandle()
   w System.Windows.Forms.Form.CreateHandle()
   w LibCECTray.ui.CECTray.SetVisibleCore(Boolean)
   w System.Windows.Forms.Control.Hide()
   w LibCECTray.controller.Actions.ProcessEventHandler(System.Object, LibCECTray.controller.actions.UpdateEvent)
   w System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   w System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   w System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   w System.Threading.ThreadHelper.ThreadStart()

Error information (translated from Event log entry):

Application: cec-tray.exe, version: 6.0.2.0, timestamp: 0x5f0c364a
Name of the module causing error: KERNELBASE.dll, version: 10.0.22621.1635, timestamp: 0x61869dd2
Exception code: 0xe0434352
Error offset: 0x000000000006536c
Path to application causing the error: C:\Program Files (x86)\Pulse-Eight\USB-CEC Adapter\x64\netfx\cec-tray.exe
Path to module causing the error: C:\Windows\System32\KERNELBASE.dll
@lukjak
Copy link
Author

lukjak commented May 26, 2023

Background for this problem:

My current TV/Amp/PC setup is not working quite correctly with the current Kodi (20.1 libcec 4.0.4 or 4.0.7) - xbmc/xbmc#23260. I wanted to try to use cec-tray for controlling Kodi instead of built-in support, as it seems to always work correctly, but I observed that cec-tray is closed immediately upon Kodi startup. I thought it is some CEC clients collision. So I build a Kodi version totally without CEC support (it does not require cec.dll to run at all) and observed the same issue with cec-tray. Then I discovered the problem in Windows Event Log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant