lulzsun / RePlays

Open-source game recording management software
GNU General Public License v3.0
128 stars 16 forks source link

Relaunching Application after closing window fails to open #118

Closed Lian-D closed 1 year ago

Lian-D commented 1 year ago

Seems like something is wrong with permissions maybe. Fixes itself temporarily when reinstalled but breaks again after closing and relaunching.

I'm running a windows 11 system.

The application must be defaulted to administrator mode in order for it to run


[2023-05-18 2:54:09 AM][LibObsRecorder.cs(70)]: info: video settings reset:
    base resolution:   1920x1080
    output resolution: 1920x1080
    downscale filter:  Bilinear
    fps:               60/1
    format:            NV12
    YUV mode:          Rec. 709/Partial
[2023-05-18 2:54:09 AM][LibObsRecorder.cs(70)]: info: NV12 texture support enabled
[2023-05-18 2:54:09 AM][LibObsRecorder.cs(70)]: info: P010 texture support not available
[2023-05-18 2:54:09 AM][LibObsRecorder.cs(126)]: Successfully started LibObs!
[2023-05-18 2:54:14 AM][DetectionService.cs(210)]: Failed to get process: [11164][MpCmdRun] full path. Error: Access is denied.
[2023-05-18 2:54:14 AM][DetectionService.cs(210)]: Failed to get process: [2536][conhost] full path. Error: Access is denied.
[2023-05-18 2:54:15 AM][DetectionService.cs(210)]: Failed to get process: [10260][conhost] full path. Error: Access is denied.
[2023-05-18 2:54:15 AM][DetectionService.cs(210)]: Failed to get process: [15996][MpCmdRun] full path. Error: Access is denied.
[2023-05-18 2:54:18 AM][DetectionService.cs(210)]: Failed to get process: [14120][sppsvc] full path. Error: Access is denied.
[2023-05-18 2:54:21 AM][DetectionService.cs(210)]: Failed to get process: [11860][MoUsoCoreWorker] full path. Error: Access is denied.
[2023-05-18 2:54:23 AM][DetectionService.cs(210)]: Failed to get process: [16596][taskhostw] full path. Error: Access is denied.
[2023-05-18 2:54:24 AM][DetectionService.cs(210)]: Failed to get process: [3800][svchost] full path. Error: Access is denied.
[2023-05-18 2:54:24 AM][DetectionService.cs(210)]: Failed to get process: [6556][svchost] full path. Error: Access is denied.
[2023-05-18 2:55:08 AM][DetectionService.cs(210)]: Failed to get process: [13120][svchost] full path. Error: Access is denied.```
lulzsun commented 1 year ago

Do you happen to use some sort of third party anti-virus software? This issue seems particularly odd.

The logs of the detection service failing to retrieve a process's full path is normal behavior, so I am unsure as to why you are having this issue.

Can you check to see if the nightly build causes the same issue?

Edit: The window closing behavior is actually minimizing the application to tray. To reopen the window, you would double-click the application tray icon. Are you trying to reopen the window by relaunching the executable while it has been minimized to tray? Because intended behavior is that only one process (instance) can only exist. Attempting to launch another instance would immediately close that attempt.

Segergren commented 1 year ago

I think it would be good to open/foreground the active instance if the user wants to open RePlays but there is already one running. I tried to implement this months ago but failed... What do you think about this idea @lulzsun?

lulzsun commented 1 year ago

Yeah that does sound like a good idea, I'll see what I can do.