View Issue Details

Category
SSPBT:本体(SSP)
SeverityminorReproducibilityalways 
Status assigned 
Summary0000266: OnScreenSaverStart and OnScreenSaverEnd do not fire
DescriptionI've had this issue for years and never thought to report it. It happens on both Windows 7 and Windows 10, on the latest version of SSP.
TagsNo tags attached.
Attach Tags

Activities

ponapalt

2021-09-09 08:00

administrator   ~0000652

Last edited: 2021-09-09 08:01

I can't reproduce this problem. I need more detailed information.
Note : this event does ***not*** occur by "Preview" button of screen saver config.

guest

2021-09-09 09:45

reporter   ~0000659

I'm not sure what information would be helpful. If you need something specifically, I can get it for you.
Here's a video of it, if that's helpful. There are some LOGGING commands that should show up, as well as some variables that should change, but neither of those things happen. https://www.youtube.com/watch?v=nAVAMMkUdbY
The screensaver starts at 1:05 in the video

ponapalt

2021-12-02 16:56

administrator   ~0000967

Please try 2.5.50

guest

2021-12-02 20:40

reporter   ~0000968

No change on Windows 10.

Windows 7, oddly, minimized my ghosts when I ended the screensaver... Or perhaps when it started? I'm not too sure. Either way, since they got minimized I was not able to confirm if OnScreenSaverEnd happened or not. OnScreenSaverStart definitely did not. I'll attach a screenshot of some of the output I got from Tama.

Note that I have not restarted either computer since updating SSP, I simply don't have time tonight. I might try this tomorrow and update this report if I notice any change.
image.png (2,237 bytes)   

guest

2021-12-03 04:21

reporter   ~0000970

I've shut down and rebooted both of my computers now. The behavior on Windows 10 remains the same, but the Windows 7 computer no longer minimizes ghosts upon exiting the screen saver. Not sure why it was doing that last night.

