IDE Hang When Exiting. (was Can't edit scripts in DataGrid group in Windows 10)

Peter Bogdanoff bogdanoff at me.com
Fri Oct 23 16:35:42 EDT 2020


Yesterday I had LC hang when using the red dot on the same line as the breakpoint command. LC 9.5.1

Peter



> On Oct 23, 2020, at 5:33 AM, Ralph DiMola via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> It was a hardcoded breakpoint in this form.
> 
> If x<0 then breakpoint
> 
> I wonder if inadvertently triggered "red dot" breakpoints when exiting can cause the same hang?
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdimola at evergreeninfo.net
> 
> -----Original Message-----
> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Martin Koob via use-livecode
> Sent: Thursday, October 22, 2020 7:53 PM
> To: How to use LiveCode
> Cc: Martin Koob
> Subject: Re: IDE Hang When Exiting. (was Can't edit scripts in DataGrid group in Windows 10)
> 
> Hi Ralph
> 
> I generally experience IDE hang when exiting in all versions of LC 9.x i have used so far (using a Mac however). I haven’t had time to delve into figuring out a recipe I could report as a bug. I just force quit and relaunched LiveCode.  That is just part of my work flow now.  Sometimes it does quit with no hang.  Some things I have tried is closing the script editor, or close and remove from memory before quitting.  I still don’t get consistent results from this though.
> 
> It happens with various stacks I work on from simple to complex.  I thought it may be an extension I have installed that ties up the IDE during the quitting process.  I plan one day to remove all extensions to a bare minimum and see if it still happens.
> 
> Interesting idea about the breakpoint.  Is it a ‘red dot’ soft breakpoint or hard coded ‘breakpoint’ in a line of the script?
> 
> The behaviour of the soft breakpoints I have found inconsistent.   Sometimes they don’t trigger unless I have the script open for at least the first breakpoint I want to trigger. Again I have never really tried to get to the cause, just did workarounds.
> 
> I probably have way to many breakpoints left sitting around.  Maybe I should just delete all breakpoints and start fresh.
> 
> Thanks for the idea.  Maybe that will solve the other problem I am having with the DataGrid.
> 
> Martin
> 
>> On Oct 22, 2020, at 7:32 PM, Ralph DiMola via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> Martin,
>> 
>> I don’t have an answer for that but this post perked my interest in a hang I was getting. I just found out why the IDE hangs in an apparently tight loop when it's closing. This happened only on one card of the stack. It had a closeCard handler in the behavior. A "breakpoint" statement triggered. It was from early debugging and does not get triggered anymore. It only triggers if all is not well. There is reference to a property in the main stack. Could that stack already be closed and the property returns as empty? Because that would trigger the breakpoint.
>> 
>> Is this a bug or user error?
>> 
>> Win 10
>> LC 9.6.1
>> 
>> Thanks for pushing me(more like  a poke) to finally solve this annoyance.
>> 
>> Ralph DiMola
>> IT Director
>> Evergreen Information Services
>> rdimola at evergreeninfo.net
>> 
>> -----Original Message-----
>> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Martin Koob via use-livecode
>> Sent: Thursday, October 22, 2020 5:19 PM
>> To: use-livecode list
>> Cc: Martin Koob
>> Subject: Can't edit scripts in DataGrid group in Windows 10
>> 
>> Hi all
>> 
>> Maybe this is not good practice but I have DataGrids with script in the group that contains the DataGrid in addition to the behaviour script of the DataGrid.   So to edit the script in the DataGrid group I just select the Datagrid group I right click on the DataGrid and select the ‘Edit Script’ menu item.   
>> 
>> This works fine on the mac.    I just tried this on Windows 10 with LiveCode 9.6 and when I try to open the same DataGrid following the same process the script editor opens but it does not load the script.  In fact LiveCode becomes unresponsive. The script editor dims as if disabled and the cursor when hovering over the script editor or any other LiveCode windows  is the hour glass cursor.
>> 
>> If I click on the ‘x’ to close the LiveCode project I get the dialog that says.
>> 
>>   LiveCode for Windows is not responding
>>   If you close the program, you might lose information.
>>   —>Close the Program
>>   —>Wait for the program to respond.
>> 
>> Eventually I just select ‘Close the program’ since the program never responds.
>> 
>> I created a test stack with just a DataGrid on it and a button and opened the group script and was able to add a handler and then save it and reopen it so it does work in a simple scenario.
>> 
>> In my application I have two dataGrids that have code in the group script.  On has 290 lines the other has about 480 lines.   So it seems the longer code is a contributing factor.
>> 
>> Has anyone else experienced this?  
>> 
>> It the problem that you are not supposed to have script in the DataGrid’ Group script and rather put it all in the DataGrid's behaviour?
>> 
>> 
>> Thanks in advance.
>> 
>> 
>> Martin Koob
>> 
>> 
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list