XBMC stops working.

x64 Replacement/Alternative to Microsoft's IntelliMouse application.
Forum rules
Please read the forum rules before posting for the first time.
The more information you can provide, the quicker and more accurately someone can help.
NOTE: To reduce spam, new users can not post links, files or images until they have at least 4 posts.
Post Reply
JoernSchmidt
New User
Posts: 2
Joined: Mon Aug 30, 2021 3:28 pm

XBMC stops working.

Post by JoernSchmidt »

Mouse Information (brand/model): Logitech M510, 5 buttons (I use 2 lateral buttons for changing between desktops).
Relevant Computer Information (CPU, RAM etc): Dell G5 32 Gb RAM, I7.
Did the problem occur after an upgrade of XMBC? (If so, from what version?): Not clear, but it may be, because the problem appeared weeks ago.
Did the problem occur after a Windows update/upgrade? (If so, from what version?): Not clear, but it may be, because the problem appeared weeks ago.
How long have you used XMBC?: 1.5 years
What language and keyboard layout do you use in Windows?: As it is a notebook, I use the english keybord (notebook) or an external keyboard (Portuguese) from Microsoft.

The problem occurs that XMBC changes to "red X" and stops answering the special requests. All programmed functions stop working.I mainly use the lateral buttons for disctinct applications.:

I´ve tried to find in the forum for similar problems, and I´ve noticed only 1 discussion with a problem that may be related, but it´s older (more than 2 years) and I was unsure to simply attach my problem to it.

Error messages are:
TimerThread: Error in timer thread message queue
HookThreadProc[0x2968]: Error in hook thread message queue

Log information (relevant, I use the portable version):

Code: Select all

