strange error message ghost handler

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

strange error message ghost handler

Post by jmburnod » Wed Oct 05, 2016 7:41 pm

Hi All,
I get a strange error message sounds like "ghost handler" (LC 7.06 OS X 10.10.3)

Image
One stack, script stack have 219 lines, debugger find an error on line 2648
I search "moveStack" but without success
How did I this ?
Thanks in advance for your light
Best regards
Jean-Marc
https://alternatic.ch

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10050
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: strange error message ghost handler

Post by FourthWorld » Wed Oct 05, 2016 8:12 pm

The screen shot shows an error preventing compilation. The handler list is derived from the compiled script. If the script won't compile, the handler list will be empty.

Once you address the problem it's telling you about you should find all is well.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

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

Re: strange error message ghost handler

Post by Klaus » Wed Oct 05, 2016 8:35 pm

Hi Richard,

it would be great if you take a deeper look at the postings here from time to time before you actually write something!

Jean-Marc is not complaining about the empty handler list but LC is complaining about line 2648 in Jean-Marcs script,
which only has 219 lines and NO handler named "movestack" or whatever. And since he is not a noob he surely knows
what an script compilation error is and what to do to get rid of it it.

This is an erroneous error dialog that LC produces from time to time, did not find a recipe nor the actually meaning of this one
nor from what LC script this is actually throwing this error.

The only thing I do in these cases is to save everything, quit and restart LC.


Best

Klaus

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: strange error message ghost handler

Post by [-hh] » Wed Oct 05, 2016 9:08 pm

Hi all,

this sounds like a possible problem that's coming from an IDE script (e.g. from scriptEditor or an open object/image library).
Jean-Marc, what else than your stack and the script editor was open?
Using Klaus' advice: Is the problem also after a fresh startup of LC?
And which LC-version are you using?

Hermann
shiftLock happens

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

Re: strange error message ghost handler

Post by Klaus » Wed Oct 05, 2016 9:17 pm

I have seen this in the last couple of years with LC 6x, 7x and 8x!

It does not happen after a fresh startup of LC, as I wrote I did not find a recipe yet
nor was I in the mood for diving into all of the LC IDE scripts which must be generating
this error at some point. 8)

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: strange error message ghost handler

Post by jmburnod » Wed Oct 05, 2016 9:28 pm

Thanks for your advices
@Hermann
Jean-Marc, what else than your stack and the script editor was open?
Nothing
Using Klaus' advice: Is the problem also after a fresh startup of LC?

No. As Klaus said. The problem disappear after a startup
And which LC-version are you using?
I use LC 7.06
Jean-Marc
https://alternatic.ch

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10050
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: strange error message ghost handler

Post by FourthWorld » Wed Oct 05, 2016 9:30 pm

Klaus wrote:Hi Richard,

it would be great if you take a deeper look at the postings here from time to time before you actually write something!
Agreed, I should spend less time here. I visit a lot of sites in my morning rounds, and it's true, I don't have time to read in detail all words in all posts I encounter. Here I skimmed and based my response on my personal experience (see below), but there may indeed be other factors at play. Time for me to take vacation.
Jean-Marc is not complaining about the empty handler list but LC is complaining about line 2648 in Jean-Marcs script,
which only has 219 lines and NO handler named "movestack" or whatever.
Is that the only tab open? The screen shot is clipped at the top.

I've seen cases where it's possible to switch tabs while a script error has been presented, and the error notice (and associated missing handler list) remains without update.

If no other script has been opened at all during the session, as useful as it is to do the classic computer thing and just restart, I'm more interested in figuring out how this happened so that it may become possible to prevent it altogether.

And to do that we need details.

Didn't seem all that harmful to start with the basics and move out from there.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: strange error message ghost handler

Post by [-hh] » Wed Oct 05, 2016 10:34 pm

Jean-Marc,

in LC 7.0.6 I found:
The error occurs in revProjectBrowser.livecode (which is certainly always in RAM). Lines 2646 to 2650 there are

Code: Select all

   // SN-2015-04-22: [[ Bug 14475 ]] Apply fix from Mikey, as described in 
   // the bug report http://quality.runrev.com/show_bug.cgi?id=14475
   moveStack
   unlock screen
end resizeStack
The moveStack was inserted to force memorizing the projectBrowser's position.
This is still in 7.1.4, so a switch to that latest stable LC 7 version will not avoid the problem.

But the projectBrowser script is completely rewritten in LC 8, such a bug fix (moveStack) isn't in the script any more.

[Thus the similar experience from Klaus in LC 8 must be caused by yet another IDE-'problem'].
I had good luck and no such errors until now.

Anyway there's sadly no solution in sight, because you certainly have good reasons to use LC 7.

Hermann
shiftLock happens

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 864
Joined: Fri Feb 06, 2015 4:03 pm

Re: strange error message ghost handler

Post by LiveCode_Panos » Thu Oct 06, 2016 10:04 am

Hi all,

I have seen this in the past with LC 7.x. The wrong error msg seems to disappear when you check and then uncheck (or vice versa) the "LiveCode UI elements appear in lists of stacks" checkbox in Preferences -> General tab. This is probably because this change causes a refresh of the Project Browser stack. (Note that the "moveStack at line 2652" call seems to come from Project Browser stack).

Or you can just delete your Prefs :)

For anyone interested, see bug http://quality.livecode.com/show_bug.cgi?id=17204.

Best,
Panos
--

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

Re: strange error message ghost handler

Post by Klaus » Thu Oct 06, 2016 10:16 am

Hi all,
[-hh] wrote:...Thus the similar experience from Klaus in LC 8 must be caused by yet another IDE-'problem'
maybe that only happened until version 7.x, I am not sure anymore.


Best

Klaus

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: strange error message ghost handler

Post by jmburnod » Thu Oct 06, 2016 5:00 pm

Thanks for your advices.
As Klaus said, this error appears sometimes. I cant find a recipe to reproduce it.
"LiveCode UI elements appear in lists of stacks" was to false
and it seems appear only on IDE.
All the best
Jean-Marc
https://alternatic.ch

Post Reply