XMBC doesn't start, W10 Enterprise

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 or images until they have at least 4 posts.
Post Reply
mk9pa
New User
Posts: 6
Joined: Thu Apr 16, 2020 6:05 pm

XMBC doesn't start, W10 Enterprise

Post by mk9pa »

XMBC Version: 2.19.1
Windows Version: Windows 10 Enterprise Edition (build 17763)
Mouse Information (brand/model): Logitech TrackMan Marble USB
Relevant Computer Information (CPU, RAM etc): Core i7, 16 GB RAM
Did the problem occur after an upgrade of XMBC? (If so, from what version?): no
Did the problem occur after a Windows update/upgrade? (If so, from what version?): no
How long have you used XMBC?: used for a few years but not since 2017
What language and keyboard layout do you use in Windows?: English; see below for keyboard layout

Clear description of the problem - try and include as much information as possible, including what button and mappings you are having problems with (if applicable).: First time installation of XMBC on this laptop. It's in a corporate setting with high security. Was able to get temporary admin rights to install.

Bottom line issue: XMBC does not start no matter what I do. I can try to run it from the Start menu, or use the Command Window to start it with a variety of command line options. It immediately exits and the icon never appears on the task bar or in the hidden set, and Task Manager does not show that it is running. It is installed as a Windows Service and is enabled, according to msconfig.

There was an initial issue that the installation did not leave a XMBCSettings.xml in my user profile folder. Log file showed a missing settings file. I copied an old one from a few years ago into the profile folder, which fixed that issue.

Still XMBC does not start, same symptoms (no icon, nothing in Task Manager). Cannot get it running. I ran it manually from Command Window using the /debug option, see below (actual user name blanked out for security purposes).

Code: Select all

16-04-2020 09:55:05.804> X-Mouse Button Control v2.19.1 (x64) Startup. Commandline '/debug /installed /notportable'
16-04-2020 09:55:05.808> Running in high integrity mode (0x00003000)
16-04-2020 09:55:05.809> Loaded 0 application specific profiles (0 normal and 0 custom window).
16-04-2020 09:55:05.809> Enabling extra debug logging. X-Mouse Button Control v2.19.1 (x64). Hook Timeout: 1000 ms
16-04-2020 09:55:05.809> Monitor \\.\DISPLAY1: DPI (X,Y) = 96, 96
16-04-2020 09:55:05.809> Running on Microsoft Windows 10 Enterprise Edition (build 17763), 64-bit, Hook Timeout: 1000 ms
16-04-2020 09:55:05.809> X-Mouse Button Control is not running using an elevated administrative account (UAC elevation)
16-04-2020 09:55:05.809> Startup folder: 'C:\Program Files\Highresolution Enterprises\X-Mouse Button Control\'
16-04-2020 09:55:05.809> Settings (and log) folder: 'C:\Users\XXXXXX\AppData\Roaming\Highresolution Enterprises\XMouseButtonControl\'
16-04-2020 09:55:05.810> SPIThread Initial State: Wheel Lines 3, Swap Buttons 0.
16-04-2020 09:55:05.819> Warning: SendSPI(3, 0) called but the thread is not running!
16-04-2020 09:55:05.920> SPI is already lines: 3, state: 0 - no need for further change
16-04-2020 09:55:05.920> Resest Cursor
16-04-2020 09:55:05.923> SPIThread: Resetting cursors
16-04-2020 09:55:05.923> No keyboard layout loaded, nothing to unload.
16-04-2020 09:55:05.923> Current language is 0x04090409
16-04-2020 09:55:05.924> Checking installed keyboard layout: 0x04090409
16-04-2020 09:55:05.924> Using keyboard language 0x04090409
16-04-2020 09:55:05.925> Resest Cursor
16-04-2020 09:55:05.927> Timer thread exited successfully.

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

Re: XMBC doesn't start, W10 Enterprise

Post by phil »