30-08-2021 13:48:05.983> X-Mouse Button Control v2.19.2 (x64) Startup. Commandline ''
30-08-2021 13:48:05.989> Running in medium integrity mode (0x00002000)
30-08-2021 13:48:06.000> Loaded 26 application specific profiles (23 normal and 3 custom window).
30-08-2021 13:48:06.001> Running on Microsoft Windows 10 Enterprise Edition (build 19042), 64-bit, Hook Timeout: 1000 ms
30-08-2021 13:48:06.001> Startup folder: 'C:\_util\X-Mouse_64bit\XMBCSettings.xml'
30-08-2021 13:48:06.001> Enabling portable mode.
30-08-2021 13:48:06.002> Creating/using settings file in 'C:\_util\X-Mouse_64bit\XMBCSettings.xml'
30-08-2021 13:48:06.002> As X-Mouse Button Control is not running from an OS protected location (such as 'C:\Program Files\') some features will not work. See the FAQ for more information.
30-08-2021 13:48:06.125> HookThreadProc[0x2968]: Using keyboard language 0xF0010409
30-08-2021 13:48:06.578> TimerThread: Error in timer thread message queue. (Error code 1400: Invalid window handle. )
30-08-2021 13:48:17.201> HookThreadProc[0x2968]: Error in hook thread message queue. (Error code 1400: Invalid window handle. )
30-08-2021 13:50:06.198> You are using the latest available version of X-Mouse Button Control.
User avatar
phil
Site Admin
Posts: 7627
Joined: Sun Apr 06, 2003 11:12 pm

Re: XBMC stops working.

Post by phil »

Hi,

OK something looks to have gone wrong while initializing XMBC's threads. I have also had this happen very occasionally, normally when resuming from sleep. This appears to be at application startup (from the log) is that right?

I may have already fixed this in an internal alpha/beta - but I haven't had a chance to roll the changes into a production release for far too long now. I will PM you with a test version to see if it helps (and if it does not help, it may at least give me more information in the log or the debug log).

EDIT: I also will add that the version of XMBC you are running (2.19.2) has been around since early 2019 and has not changed recently - so any changes are not related to any "upgrade" of XMBC. Windows though is a different matter. Maybe the beta with extra logging will help diagnose/fix the problem - let me know!

Regards,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
JoernSchmidt
New User
Posts: 2
Joined: Mon Aug 30, 2021 3:28 pm

Re: XBMC stops working.

Post by JoernSchmidt »

Hi Phil,

I continue with the problem. I also believed, that it could be related to my W10 installation, which was rather old (dirty)... But now I have a fresh installation and it still changes to "Red" (disabled).

I´ve installed v2.20 B4 and the same problem...

This are the last lines of the 2.20 log file:

12-07-2022 11:25:00.032> Loading Timed Button bitmaps...
12-07-2022 11:25:00.036> Loading layer bitmaps...
12-07-2022 11:25:00.042> Loading cursors...
12-07-2022 11:25:00.044> Creating overlay cursors...
12-07-2022 11:25:00.045> Loaded cursors finished (Called from SPIThread Constructor ThreadID 0x00004C44)...
12-07-2022 11:25:00.045> Start SPIThread...
12-07-2022 11:25:00.045> SPI Thread [0x3AC] has started.
12-07-2022 11:25:00.045> HookThreadProc[0x4C44]: Creating new SendInput queue...
12-07-2022 11:25:00.045> SendInput Thread [0x3B0] has started.
12-07-2022 11:25:00.045> HookThreadProc[0x4C44]: Creating new brightness OSD...
12-07-2022 11:25:00.045> SPIThread[0x848]: Running thread...
12-07-2022 11:25:00.045> SendInputThread: Running thread ID 0x4C24.
12-07-2022 11:25:00.046> HookThreadProc[0x4C44]: Using keyboard language 0x04090409
12-07-2022 11:25:00.046> HookThreadProc[0x4C44]: Installing low level mouse hook
12-07-2022 11:25:00.046> HookThreadProc[0x4C44]: Installing low level key hook (for layer modifier keys)
12-07-2022 11:25:00.047> SetMouseHook: Started hook thread [0x374]...
12-07-2022 11:25:00.293> TimerThread: Error in timer thread message queue. (Error code 1400: Invalid window handle. )
12-07-2022 11:25:00.293> Removing any active XMBCHook Timers...
12-07-2022 11:25:02.722> HookThreadProc[0x4C44]: Error in hook thread message queue. (Error code 1400: Invalid window handle. )
12-07-2022 11:25:02.722> HookThreadProc[0x4C44]: Finished the message loop. Cleaning up...
12-07-2022 11:25:02.722> RemoveHooks: Removing hooks...
12-07-2022 11:25:02.724> HookThreadProc[0x4C44]: Removed hooks...
12-07-2022 11:25:02.725> Requesting SendInput Thread [0x3B0] (ID 0x4C24) to exit...
12-07-2022 11:25:02.729> SendInputThread: Received exit request...
12-07-2022 11:25:02.729> SendInputThread: Exiting SendInput thread.
12-07-2022 11:25:02.734> SendInput thread [0x3B0] exited successfully.
12-07-2022 11:25:02.735> Requesting SPI Thread [0x3AC] (ID 0x848) to exit...
12-07-2022 11:25:02.770> SPIThread[0x848]: Received exit request...
12-07-2022 11:25:02.770> SPIThread[0x848]: Exiting thread.
12-07-2022 11:25:02.770> SPI thread [0x3AC] exited successfully.
12-07-2022 11:25:02.770> CCursors::DestroyCursors - Destroying cursors...
12-07-2022 11:25:02.770> HookThreadProc[0x4C44]: Finished cleaning up.

May be you understand what I´m missing or doing wrong.

Greatings,

Joern
User avatar
phil
Site Admin
Posts: 7627
Joined: Sun Apr 06, 2003 11:12 pm

Re: XBMC stops working.

Post by phil »

I guess the common thing between both is the log line that says Error code 1400: Invalid window handle... This must be relevant but it will take some tracing through the code so figure out what that window handle is meant to be for and maybe why its invalid (although thats going to be more tricky). I would have expected it to b XMBC's window handle, but cant see how that could be invalid.

So to confirm, this is on a fresh install of Windows 10, normal desktop environment (nothing funky like remote desktop/citrix)?

I wonder, if it could be related to another issue I've had reported recently where XMBC is actually loaded before the user session is created (causing a problem on the lock screen and perhaps this too). If the session has not been loaded yet, then maybe the window its trying to reference hasn't been created yet either (thus invalid) - but if that were the case, Id expect it not to even have a window handle to check - so I may be grabbing the wrong straw here!

I'm going to have to try and find some time to look into this in detail!
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
Post Reply