Re: [Jprogramming] Plot package causing J to crash

2022-10-26 Thread Brian Schott
First picking up on Don's suggestion: simply replacing 'plot' with ';' as shown below can show that the number of arguments for plot are inconsistent. But this may not satisfy your bigger question. 'xlabel a b c d' ; 3 4 5 +--+-+ |xlabel a b c d|3 4 5| +--+-+

Re: [Jprogramming] Plot package causing J to crash

2022-10-26 Thread bill lam
The endless loop or crash is a result of jqt popup error message inside paint loop. You can workaround it by define wdinfo_z_=: echo_z_ so that messages won't be popup On Wed, Oct 26, 2022 at 9:33 PM Pablo Landherr wrote: > Re "a short verb to validate the data" > > How does a *short* verb det

Re: [Jprogramming] Plot package causing J to crash

2022-10-26 Thread 'robert therriault' via Programming
Pablo, If the issue is with jQt, is JHS an option? JHS does not use Qt at all. Cheers, bob > On Oct 26, 2022, at 08:55, Don Guinn wrote: > > Perhaps it could supply the plot parameters you put for your normal use. > Validate lengths are correct. Not All possible errors, but the ones you > hav

Re: [Jprogramming] Plot package causing J to crash

2022-10-26 Thread Don Guinn
Perhaps it could supply the plot parameters you put for your normal use. Validate lengths are correct. Not All possible errors, but the ones you have made often. On Wed, Oct 26, 2022, 7:33 AM Pablo Landherr wrote: > Re "a short verb to validate the data" > > How does a *short* verb determine tha

Re: [Jprogramming] Plot package causing J to crash

2022-10-26 Thread Pablo Landherr
Re "a short verb to validate the data" How does a *short* verb determine that all possible combinations of plot instructions are correct? try. doesn't work. And why doesn't plot do it for me? try. 3+3 |spelling error | try. 3+3 | ^ Consider the following (which I generated in the browser base

Re: [Jprogramming] Plot package causing J to crash

2022-10-26 Thread Don Guinn
Could you write a short verb to validate the data which calls plot if the data is correct to plot or give you an error message if not? On Wed, Oct 26, 2022 at 7:00 AM Brian Schott wrote: > Resending: > > On Tue, Oct 25, 2022 at 6:02 PM Brian Schott > wrote: > > > Pablo, > > > > I was able to ex

Re: [Jprogramming] Plot package causing J to crash

2022-10-26 Thread Brian Schott
Resending: On Tue, Oct 25, 2022 at 6:02 PM Brian Schott wrote: > Pablo, > > I was able to execute the following code using jconsole. > See my version info below. Perhaps, this will help. > >QA=: {&a.@(a.&i.@]+[QI 26"_) >QI=: ?.@$ >Fcat=:161 38 QA 'a' >load'plot' >('xlabel ',,

Re: [Jprogramming] Plot package causing J to crash

2022-10-26 Thread Pablo Landherr
Thanks for clarifying the situation for me. My main use of J is for what's called Explorative Data Analysis. This means that I construct J-expressions on the fly, putting data into temporary variables and, quite often, use plot to get a feel for my data. I.e., my use of plot is not in a carefully c

Re: [Jprogramming] Plot package causing J to crash

2022-10-25 Thread Norman Drinkwater
Qt 6.2 for j904 on windows and macos. Qt 5.15 for j903 on those platforms. On Tue, Oct 25, 2022 at 4:34 PM Raul Miller wrote: > There's at least three different ways of thinking about this issue: > > (1) It's a bug, wait for a fix or work around it. But this doesn't > conflict with falling back

Re: [Jprogramming] Plot package causing J to crash

2022-10-25 Thread Brian Schott
Pablo, I was able to execute the following code using jconsole. See my version info below. Perhaps, this will help. QA=: {&a.@(a.&i.@]+[QI 26"_) QI=: ?.@$ Fcat=:161 38 QA 'a' load'plot' ('xlabel ',,Fcat,.' ') plot ?161#100 JVERSION Engine: j903/j64/darwin Release-b: commercial/2

Re: [Jprogramming] Plot package causing J to crash

2022-10-25 Thread Raul Miller
There's at least three different ways of thinking about this issue: (1) It's a bug, wait for a fix or work around it. But this doesn't conflict with falling back to an earlier version in the mean time. (2) Fall back to what you know works, which was j602, (3) Use what we know -- which is that th

Re: [Jprogramming] Plot package causing J to crash

2022-10-25 Thread Pablo Landherr
As the discussion seems to have ended, it seems to me that the only remedy, i.e. to not have J crash in case I give *plot* incorrect parameters, is to revert to an older J-version as the problem was not present when I ran J602. Can anyone advise on how far back I should go? 602 or would 701 or J8 s

Re: [Jprogramming] Plot package causing J to crash

2022-10-20 Thread Raul Miller
On Thu, Oct 20, 2022 at 11:36 AM Henry Rich wrote: > Yes, that's what I see in Windows. The crash dialog says > > Exception thrown at 0x7FFE0355E2B4 (Qt6Widgets.dll) in jqt.exe: > 0xC005: Access violation writing location 0x0028. > > That's not something I know how to fix. I

Re: [Jprogramming] Plot package causing J to crash

2022-10-20 Thread Henry Rich
Yes, that's what I see in Windows.  The crash dialog says Exception thrown at 0x7FFE0355E2B4 (Qt6Widgets.dll) in jqt.exe: 0xC005: Access violation writing location 0x0028. That's not something I know how to fix. Henry Rich On 10/20/2022 11:32 AM, bill lam wrote: I can r

Re: [Jprogramming] Plot package causing J to crash

2022-10-20 Thread bill lam
I can reproduce the crash. I think this is not a bug in the plot addon per se but a change in behavior after migration to Qt 6. It cannot display any dialog box during paint event but an J error happened |length error: frames 3 and 4 are not conformable: pdf_text | pos=.pos-"1(-:len),.0 It c

Re: [Jprogramming] Plot package causing J to crash

2022-10-20 Thread Pablo Landherr
Here is an even simpler case 'xlabel a b c d' plot 4 5 6 On Thu, Oct 20, 2022 at 5:14 PM Pablo Landherr wrote: > Here is an example > > $Fcat,.' ' > > 161 38 > > ('xlabel ',,Fcat,.' ') plot ?161#100 > > (j terminates) > > > Fcat is a text matrix. If you need it, I can send it as well. > > > > O

Re: [Jprogramming] Plot package causing J to crash

2022-10-20 Thread Pablo Landherr
Here is an example $Fcat,.' ' 161 38 ('xlabel ',,Fcat,.' ') plot ?161#100 (j terminates) Fcat is a text matrix. If you need it, I can send it as well. On Thu, Oct 20, 2022 at 5:02 PM Henry Rich wrote: > If you can give me a way to recreate the error, I will fix it. > > Henry Rich > > On

Re: [Jprogramming] Plot package causing J to crash

2022-10-20 Thread Henry Rich
If you can give me a way to recreate the error, I will fix it. Henry Rich On 10/20/2022 9:24 AM, Pablo Landherr wrote: Since I upgraded to 904, I've noticed that J will terminate immediately if I send incorrect parameters or data to the plot function. That never happened before. Plot would sign

Re: [Jprogramming] Plot package causing J to crash

2022-10-20 Thread Pablo Landherr
*903 On Thu, Oct 20, 2022 at 3:24 PM Pablo Landherr wrote: > Since I upgraded to 904, I've noticed that J will terminate immediately if > I send incorrect parameters or data to the plot function. That never > happened before. Plot would signal an error and I would try to understand > my mistake.