Lock screen not working?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
exheusden
Posts: 170
Joined: Fri Oct 09, 2009 5:03 pm
Contact:

Lock screen not working?

Post by exheusden » Wed Apr 19, 2017 12:49 pm

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?

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Lock screen not working?

Post by Klaus » Wed Apr 19, 2017 1:14 pm

Hola exheusden,

it is YOU! :D

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

exheusden
Posts: 170
Joined: Fri Oct 09, 2009 5:03 pm
Contact:

Re: Lock screen not working?

Post by exheusden » Wed Apr 19, 2017 2:29 pm

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
Last edited by exheusden on Thu Apr 20, 2017 10:22 am, edited 1 time in total.

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Lock screen not working?

Post by Klaus » Wed Apr 19, 2017 2:54 pm

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

exheusden
Posts: 170
Joined: Fri Oct 09, 2009 5:03 pm
Contact:

Re: Lock screen not working?

Post by exheusden » Wed Apr 19, 2017 3:32 pm

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.

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Lock screen not working?

Post by Klaus » Wed Apr 19, 2017 4:04 pm

Maybe you could add a comment to the above mentioned bug report.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Lock screen not working?

Post by jacque » Wed Apr 19, 2017 6:34 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

exheusden
Posts: 170
Joined: Fri Oct 09, 2009 5:03 pm
Contact:

Re: Lock screen not working?

Post by exheusden » Wed Apr 19, 2017 7:18 pm

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.

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Lock screen not working?

Post by Klaus » Wed Apr 19, 2017 7:35 pm

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!

exheusden
Posts: 170
Joined: Fri Oct 09, 2009 5:03 pm
Contact:

Re: Lock screen not working?

Post by exheusden » Thu Apr 20, 2017 9:24 am

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.

Post Reply