Hi, that log doesn't look particularly unusual - except for the fact that it exits when it shouldn't. I can only assume something is crashing. This is disappointing as there is supposed to be a crash catcher which should popup with a memory dump etc etc. However it seems this crash catcher has not been working for a while :(.

Unfortunately, the lack of information in the log does not give me many clues as to where it is going wrong. I wonder if it could be related to another issue I'm chasing that causes XMBC to crash/lock up on resume from sleep/hibernate - but I'm fairly sure thats to do with resetting things - that in this case have not been setup yet - I cant rule out a connection though.

I'm not sure exactly what to suggest -- you could try 2.18.8 or 2.19 (although 2.19 is likely to have the same problem). I believe the crash Im looking into is related to changes in 2.19 - maybe if this is related, 2.18.8 will work better for you.

I don't think the restricted environment should be any problem, and its normal for the settings file to not exist on installation - it should be created when applying your first settings changes (and until then the built in defaults are normally just fine).

I will factor this into my investigations - I have a feeling I may have already fixed it but I'm not ready to make that a public release as people are still testing it for me (its not something I have been able to reproduce here unfortunately).

Regards,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-9600k, Asus Z390-ROG, 16GB DDR4,
nVidia GeForce GTX 970, Evo 970 500Gb NVME, 2x2TB WD Black (RAID1)

mk9pa
New User
Posts: 6
Joined: Thu Apr 16, 2020 6:05 pm

Re: XMBC doesn't start, W10 Enterprise

Post by mk9pa »

Thanks Phil. I will try 2.18.8 but it might take a bit because I'll need to get temp admin privileges.

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

Re: XMBC doesn't start, W10 Enterprise

Post by phil »

Just a thought - why don't you try the portable version - that does not require admin to install and runs with most of the functionality of the installed XMBC (there are a few minimal exceptions). At least you will find out if it starts up successfully?

2.18.8 portable: https://www.highrez.co.uk/scripts/downl ... on=2180800
2.19 portable: https://www.highrez.co.uk/scripts/downl ... on=2190000
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-9600k, Asus Z390-ROG, 16GB DDR4,
nVidia GeForce GTX 970, Evo 970 500Gb NVME, 2x2TB WD Black (RAID1)

mk9pa
New User
Posts: 6
Joined: Thu Apr 16, 2020 6:05 pm

Re: XMBC doesn't start, W10 Enterprise

Post by mk9pa »

Hi Phil, I tried 2.18.8 portable and as with 2.19.x it did not start. Running it with the /debug flag produces the following in the log. Again no sign of it in Task Manager and no icon anywhere.

I also note that although it says it created settings file XMBCSettings.xml, that file did not actually get created in the run folder.

Code: Select all

20-04-2020 10:12:14.497> X-Mouse Button Control v2.18.8 (x64) Startup. Commandline '/debug'
20-04-2020 10:12:14.498> Running in medium integrity mode (0x00002000)
20-04-2020 10:12:14.498> Unable to find the default settings file 'C:\Users\XXXXXX\Downloads\XMouseButtonControl 2.18.8 Portable\64bit (x64)\XMBCSettings.xml' (Error code 2: The system cannot find the file specified. )
20-04-2020 10:12:14.498> HookDLL: Unable to load XML settings
20-04-2020 10:12:14.498> Enabling extra debug logging. X-Mouse Button Control v2.18.8 (x64). Hook Timeout: 1000 ms
20-04-2020 10:12:14.498> Monitor \\.\DISPLAY1: DPI (X,Y) = 96, 96
20-04-2020 10:12:14.498> Running on Microsoft Windows 10 Enterprise Edition (build 17763), 64-bit, Hook Timeout: 1000 ms
20-04-2020 10:12:14.498> X-Mouse Button Control is not running using an elevated administrative account (UAC elevation)
20-04-2020 10:12:14.499> Startup folder: 'C:\Users\XXXXXX\Downloads\XMouseButtonControl 2.18.8 Portable\64bit (x64)\XMBCSettings.xml'
20-04-2020 10:12:14.499> Enabling portable mode.
20-04-2020 10:12:14.499> Creating/using settings file in 'C:\Users\XXXXXX\Downloads\XMouseButtonControl 2.18.8 Portable\64bit (x64)\XMBCSettings.xml'
20-04-2020 10:12:14.499> 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.
20-04-2020 10:12:14.499> SPI is already (5, 0) - no need for further change
20-04-2020 10:12:14.500> No keyboard layout loaded, nothing to unload.
20-04-2020 10:12:14.500> Current language is 0x04090409
20-04-2020 10:12:14.500> Checking installed keyboard layout: 0x04090409
20-04-2020 10:12:14.500> Using keyboard language 0x04090409
20-04-2020 10:12:14.501> Timer thread exited successfully.
20-04-2020 10:12:19.501> Hook thread did not exit in a timely fashion!

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

Re: XMBC doesn't start, W10 Enterprise

Post by phil »

Oh damn thats not good - I perhaps mistakenly assumed this was related to the problem I'm chasing in 2.19.x but to be fair thats not been a startup problem, but after the PC resumes from sleep. And it was new in 2.19 so that leaves me a little stuck. I now have no idea what could be wrong - and that debug log is pretty useless - which means it must be going pop rather early on. I'll have to have a dig through the code and see whats going on - but I'm 99% sure its not related to the missing settings file. That only gets saved to the disk once you make a change (from default) and apply the settings.

The last sensible log is 20-04-2020 10:12:14.500> Using keyboard language 0x04090409... After that I believe it attempts to install the mouse hook - I suppose its possible that that is being blocked by something BUT that shouldn't kill the program - even if it fails to hook - it should log more than it is. I may have to add some more logging (I already have done that in my latest test version - but perhaps not quite in the right area for this problem). However, I'm afraid that this one is going to be another one that is impossible to reproduce - which makes any fixes more like guess work and rather tricky to get anywhere fast.

Not sure what else to suggest - I could send you my latest test version (built for portable mode) just to see what logging (if any) we get out and if it points to a particular problem. Maybe it is the locked down environment after all.
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-9600k, Asus Z390-ROG, 16GB DDR4,
nVidia GeForce GTX 970, Evo 970 500Gb NVME, 2x2TB WD Black (RAID1)

mk9pa
New User
Posts: 6
Joined: Thu Apr 16, 2020 6:05 pm

Re: XMBC doesn't start, W10 Enterprise

Post by mk9pa »

Sure, I can install portable mode any time and am willing to help debug.

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

Re: XMBC doesn't start, W10 Enterprise

Post by phil »

OK, I'll try and get a build to you tomorrow sometime.
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-9600k, Asus Z390-ROG, 16GB DDR4,
nVidia GeForce GTX 970, Evo 970 500Gb NVME, 2x2TB WD Black (RAID1)

mk9pa
New User
Posts: 6
Joined: Thu Apr 16, 2020 6:05 pm

Re: XMBC doesn't start, W10 Enterprise

Post by mk9pa »

Phil, here is the log from 2.20 Beta 2. It does not start up, same as before.

Code: Select all

20-04-2020 15:59:10.544> X-Mouse Button Control v2.20 Beta 2 (x64) Startup. Commandline '/debug'
20-04-2020 15:59:10.546> Running in medium integrity mode (0x00002000)
20-04-2020 15:59:10.546> Unable to find the default settings file 'C:\Users\XXXXXX\Downloads\XMouseButtonControl 2.20 Beta 2a Portable\64bit (x64)\XMBCSettings.xml' (Error code 2: The system cannot find the file specified. )
20-04-2020 15:59:10.546> HookDLL: Unable to load XML settings
20-04-2020 15:59:10.546> Enabling extra debug logging (from start-up). X-Mouse Button Control v2.20 Beta 2 (x64). Hook Timeout: 1000 ms
20-04-2020 15:59:10.547> Monitor \\.\DISPLAY1: DPI (X,Y) = 96, 96
20-04-2020 15:59:10.547> Running on Microsoft Windows 10 Enterprise Edition (build 17763), 64-bit, Hook Timeout: 1000 ms
20-04-2020 15:59:10.547> X-Mouse Button Control is not running using an elevated administrative account (UAC elevation)
20-04-2020 15:59:10.547> Startup folder: 'C:\Users\XXXXXX\Downloads\XMouseButtonControl 2.20 Beta 2a Portable\64bit (x64)\XMBCSettings.xml'
20-04-2020 15:59:10.547> Enabling portable mode.
20-04-2020 15:59:10.547> Creating/using settings file in 'C:\Users\XXXXXX\Downloads\XMouseButtonControl 2.20 Beta 2a Portable\64bit (x64)\XMBCSettings.xml'
20-04-2020 15:59:10.547> 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.
20-04-2020 15:59:10.547> SetMouseHook: Started timer thread [0x000002D4]...
20-04-2020 15:59:10.547> SPIThread Initial State: Wheel Lines 5, Swap Buttons 0.
20-04-2020 15:59:10.547> Destroying cursors...
20-04-2020 15:59:10.547> Loading cursors...
20-04-2020 15:59:10.561> Creating overlay cursors...
20-04-2020 15:59:10.561> Start SPIThread...
20-04-2020 15:59:10.561> SPI Thread [0x00000310] has started.
20-04-2020 15:59:10.561> SendInput Thread [0x00000314] has started.
20-04-2020 15:59:10.562> SPIThread: Running thread ID 0x00000444.
20-04-2020 15:59:10.562> SPI is already lines: 5, state: 0 - no need for further change
20-04-2020 15:59:10.562> CSPIThread: Reset Cursor
20-04-2020 15:59:10.562> SendInputThread: Running thread ID 0x00002DA0.
20-04-2020 15:59:10.562> SPIThread: Resetting cursors
20-04-2020 15:59:10.562> No keyboard layout loaded, nothing to unload.
20-04-2020 15:59:10.562> Current language is 0x04090409
20-04-2020 15:59:10.562> Checking installed keyboard layout: 0x04090409
20-04-2020 15:59:10.562> Using keyboard language 0x04090409
20-04-2020 15:59:10.563> CSPIThread: Reset Cursor
20-04-2020 15:59:10.563> Requesting timer thread [0x000002D4] (ID 0x0000132C) to exit...
20-04-2020 15:59:10.563> Timer thread [0x000002D4] exited successfully.
20-04-2020 15:59:10.564> Requesting hook thread [0x000002D8] (ID 0x000004C4) to exit...
20-04-2020 15:59:15.565> Hook thread [0x000002D8] did not exit in a timely fashion!
20-04-2020 15:59:16.565> Hook thread [0x000002D8] still did not exit in a timely fashion - terminating it...


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

Re: XMBC doesn't start, W10 Enterprise

Post by phil »

OK thanks - the extra logging is in there - I may need to add more as on first glance, it doesn't make sense - but its 1am here now and I can't concentrate on that right now - need sleep :)

I'll get back to you!
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-9600k, Asus Z390-ROG, 16GB DDR4,
nVidia GeForce GTX 970, Evo 970 500Gb NVME, 2x2TB WD Black (RAID1)

mk9pa
New User
Posts: 6
Joined: Thu Apr 16, 2020 6:05 pm

Re: XMBC doesn't start, W10 Enterprise

Post by mk9pa »

For anyone wondering how this turned out, XMBC was fine, but my company's security software package detected XMBC's attempt to install a hook to handle the mouse button presses, blocked that, and killed XMBC during startup. I requested the IT department to look at XMBC's digital signature certificate to convince them that it was a real application, XMBC was added to a whitelist, and it now works.

Post Reply