(Both computers were completely unplugged to clean them, so I don't think they would behave differently if I did a restart)

ponapalt

2021-12-25 17:32

administrator   ~0001006

retry : 2.5.53

guest

2021-12-28 13:57

reporter   ~0001018

Still no change, unfortunately. No evidence of the event firing on either computer.

guest

2022-01-03 11:03

reporter   ~0001027

Well, I'm just curious
Is there any SPI_GETSCREENSAVERRUNNING used in the ssp code?
That's the general way to tell if the screensaver is running or not

guest

2022-01-03 11:08

reporter   ~0001029

```c++
BOOL ssrunning=0;
SystemParametersInfo(SPI_GETSCREENSAVERRUNNING,0,&ssrunning,0);
if(ssrunning)
//...
```

ponapalt

2022-01-06 13:25

administrator   ~0001033

Please try 2.5.56.

In the previous code, I used SPI_GETSCREENSAVERRUNNING, but I gave up because there were many environments where I could not get the correct status.
I'm using SENS now.
https://docs.microsoft.com/en-us/windows/win32/sens/system-event-notification-service-portal

guest

2022-01-06 15:54

reporter   ~0001036

The events are firing now! But there are some new issues.

On windows 10, it seems that every once in a while when the screensaver ends, my main ghost will disappear (I am currently running 4 ghosts).

If I have Tama open, SSP will freeze. It will give me error messages every minute or so, and I managed to get the error log open to view these errors. I couldn't do anything else besides force SSP to close.

If I do not have Tama open, everything will run normally, but my main ghost will be gone. Script input, surface test, and running events from the right click menu do nothing to help. It won't even reload the ghost. I did find that minimizing and unminimizing the ghost will bring it back, as will allowing the screensaver to run again.

This was difficult to test, since I have to wait for the screensaver to happen and the issue doesn't happen every time, so it's possible that I just got bad luck and it isn't actually related to Tama.


On windows 7, things are a bit different. My ghosts seem to interrupt the screensaver as soon as it occurs, though they will still use both of the events. Sometimes the ghost would disappear similar to how it did on windows 10, though at one point I had it alternating between two ghosts. Unsure how or why this happened, possibly because I don't have any ghost selected as the default ghost on that installation of SSP?

With Tama open, it did eventually freeze and start putting out errors to the error log like before. So far without Tama open, it hasn't crashed, even though the ghosts sometimes disappear.

I'll update this if I notice any new behaviors.
image-2.png (3,987 bytes)   

guest

2022-01-06 16:54

reporter   ~0001037

Something new. I left my Win7 computer in the cycle of starting the screensaver and having the ghosts automatically exit the screensaver, and when I came back to it a while later SSP said it was writing a STACKTRC file and this is what it output. I had to forcibly close SSP with task manager.

ponapalt

2022-01-10 15:17

administrator   ~0001046

Please try 2.5.57.

Description : in Windows 2000 or newer, screen saver is running in other "desktop" environment and no need to minimize ghost window, so I've changed just notify screen saver event and delete minimize code.

guest

2022-01-11 19:22

reporter   ~0001049

On Windows 10:
This works nearly perfectly. No more strange behavior with minimizing. However, a couple of times one of my ghosts did not respond to the screensaver event at all, even though my other open ghost did. I restarted my computer and have not managed to replicate this yet. If I manage to get it to happen again, I'll write another report.

On Windows 7:
Well, it's... strange. My computer had been running since my last report. I updated SSP, and the event appeared to work fine when I had just 1 ghost running. Then I opened another ghost, and the second ghost would not respond to the screensaver event, even though the first one continued to work. I opened a third ghost, and had the same result. The event was not even showing up in Tama. So, I restarted my computer. Now the event doesn't work for any ghosts on that computer at all... I haven't managed to get it working again since then.

guest

2022-01-28 11:23

reporter   ~0001082

An update for Windows 7:

I left my computer open for 0000008:0000016 days, and I noticed before restarting that once again, I could get just 1 ghost to respond to the screensaver events. It seems that it was my oldest open ghost that would respond. So if I opened ghost A, ghost A would respond. If I then opened ghost B alongside it, only ghost A would respond. If I then closed ghost A, ghost B would respond to the screensaver. And if I reopened ghost A alongside ghost B, only ghost B would respond.

But now I've restarted my computer again, and it's back to the ghosts forcing the screensaver to end as soon as it starts. It seems like it's still having the problem where only the oldest open ghost reacts to the event, but now the screensaver won't stay on even if I don't interact.

I wish I knew why the behavior is so erratic... This is very strange. My windows 10 computer is still working fine with the screensaver events.

Add Note

View Status
Note
Upload Files
Maximum size: 1,953 KiB

Attach files by dragging & dropping, selecting or pasting them.

送信ボタンを押す前に / Before pushing "Send" button

  • スパム避けのためにパスワードが必要です。送信ボタンを押すとユーザー名とパスワードを聞かれますので、それぞれ "bts" と入力してください。
  • To send report, please input "bts" into username and password box in popup dialog.

Issue History

Date Modified Username Field Change
2021-09-07 11:59 guest New Issue
2021-09-09 08:00 ponapalt Assigned To => ponapalt
2021-09-09 08:00 ponapalt Status new => feedback
2021-09-09 08:00 ponapalt Note Added: 0000652
2021-09-09 08:01 ponapalt Note Edited: 0000652
2021-09-09 08:01 ponapalt Note Edited: 0000652
2021-09-09 09:45 guest Note Added: 0000659
2021-09-09 09:45 guest Status feedback => assigned
2021-12-02 16:56 ponapalt Status assigned => feedback
2021-12-02 16:56 ponapalt Note Added: 0000967
2021-12-02 20:40 guest Note Added: 0000968
2021-12-02 20:40 guest File Added: image.png
2021-12-02 20:40 guest Status feedback => assigned
2021-12-03 04:21 guest Note Added: 0000970
2021-12-25 17:32 ponapalt Status assigned => feedback
2021-12-25 17:32 ponapalt Note Added: 0001006
2021-12-28 13:57 guest Note Added: 0001018
2021-12-28 13:57 guest Status feedback => assigned
2022-01-03 11:03 guest Note Added: 0001027
2022-01-03 11:08 guest Note Added: 0001029
2022-01-06 13:25 ponapalt Note Added: 0001033
2022-01-06 13:25 ponapalt Status assigned => feedback
2022-01-06 15:54 guest Note Added: 0001036
2022-01-06 15:54 guest File Added: image-2.png
2022-01-06 15:54 guest Status feedback => assigned
2022-01-06 16:54 guest Note Added: 0001037
2022-01-06 16:54 guest File Added: 22-1-6 Win7 Screensaver Testing STACKTRC.txt
2022-01-10 15:17 ponapalt Status assigned => feedback
2022-01-10 15:17 ponapalt Note Added: 0001046
2022-01-11 19:22 guest Note Added: 0001049
2022-01-11 19:22 guest Status feedback => assigned
2022-01-28 11:23 guest Note Added: 0001082