I also tested in on win64 and this is what I found:

I suspect it may be a timing issue with adding the opengl control to the
form and immediately disposing it... as though it's closing the form before
it's done initializing the form with opengl. I don't have any theories on
why erasing the base locale affects other than the wd string using some
noun that gets erased

It does not crash for me if I add a pshow

TEST0 - won't crash without a pclose
TEST1 - won't crash, but it won't close the form
TEST2 - won't crash and it closes the form when pclose is separate
TEST3 - shows that pclose works in the same string if it does not include
opengl

JVERSION
Engine: j803/2014-10-19-11:11:11
Library: 8.03.12
Qt IDE: 1.3.1/5.3.2
Platform: Win 64
Installer: J803 install
InstallPath: c:/users/joe bogner/j64-803


NB. Original issue - crashes reliably
clear'' NB. clear base locale
require 'graphics/gl2 api/gles'
coinsert 'jgl2 jgles'
wd 'pc testopengl;minwh 10 10;cc g opengl;pclose;'

NB. Test 0 - won't crash without a pclose
clear'' NB. clear base locale
require 'graphics/gl2 api/gles'
coinsert 'jgl2 jgles'
NB. won't crash, but won't close
wd 'pc testopengl;minwh 10 10;cc g opengl;'


NB. Test 1 - won't crash, but won't close the window
clear'' NB. clear base locale
require 'graphics/gl2 api/gles'
coinsert 'jgl2 jgles'
NB. won't crash, but won't close
wd 'pc testopengl;minwh 10 10;cc g opengl;pshow;pclose;'

NB. Test 2 - won't crash, will close if separate pclose
clear'' NB. clear base locale
require 'graphics/gl2 api/gles'
coinsert 'jgl2 jgles'
wd 'pc testopengl;minwh 10 10;cc g opengl;pshow;'
wd 'pclose;'

NB. Test 3 - no opengl, confirms it closes correctly when combined
clear'' NB. clear base locale
wd 'pc testopengl;minwh 10 10;pshow;pclose;'





On Mon, Mar 23, 2015 at 6:37 AM, Raul Miller <[email protected]> wrote:

> So this might be specific to 64 bit windows.
>
> I'd be interested in isolating the problem if I knew how to do so.
>
> It's not in my critical path for the lab, but crashes are bad news.
>
> Thanks,
>
> --
> Raul
>
> On Mon, Mar 23, 2015 at 6:35 AM, bill lam <[email protected]> wrote:
> > I tested on an old 32-bit win-xp using ANGLE version of Qt Lib. It ran
> > OK with clear''
> >
> > Engine: j803/2014-10-19-11:11:11
> >
> > Library: 8.03.13
> >
> > Qt IDE: 1.3.1/5.3.2
> >
> > Platform: Win 32
> >
> > Installer: J803 install
> >
> > InstallPath: d:/j803
> >
> >
> > On Mon, Mar 23, 2015 at 6:18 PM, Raul Miller <[email protected]>
> wrote:
> >> P.S. I should add: windows 7, nvidia drivers.
> >>
> >> Thanks,
> >>
> >> --
> >> Raul
> >>
> >> On Mon, Mar 23, 2015 at 6:17 AM, Raul Miller <[email protected]>
> wrote:
> >>> That's an interesting possibility, but I tried it and it did not
> >>> prevent the crash.
> >>>
> >>> Thanks,
> >>>
> >>> --
> >>> Raul
> >>>
> >>> On Mon, Mar 23, 2015 at 6:13 AM, bill lam <[email protected]> wrote:
> >>>> Perhaps this is related to the api/gles addon, first update all addons
> >>>> then  open gles.ijs and change the line (should within the first 10
> >>>> lines)
> >>>>
> >>>>> GLES_VERSION=: GLES_VERSION * 0~: (".@:wd :: 1:) 'qopenglmod'
> >>>>
> >>>> to
> >>>>
> >>>> GLES_VERSION=: 0
> >>>>
> >>>> If your computer has opengl 2.0 or newer driver, then you won't need
> >>>> the ANGLE opengl es emulation.
> >>>>
> >>>> On Mon, Mar 23, 2015 at 5:39 PM, Raul Miller <[email protected]>
> wrote:
> >>>>> Thanks, I should have included more detail.
> >>>>>
> >>>>> This works fine for me on OSX, but fails with windows jqt:
> >>>>>
> >>>>>    JVERSION
> >>>>> Engine: j803/2014-10-19-11:11:11
> >>>>> Library: 8.03.12
> >>>>> Qt IDE: 1.3.1/5.3.2
> >>>>> Platform: Win 64
> >>>>> Installer: J803 install
> >>>>> InstallPath: c:/users/user/j64-803
> >>>>>
> >>>>> I currently do not have access to any linux machines suitable for
> opengl work.
> >>>>>
> >>>>> I upgraded jqt (jconsole: install 'all') and I'm still getting the
> failure:
> >>>>>
> >>>>>    JVERSION
> >>>>> Engine: j803/2014-10-19-11:11:11
> >>>>> Library: 8.03.13
> >>>>> Qt IDE: 1.3.1/5.3.2
> >>>>> Platform: Win 64
> >>>>> Installer: J803 install
> >>>>> InstallPath: c:/users/user/j64-803
> >>>>>
> >>>>> Thanks again,
> >>>>>
> >>>>> --
> >>>>> Raul
> >>>>>
> >>>>> On Sun, Mar 22, 2015 at 10:37 PM, bill lam <[email protected]>
> wrote:
> >>>>>> I tested ok on linux64. What is your JVERSION and OS?
> >>>>>>
> >>>>>> BTW this kind of check is not needed, if there is no "s" suffix
> >>>>>> in the output of wd'version', then the system should already
> >>>>>> support opengl.
> >>>>>>
> >>>>>> Вс, 22 мар 2015, Raul Miller написал(а):
> >>>>>>> I can reliably crash J by running:
> >>>>>>>
> >>>>>>> clear'' NB. clear base locale
> >>>>>>> require 'graphics/gl2 api/gles'
> >>>>>>> coinsert 'jgl2 jgles'
> >>>>>>> testdlls=: 3 : 0
> >>>>>>> try.
> >>>>>>>  wd 'pc testopengl;minwh 10 10;cc g opengl;pclose'
> >>>>>>>  'OpenGL OK.'
> >>>>>>> catch.
> >>>>>>>  wdpclose 'testopengl'
> >>>>>>>  'OpenGL create context failed. OpenGL not available.'
> >>>>>>> end.
> >>>>>>> )
> >>>>>>>
> >>>>>>> followed by a short pause and then
> >>>>>>>
> >>>>>>> testdlls''
> >>>>>>>
> >>>>>>> If I omit the initial (clear'') the crash does not occur.
> >>>>>>>
> >>>>>>>    9!:14''
> >>>>>>> j803/2014-10-19-11:11:11
> >>>>>>>
> >>>>>>> Please let me know if you cannot reproduce this crash using these
> steps.
> >>>>>>>
> >>>>>>> Thanks,
> >>>>>>>
> >>>>>>> --
> >>>>>>> Raul
> >>>>>>>
> >>>>>>>
> >>>>>>> On Sat, Mar 21, 2015 at 7:22 PM, bill lam <[email protected]>
> wrote:
> >>>>>>> > documentation in jwiki page
> >>>>>>> >
> >>>>>>> > http://www.jsoftware.com/jwiki/OpenGL%20ES
> >>>>>>> >
> >>>>>>> > Also api of opengl 1.3 or older have been removed from the
> latest addon
> >>>>>>> > update.
> >>>>>>> >
> >>>>>>> > Artifacts of opengl lab in labs addons have also been removed.
> If it still
> >>>>>>> > shows opengl labs, remove the whole labs addon and install again.
> >>>>>>> > On Mar 22, 2015 1:28 AM, "Raul Miller" <[email protected]>
> wrote:
> >>>>>>> >
> >>>>>>> >> I now realize you were speaking of api/gles
> >>>>>>> >>
> >>>>>>> >> I had been playing with webgl and was wondering what you needed
> to change.
> >>>>>>> >>
> >>>>>>> >> I've a fair bit of studying ahead of me.
> >>>>>>> >>
> >>>>>>> >> Thanks,
> >>>>>>> >>
> >>>>>>> >> --
> >>>>>>> >> Raul
> >>>>>>> >>
> >>>>>>> >>
> >>>>>>> >> On Sat, Mar 21, 2015 at 1:10 PM, bill lam <[email protected]>
> wrote:
> >>>>>>> >> > I updated opengl addon to opengl 4.5 and opengles 3.1.
> >>>>>>> >> > All 6 shaders should now be supported.  Interestingly
> >>>>>>> >> > opengles 3 supports compute shader but not tessellation
> >>>>>>> >> > or geometry.
> >>>>>>> >> >
> >>>>>>> >> > Untested because my of hardware limitation.
> >>>>>>> >> >
> >>>>>>> >> > Пт, 20 мар 2015, jprogramming написал(а):
> >>>>>>> >> >> An overview of opengl versions as I understand them:
> >>>>>>> >> >>
> >>>>>>> >> >> gl ES 3.0 gl4.3 is a pretty safe target.  flagship level
> 2013 android
> >>>>>>> >> devices supported and android 4.3.  Any current 4.4 $100 tablet
> would
> >>>>>>> >> likely support.  Older desktops/laptops.
> >>>>>>> >> >>
> >>>>>>> >> >> gl ES 3.1 gl 4.5 is the version that adds compute shaders
> officially,
> >>>>>>> >> though it was actually added in gl 4.3.  Nvidia has gl 4.5
> drivers, ATI/AMD
> >>>>>>> >> is unclear, though some 7000 series cards (APUs are 7000
> series) support
> >>>>>>> >> the 4.3 extention.  Android 5.0 and a higher end graphics chip
> (though low
> >>>>>>> >> end intel atoms work, though those devices don't have 5.0 yet)
> is needed.
> >>>>>>> >> Last year's high end, and current midrange android 5.0 mobile
> devices
> >>>>>>> >> should support it (when they get 5.0 apk).
> >>>>>>> >> >>
> >>>>>>> >> >>
> >>>>>>> >> >> ----- Original Message -----
> >>>>>>> >> >> From: Raul Miller <[email protected]>
> >>>>>>> >> >> To: Programming forum <[email protected]>
> >>>>>>> >> >> Cc:
> >>>>>>> >> >> Sent: Friday, March 20, 2015 9:28 AM
> >>>>>>> >> >> Subject: Re: [Jprogramming] Labs was Re: Plotting a 3D
> Ellipse
> >>>>>>> >> >>
> >>>>>>> >> >> Commonly used? That will depend on context.
> >>>>>>> >> >>
> >>>>>>> >> >> Compute Shaders could be useful for someone attempting to
> implement J
> >>>>>>> >> >> primitives (perhaps with reduced functionality or
> constrained domain
> >>>>>>> >> >> but increased performance) within OpenGL.
> >>>>>>> >> >>
> >>>>>>> >> >> Tessellation Control  (roughly equivalent to a scan on an
> array of up
> >>>>>>> >> >> to 120 vertices) and Tesselation Evaluation (roughly
> equivalent to
> >>>>>>> >> >> whatever on the result of the TC shader) shaders let you
> present
> >>>>>>> >> >> imagery which does not precisely fit the "polygonal" model
> of the
> >>>>>>> >> >> opengl data structures. (Smooth surfaces and hair-like
> structures are
> >>>>>>> >> >> two examples.)
> >>>>>>> >> >>
> >>>>>>> >> >> How much work is it to add support for a shader type?
> >>>>>>> >> >>
> >>>>>>> >> >> ...
> >>>>>>> >> >>
> >>>>>>> >> >> As for the incompatibility issues - that's going to take
> some work. We
> >>>>>>> >> >> will have to iterate on the effort here, with some things
> failing for
> >>>>>>> >> >> some people until we polish things up.
> >>>>>>> >> >>
> >>>>>>> >> >> Anyways, all of this will take some time. But I think it
> will be fun.
> >>>>>>> >> >> Or maybe useful.
> >>>>>>> >> >>
> >>>>>>> >> >> Thanks,
> >>>>>>> >> >>
> >>>>>>> >> >> --
> >>>>>>> >> >> Raul
> >>>>>>> >> >>
> >>>>>>> >> >> On Fri, Mar 20, 2015 at 2:06 AM, bill lam <
> [email protected]> wrote:
> >>>>>>> >> >> > Current opengl addon only supports vertex, fragment and
> geometry
> >>>>>>> >> shaders,
> >>>>>>> >> >> > please let us know what other shaders are commonly used
> and should be
> >>>>>>> >> >> > included.
> >>>>>>> >> >> >
> >>>>>>> >> >> > Also note that different versions of GLSL are
> incompatible. Your lab
> >>>>>>> >> may
> >>>>>>> >> >> > need to detect and run different versions depending on the
> target
> >>>>>>> >> computer.
> >>>>>>> >> >> > On Mar 20, 2015 1:23 PM, "Raul Miller" <
> [email protected]> wrote:
> >>>>>>> >> >> >
> >>>>>>> >> >> >> It looks like the J6 documentation on lab file format:
> >>>>>>> >> >> >> http://www.jsoftware.com/docs/help602/user/labs.htm has
> also been
> >>>>>>> >> >> >> dropped from J803
> >>>>>>> >> >> >>
> >>>>>>> >> >> >> So, ok, I at least have a starting point. I imagine I'll
> trip a few
> >>>>>>> >> >> >> more times when testing out whatever parts of
> opengl2/webgl J
> >>>>>>> >> >> >> implementations currently support. I'll check back in
> here after I
> >>>>>>> >> >> >> have (a) made some progress, and (b) feel like I need
> some more
> >>>>>>> >> >> >> orientation.
> >>>>>>> >> >> >>
> >>>>>>> >> >> >> Thanks,
> >>>>>>> >> >> >>
> >>>>>>> >> >> >> --
> >>>>>>> >> >> >> Raul
> >>>>>>> >> >> >>
> >>>>>>> >> >> >> On Fri, Mar 20, 2015 at 12:12 AM, robert therriault
> >>>>>>> >> >> >> <[email protected]> wrote:
> >>>>>>> >> >> >> > Raul,
> >>>>>>> >> >> >> >
> >>>>>>> >> >> >> > Labs can be created just using a text editor, but if
> you really
> >>>>>>> >> want to
> >>>>>>> >> >> >> use Author, I have created labs in 602 with Author and
> just moved
> >>>>>>> >> the lab
> >>>>>>> >> >> >> file created over to the lab folder in j802.
> >>>>>>> >> >> >> >
> >>>>>>> >> >> >> > Cheers, bob
> >>>>>>> >> >> >> >
> >>>>>>> >> >> >> > On Mar 19, 2015, at 9:09 PM, Brian Schott <
> [email protected]>
> >>>>>>> >> >> >> wrote:
> >>>>>>> >> >> >> >
> >>>>>>> >> >> >> >> It looks like the Author system has been omitted in j8
> because of
> >>>>>>> >> the
> >>>>>>> >> >> >> >> following statement.
> >>>>>>> >> >> >> >>
> >>>>>>> >> >> >> >> ── (9 of 9) Lab Author
> ──────────────────────────────────────
> >>>>>>> >> >> >> >> The Lab Author system available from menu
> Studio|Author...
> >>>>>>> >> >> >> >> allows you to build or edit labs.
> >>>>>>> >> >> >> >>
> >>>>>>> >> >> >> >> To experiment, select Studio|Author... and open up the
> lab
> >>>>>>> >> >> >> >> system/author.ijt.
> >>>>>>> >> >> >> >> )
> >>>>>>> >> >> >> >>
> >>>>>>> >> >> >> >>
> >>>>>>> >> >> >> >>
> >>>>>>> >> >> >> >> --
> >>>>>>> >> >> >> >> (B=)
> >>>>>>> >> >> >> >>
> >>>>>>> >>
> ----------------------------------------------------------------------
> >>>>>>> >> >> >> >> For information about J forums see
> >>>>>>> >> http://www.jsoftware.com/forums.htm
> >>>>>>> >> >>
> >>>>>>> >> >> >> >
> >>>>>>> >> >> >> >
> >>>>>>> >>
> ----------------------------------------------------------------------
> >>>>>>> >> >> >> > For information about J forums see
> >>>>>>> >> http://www.jsoftware.com/forums.htm
> >>>>>>> >> >> >>
> >>>>>>> >>
> ----------------------------------------------------------------------
> >>>>>>> >> >> >> For information about J forums see
> >>>>>>> >> http://www.jsoftware.com/forums.htm
> >>>>>>> >> >> >
> ----------------------------------------------------------------------
> >>>>>>> >> >> > For information about J forums see
> >>>>>>> >> http://www.jsoftware.com/forums.htm
> >>>>>>> >> >>
> ----------------------------------------------------------------------
> >>>>>>> >> >> For information about J forums see
> http://www.jsoftware.com/forums.htm
> >>>>>>> >> >>
> ----------------------------------------------------------------------
> >>>>>>> >> >> For information about J forums see
> http://www.jsoftware.com/forums.htm
> >>>>>>> >> >
> >>>>>>> >> > --
> >>>>>>> >> > regards,
> >>>>>>> >> > ====================================================
> >>>>>>> >> > GPG key 1024D/4434BAB3 2008-08-24
> >>>>>>> >> > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> >>>>>>> >> > gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
> >>>>>>> >> >
> ----------------------------------------------------------------------
> >>>>>>> >> > For information about J forums see
> http://www.jsoftware.com/forums.htm
> >>>>>>> >>
> ----------------------------------------------------------------------
> >>>>>>> >> For information about J forums see
> http://www.jsoftware.com/forums.htm
> >>>>>>> >
> ----------------------------------------------------------------------
> >>>>>>> > For information about J forums see
> http://www.jsoftware.com/forums.htm
> >>>>>>>
> ----------------------------------------------------------------------
> >>>>>>> For information about J forums see
> http://www.jsoftware.com/forums.htm
> >>>>>>
> >>>>>> --
> >>>>>> regards,
> >>>>>> ====================================================
> >>>>>> GPG key 1024D/4434BAB3 2008-08-24
> >>>>>> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> >>>>>> gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
> >>>>>>
> ----------------------------------------------------------------------
> >>>>>> For information about J forums see
> http://www.jsoftware.com/forums.htm
> >>>>>
> ----------------------------------------------------------------------
> >>>>> For information about J forums see
> http://www.jsoftware.com/forums.htm
> >>>> ----------------------------------------------------------------------
> >>>> For information about J forums see
> http://www.jsoftware.com/forums.htm
> >> ----------------------------------------------------------------------
> >> For information about J forums see http://www.jsoftware.com/forums.htm
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> 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