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

Can't start MWB service #27897

Open
jsantosdias opened this issue Aug 8, 2023 · 16 comments
Open

Can't start MWB service #27897

jsantosdias opened this issue Aug 8, 2023 · 16 comments
Labels
Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Product-Mouse Without Borders Refers to the Mouse Without Borders module

Comments

@jsantosdias
Copy link

Microsoft PowerToys version

0.72.0

Installation method

PowerToys auto-update

Running as admin

Yes

Area(s) with issue?

Mouse Without Borders

Steps to reproduce

1 - I set up host and everything ok! Set to use as service. Everything OK!
2 - I set up client and everything ok! Works as expected!
3 - I set to use as service in client machine (so I can use in lock screen) and the first time I put option on, it after a second puts it again in off. If I try again, MWB stops working. If I restart PowerToys, it starts working, but service is off...

✔️ Expected Behavior

When I start service, it would work normnally...

❌ Actual Behavior

When I set to use as service in client machine (so I can use in lock screen):
a) the first time I put option on, it after a second puts automatticly it again in off
b) If I try again, MWB stops working. If I restart PowerToys, it starts working, but service is off...

Other Software

No response

@jsantosdias jsantosdias added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Aug 8, 2023
@stefansjfw stefansjfw added the Product-Mouse Without Borders Refers to the Mouse Without Borders module label Aug 17, 2023
@DingbatDev
Copy link

+1... I am seeing similar. Once configured the MWB service is present in Service Manager, but set to Manual start. When started, it will stop immediately.

@MKPang
Copy link

MKPang commented Jan 7, 2024

Same issue on all my computers. Event Viewer shows "Service stopped successfully.". Using version 0.76.2 but I had already seen it in 0.72 also.

@skeemer
Copy link

skeemer commented Apr 7, 2024

I am seeing this issue in v0.80.0. Also no errors in Event View between start and stop.

@maf-soft
Copy link

Also in v0.80.1 on my 2 Win11 computers - service immediately stops after start, but there is no information or error message. On the PC without mouse MWB just immediately stops working as soon as I enable the use of the service. Maybe also the error handling could be improved so that you can see installation status, running status and any errors.

@deanis74
Copy link

This issue is still present in v81.0. Just in case anybody was wondering.
The Event Viewer still just contains the the informational "Service stopped successfully" message, and the log file is not helpful, either.

[13:24:37.8193875] [Info] Common::Log
    05/27 13:24:37.816(1)PowerToys.MouseWithoutBorders Started!
[13:24:37.8448932] [Info] Common::Log
    05/27 13:24:37.844(1)"C:\Program Files\PowerToys\PowerToys.MouseWithoutBorders.dll" UseService

@narutosu0117
Copy link

No one can solve this problem?
This is my LOG
[2024-06-13 09:07:59.606009] [p-17704] [t-18372] [info] mouseWithoutBorders logger is initialized
[2024-06-13 09:07:59.641890] [p-17704] [t-18372] [warning] The service path is not correct. Current: "D:\PowerToys/PowerToys.MouseWithoutBordersService.exe" C:\Users\BJCT\AppData\Local Expected: "D:\PowerToys/PowerToys.MouseWithoutBordersService.exe" C:\Users\BJCT\AppData\Local
[2024-06-13 09:08:03.423845] [p-17704] [t-18372] [trace] Launching PowerToys MouseWithoutBorders process

@uxe3g7sr
Copy link

uxe3g7sr commented Aug 4, 2024

Same issue here with v0.83. Either we are doing something wrong, or the feature doesn't work. Anyone reading this thread able to actually make it work?

@QuentinJones
Copy link

Was working fine for me on v0.82 but starting having this issue after updating to v0.83.

@davehouser1
Copy link

How is this not resolved yet? @powertoys team, can someone look at this? Not working in v0.84 either.

@MKPang
Copy link

MKPang commented Sep 14, 2024

Clearly they couldn't give a damn. There are enough people here reporting this issue so it's clearly a problem!

@functionreturnfunction
Copy link

I also just started having this problem on 0.85.0. I had switched to using the service on Tuesday and things ran fine all week, and now Friday morning it stopped and I had to revert all my machines back.

@jfreiman
Copy link

I have been having this issue for the last couple builds that I'm aware of.

Is this a normal behavior? Does the Service stop running once it has started the MWB app?

@QuentinJones
Copy link

So I was messing around with running this service in debug to see what's going wrong. It looks like inside NativeMethod.cs OpenProcessToken is called with winlogon.exe as the target process. Running as my local user Marshal.GetLastWin32Error() returns error code 6, but running as administrator it returns error code 5 indicating Access is Denied. Errors from this part of the process don't appear to be getting logged. I'm not sure running as admin is the same permission set as how this process would run during an installation.

Unsure how to proceed from here, either need to match the user the process runs as for a more accurate test, or figure out how to adjust permission for OpenProcessToken to allow the operation. If anyone has any ideas on how to do that your help would be appreciated.

@dataract
Copy link

dataract commented Jan 20, 2025

Also having problems when enabling it as a service... in W11Home 24H2

Image

@aescientis
Copy link

I will keep an eye on this .... i also wait for a solution.

@syselement
Copy link

Same on v.0.88.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Product-Mouse Without Borders Refers to the Mouse Without Borders module
Projects
None yet
Development

No branches or pull requests