I suspect this may not be out of memory error. The crash is related to i.
which has a branch of routine for large arguments.

On Fri, 1 Apr 2022 at 9:15 PM 'Michael Day' via General <
[email protected]> wrote:

> I tried it on the iPad running J701 - but with greatly reduced
> array-size,  as it
> tends to crash just because of shortage of memory -  it's ok with both:
>     $each A;B
> +-----+---+
> |3 8 4|3 8|
> +-----+---+
>     $result =. A  i."1 0  B            NB. Works OK
> 3 8
>     $result =. A  i."1    B            NB. ???
> 3 8 8
>
> J701 on the iPad does indeed crash with the original sizes.
>
> I then tried on this laptop running J903 under Windows 11;  also ok with
> A & B at reduced size,  same result.
>
> However, with the original sizes,  10 800 400 and 10 800,  J903 does crash
> on this laptop too.
>
> J903 normally returns an out-of-memory message if it encounters storage
> problems.
>
> Cheers,
>
> Mike
>
>
> On 01/04/2022 09:41, 'Ian Shannon' via General wrote:
> > Hello,
> >
> > I'm running J903 in windows
> >
> > I made a programming mistake in setting the rank of the verb
> > "index_of"  that crashed the system.
> >
> > I have an array A (years x observers x days) containing integer values.
> >
> > I want to determine the location (ie day index) of a pre-determined value
> > for each year x observer. Hence array B is (Years x observers)
> >
> >
> > I should have coded
> >
> > result =. A  i."1 0  B
> >
> > but I coded
> >
> > result =. A i."1 B
> >
> > which crashed the system without any error messages etc.
> >
> > For example -
> >
> >     JVERSION
> > Engine: j903/j64avx2/windows
> > Release-a: commercial/2021-12-16T15:15:09
> > Library: 9.03.08
> > Qt IDE: 1.9.5s/5.15.2(5.15.2)
> > Platform: Win 64
> > Installer: J903 install
> > InstallPath: c:/utilities/j/j903
> > Contact: www.jsoftware.com
> >
> >    A =. 10 800 400 ?@:$ 100
> >    B =: 10 800  ?@:$ 80
> >    result =. A  i."1 0  B             NB. Works OK
> >
> >    result =. A i."1 B             NB. Crash !!!
> >
> >
> >
> > Ian
> > Ian Shannon
> > Undertaking rigorous statistics in support of the NSW environment
> >
> > Science Strategy & Impact Branch
> > Department of Planning and Environment
> > T 02 9995 5490 |
> > Level 6, 4 Parramatta Square, 12 Darcy Street, Parramatta NSW 2150
> > M Locked Bag 5022, Parramatta NSW 2124 | W www.dpe.nsw.gov.au
> >
> > The Department of Planning and Environment acknowledges that it stands
> on Aboriginal land. We acknowledge the traditional custodians of the land
> and we show our respect for elders past, present and emerging through
> thoughtful and collaborative approaches to our work, seeking to demonstrate
> our ongoing commitment to providing places in which Aboriginal people are
> included socially, culturally and economically.
> >
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
> > This email is intended for the addressee(s) named and may contain
> confidential and/or privileged information.
> > If you are not the intended recipient, please notify the sender and then
> delete it immediately.
> > Any views expressed in this email are those of the individual sender
> except where the sender expressly and with authority states them to be the
> views of the NSW Office of Environment and Heritage.
> >
> > PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS EMAIL
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
>
>
> --
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to