Page 1 of 1
strange error message ghost handler
Posted: Wed Oct 05, 2016 7:41 pm
by jmburnod
Hi All,
I get a strange error message sounds like "ghost handler" (LC 7.06 OS X 10.10.3)

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
Re: strange error message ghost handler
Posted: Wed Oct 05, 2016 8:12 pm
by FourthWorld
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.
Re: strange error message ghost handler
Posted: Wed Oct 05, 2016 8:35 pm
by Klaus
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
Re: strange error message ghost handler
Posted: Wed Oct 05, 2016 9:08 pm
by [-hh]
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
Re: strange error message ghost handler
Posted: Wed Oct 05, 2016 9:17 pm
by Klaus
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.

Re: strange error message ghost handler
Posted: Wed Oct 05, 2016 9:28 pm
by jmburnod
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
Re: strange error message ghost handler
Posted: Wed Oct 05, 2016 9:30 pm
by FourthWorld
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.
Re: strange error message ghost handler
Posted: Wed Oct 05, 2016 10:34 pm
by [-hh]
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
Re: strange error message ghost handler
Posted: Thu Oct 06, 2016 10:04 am
by LiveCode_Panos
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
--
Re: strange error message ghost handler
Posted: Thu Oct 06, 2016 10:16 am
by Klaus
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
Re: strange error message ghost handler
Posted: Thu Oct 06, 2016 5:00 pm
by jmburnod
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