Re: How stable is 1.5?



"Larry Barowski" <MElarrybar-AT-eng_DOT_auburnANOTHERDOTeduEND> wrote in
message news:q5adnSX_moelOvbenZ2dnUVZ_tWdnZ2d@xxxxxxxxxxxxxx
>
> The crash happens when a window peer is disposed.
> For a test case, did you try popping up a window and
> disposing it repeatedly?

The relevant code is at a point where a Panel is removed and a new Panel is
added. I fiddled with the code a bit from the code in the thread I cited
from exactly a year ago, but the problem remains. What I'm doing is
creating a new "Page" class extending Panel. Here is the core method, in
which the constrain class is for a GridBagLayout:
___________________
Page.now = pageCode;
Page newPage = instantiateClass(pageCode); // making the new object before
adding it
newPage.resetValuesForPage();
if (page != null) remove(page);
page = newPage;
Page.constrain(this, page, 0, 0, 1, 1, GridBagConstraints.NORTH, 0, 0, 0,
0, GridBagConstraints.BOTH, 1, 1);
if (!infoTipPanelConstrained && Page.pageAllowingTips(Page.now))
{
Page.constrain(this, infoTipPanel, 0, 1, 1, 1,
GridBagConstraints.NORTH, 2, 2, 0, 2, GridBagConstraints.HORIZONTAL, 1, 0);
resetInfoTipPanel(page.getMainPanelScroll());
infoTipPanelConstrained = true;
}
else if (infoTipPanelConstrained && !Page.pageAllowingTips(Page.now))
{
if (infoTipPanel != null) remove(infoTipPanel);
infoTipPanelConstrained = false;
}
validate(); // calls setBounds and makes TextFields visible for setText to
call textValueChanged
page.resetFocusForPage(); // calls methods to set focus after the
components are visible
____________________

I tried all sorts of simulations but was unable to reproduce the problem in
a smaller applet. For typical bugs I've been able to narrow down the
problem, as illustrated by the many reductionistic bugs listed at
www.segal.org/java/.

> Also, I would email back whoever rejected your bug
> report, tell them they are being silly and to at least
> have someone take a look at the crash dump. After
> all, if you are not using JNI, a true crash can not be
> the fault of the application programmer (though I
> suppose this could be a video driver bug). That
> worked for me when I found a JDI bug in Java 1.6.
> I was working hard to restrain my annoyance, so I
> think the worst I said in regard to always demanding
> a test case was "use your common sense".

I'm not using JNI. I can understand Sun's reluctance to deal with an applet
that has 30,000 lines of code, but clearly their JVM is buckling
intermittently under some sort of strain and it is not something one can
necessarily reproduce in a small program.

I once had a similar problem that occurred only in Apple's old MRJ JVM, and
the engineers at Apple were able to look at the crucial code and recommend a
workaround to their error. The workaround involved creating new objects
with temporary names before adding them to a layout. The changes from last
year's code to this year's code attempted to try a similar approach, but
without success.

If this happened more than 1% of the time it would be simpler to tinker.


.



Relevant Pages

  • Re: MyString Class
    ... > I compiled your program and run it under the debugger. ... > The first crash happens in ... ... > memory is flawed. ... First bug fixed. ...
    (comp.lang.cpp)
  • 2.4.23-pre9 ide+XFree+ptrace=Complete hang
    ... This is a very vague bug report... ... sometimes even the bios crashes (the fn key ceases to cause a status LED ... Perhaps I should mention that this doesn't seem to be a strace bug per se ... The minimum case I've managed to get to crash: ...
    (Linux-Kernel)
  • [crash] BUG: unable to handle kernel NULL pointer dereference at 0000000000000370
    ... Kernel BUG at ffffffff8079afb1 ... my tests have also triggered another boot crash on the same ... this crash led to the bisection result i posted in the previous mail. ...
    (Linux-Kernel)
  • Re: HEADS DOWN
    ... FreeBSD did not have a choice in the ... FreeBSD normally just emits a warning to stderr and does not crash ... We can't be "bug for bug tolerant" with Linnex without copying ... And since our allocator is vastly superior ...
    (freebsd-arch)
  • Re: ListBox SelectionMode None ??
    ... My workaround is just set the SelectionMode to a value other than None ... in FormClosing event. ... But I just think it is a bug when disposing the ListBox. ...
    (microsoft.public.dotnet.framework.windowsforms)