Bug in IDE on Mac 4.6.2 dp 1

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 931
Joined: Thu Nov 13, 2008 6:48 am

Bug in IDE on Mac 4.6.2 dp 1

Post by marksmithhfx » Sun Jun 26, 2011 9:57 pm

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
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS

marksmithhfx
VIP Livecode Opensource Backer
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

Post by marksmithhfx » Sun Jun 26, 2011 10:32 pm

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
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: Bug in IDE on Mac 4.6.2 dp 1

Post by shaosean » Mon Jun 27, 2011 1:42 am

support AT runrev DOT com will take your bug reports

marksmithhfx
VIP Livecode Opensource Backer
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

Post by marksmithhfx » Mon Jun 27, 2011 3:57 am

shaosean wrote:support AT runrev DOT com will take your bug reports
Thanks
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS

runrevGAf68e
Posts: 22
Joined: Mon Dec 19, 2011 1:12 pm

Re: Bug in IDE on Mac 4.6.2 dp 1

Post by runrevGAf68e » Sun Feb 26, 2012 8:22 pm

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.

runrevGAf68e
Posts: 22
Joined: Mon Dec 19, 2011 1:12 pm

Re: Bug in IDE on Mac 4.6.2 dp 1

Post by runrevGAf68e » Sun Feb 26, 2012 8:30 pm

FYI : I've opened ticket 2012022610000602 for this issue.

runrevGAf68e
Posts: 22
Joined: Mon Dec 19, 2011 1:12 pm

Re: Bug in IDE on Mac 4.6.2 dp 1

Post by runrevGAf68e » Wed Feb 29, 2012 3:16 am

FYI : This is a known existing issue. Here is the ticket :

http://quality.runrev.com/show_bug.cgi?id=2867

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: Bug in IDE on Mac 4.6.2 dp 1

Post by mwieder » Wed Feb 29, 2012 9:57 pm

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

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Re: Bug in IDE on Mac 4.6.2 dp 1

Post by bn » Wed Feb 29, 2012 11:10 pm

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

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
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

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: Bug in IDE on Mac 4.6.2 dp 1

Post by mwieder » Wed Feb 29, 2012 11:23 pm

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.

Post Reply