Page 1 of 1
Lock screen not working?
Posted: Wed Apr 19, 2017 12:49 pm
by exheusden
I've been using this stack for years. Lock screen has always done it's job, locking the screen. Since the upgrade to OS X 10.12.4, however, lock screen no longer seems to work. So, instead of the big script that might contain some hidden trip-ups (though I can't see why this should be, as it has not been changed), I tested using the following very simple button code:
Code: Select all
on mouseUp
lock screen
repeat 100 times
go next card
end repeat
unlock screen
end mouseUp
And, indeed,
every card is shown, not just the first and last of the series.
Is it OS X or a problem with a recent update to LiveCode (I am using 8.1.3 and did not see the problem in earlier versions)?
Or is it me?
Re: Lock screen not working?
Posted: Wed Apr 19, 2017 1:14 pm
by Klaus
Hola exheusden,
it is YOU!
Just made a test with LC 8.1.4 RC1 and 9 dp6 on macOS 10.12.4
and did not see any card but last one in the loop!?
Do you have any "pre-/opencard" scripts that might interfere here?
You can check it by adding "lock messages":
Code: Select all
on mouseUp
lock screen
lock messages
repeat 100 times
go next card
end repeat
unlock screen
unlock messages
end mouseUp
Best
Klaus
Re: Lock screen not working?
Posted: Wed Apr 19, 2017 2:29 pm
by exheusden
Thanks for your reply, Klaus.
I have just tried the little script with your lock/unlock messages addition and the cards are still all shown.
I've posted a small video to show what happens (I've reduced the 100 repeat to 25 for the sake of brevity):
http://davidneale.eu/livecode/lock-screen-doesnt.html
Re: Lock screen not working?
Posted: Wed Apr 19, 2017 2:54 pm
by Klaus
Very strange, but I can confirm this!
My first test was only simple cards with some buttons, then I added a player object on the first card
and it looks like the player object is causing this inconvenence!?
Hiding or removing hte player cures it, but is of course no solution, I will create a bug report!
DONE:
http://quality.livecode.com/show_bug.cgi?id=19605
Re: Lock screen not working?
Posted: Wed Apr 19, 2017 3:32 pm
by exheusden
Thanks again Klaus. I thought my age was finally getting to me, so it's good to know I'm still more or less normal!
Mind you, the bug is a real pain, and I think there are even more disturbing aspects, too, as the much larger script that has always worked with the stack, now causes my Mac to completely hang up and I have no recourse but to switch off and restart. (No other programs can be used, the machine is totally frozen, Force Quit can't be called…).
Incidentally, I've tried the stack and script on both an iMac under macOS 10.12.4 and a MacBook Air under macOS 10.12.2 and have the same problem on both machines.
Re: Lock screen not working?
Posted: Wed Apr 19, 2017 4:04 pm
by Klaus
Maybe you could add a comment to the above mentioned bug report.
Re: Lock screen not working?
Posted: Wed Apr 19, 2017 6:34 pm
by jacque
I've seen the same problem and I don't use a player object. Even some preopencard handlers display card changes. Nested locks are even worse. I'll add to the report when I get a chance, I've been too busy to create a test stack. Just wanted you to know you aren't alone.
Re: Lock screen not working?
Posted: Wed Apr 19, 2017 7:18 pm
by exheusden
Klaus wrote:Maybe you could add a comment to the above mentioned bug report.
I would do so, but am unable to log in, being told that either my username or password is invalid. Please feel free to use my comments above if you feel they might be useful.
Jacque: thank you for making me feel less alone!
If anyone would like to try the "big" stack that causes my Macs to freeze, I don't mind sharing it. It's 1.6 MB and refers to a second stack of just 25 KB. Unfortunately, it also points to specific paths on my Macs, so that might be a problem. I imagine this is more something for the LiveCode team, as it really does freeze up the Macs.
Re: Lock screen not working?
Posted: Wed Apr 19, 2017 7:35 pm
by Klaus
exheusden wrote:Klaus wrote:Maybe you could add a comment to the above mentioned bug report.
I would do so, but am unable to log in, being told that either my username or password is invalid.
The "Quality Center" is another "beast", so your forum log-in data will not work there!
Re: Lock screen not working?
Posted: Thu Apr 20, 2017 9:24 am
by exheusden
I have restored a previous version of LiveCode, namely LiveCode 8.0.2, and the same stack and script work fine with it. There is neither the problem of lock screen not working, nor does the Mac freeze up when running the large script.