Bug in IDE on Mac 4.6.2 dp 1
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Bug in IDE on Mac 4.6.2 dp 1
HI,
I didn't know where else to post this (so please let me know if there is a better home for bug reports).
this relates to the Ticked-Off app that was developed in the recent Summer Academy (since RR has access to this application I'll use it as the reference).
OSX 10.6.7
LC 4.6.2 dp 1
If I open the resources stack-> images card and set a breakpoint on the card script "resizeImages" (setting it anywhere seems to trigger the problem), close the script window and resize the main stack the script is triggered, the code displayed and at this point the IDE is frozen requiring a forced quit.
-- Mark
I didn't know where else to post this (so please let me know if there is a better home for bug reports).
this relates to the Ticked-Off app that was developed in the recent Summer Academy (since RR has access to this application I'll use it as the reference).
OSX 10.6.7
LC 4.6.2 dp 1
If I open the resources stack-> images card and set a breakpoint on the card script "resizeImages" (setting it anywhere seems to trigger the problem), close the script window and resize the main stack the script is triggered, the code displayed and at this point the IDE is frozen requiring a forced quit.
-- Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Re: Bug in IDE on Mac 4.6.2 dp 1
Seems I left one step out: you have to actually step into the code before it hangs. I've also tried by setting a variable watch on a variable in resizeImages and get the same IDE hang.
-- Mark
-- Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
Re: Bug in IDE on Mac 4.6.2 dp 1
support AT runrev DOT com will take your bug reports
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Re: Bug in IDE on Mac 4.6.2 dp 1
Thanksshaosean wrote:support AT runrev DOT com will take your bug reports
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
-
- Posts: 22
- Joined: Mon Dec 19, 2011 1:12 pm
Re: Bug in IDE on Mac 4.6.2 dp 1
I have this exact same problem except I'm using 5.0.2.
I'm going to submit as well. Let me know if you have an existing ticket number.
I'm going to submit as well. Let me know if you have an existing ticket number.
-
- Posts: 22
- Joined: Mon Dec 19, 2011 1:12 pm
Re: Bug in IDE on Mac 4.6.2 dp 1
FYI : I've opened ticket 2012022610000602 for this issue.
-
- Posts: 22
- Joined: Mon Dec 19, 2011 1:12 pm
Re: Bug in IDE on Mac 4.6.2 dp 1
FYI : This is a known existing issue. Here is the ticket :
http://quality.runrev.com/show_bug.cgi?id=2867
http://quality.runrev.com/show_bug.cgi?id=2867
Re: Bug in IDE on Mac 4.6.2 dp 1
It's also bug #9896. The debugger locks up because the resizeStack handler is still in control.
Note that this wouldn't be that hard a problem for runrev to fix if they felt like it. PowerDebug doesn't have this problem.
http://www.ahsoftware.net/PowerTools/Po ... DDemo.html
http://www.ahsoftware.net/PowerTools/BuyPowerDebug.irev
http://PowerDebug.ahsoftware.net
Note that this wouldn't be that hard a problem for runrev to fix if they felt like it. PowerDebug doesn't have this problem.
http://www.ahsoftware.net/PowerTools/Po ... DDemo.html
http://www.ahsoftware.net/PowerTools/BuyPowerDebug.irev
http://PowerDebug.ahsoftware.net
Re: Bug in IDE on Mac 4.6.2 dp 1
Hi,
I ran just the other day into debugging a resizeStack handler and shure enough it crashed the IDE.
My workaround was to take the code out of the resizeStack handler and put it into another handler
now I can debug the code for the resizeStack handler. The way it is now it is not well suited for "live resizing" because the messages stack up (funny to watch though).
But once your code is OK you can put it back into the resizeStack handler.
Or you get PowerDebug, which I also use but had it turned off at the moment.
Kind regards
Bernd
I ran just the other day into debugging a resizeStack handler and shure enough it crashed the IDE.
My workaround was to take the code out of the resizeStack handler and put it into another handler
Code: Select all
on resizeStack newWidth,newHeight,oldWidth,oldHeight
-- code taken out of resizeStack handler because it it difficult to debug
-- Debugger can not debug when the operating system is taking over like in resizeStack
-- by sending it after completion of resizeStack handler (send xxx in 10 milliseconds) Livecode is on its own again and can debug
send "adjust newWidth,newHeight,oldWidth,oldHeight" to me in 10 milliseconds
end resizeStack
on adjust newWidth,newHeight,oldWidth,oldHeight
lock screen
## your code for the resize handler here
unlock screen
end adjust
But once your code is OK you can put it back into the resizeStack handler.
Or you get PowerDebug, which I also use but had it turned off at the moment.
Kind regards
Bernd
Re: Bug in IDE on Mac 4.6.2 dp 1
There are various other handlers that will get you into trouble as well with the IDE's debugger - preOpenStack handlers, for example. Anything where an error can cause a lockup situation because control hasn't returned from the handler in the stack under test.