Re: Netbeans platform apps processes not properly caught at IDE shutdown?

2022-05-28 Thread Guy Daniel

Hi Eric,

Yes, it's the same issue - 4050.

I'm only running maven via the netbeans ide - not running any daemons.

Also, I can make the problem go away if I change net-java-html-boot-fx 
out for the 11.3 version, so I would suspect there is some regression in 
that module.


It may have something to do with the JFX thread not being shut down 
properly?


Thanks!

Guy

On 5/29/22 00:54, Eric Bresie wrote:

Assume this is  https://github.com/apache/netbeans/issues/4050

I'm assuming this is not related but is Maven Daemon used in this case as
well?  If so, could running daemon in the background cause any issues
during shutdown?

Eric Bresie
ebre...@gmail.com


On Mon, May 2, 2022 at 4:07 PM Guy Daniel  wrote:


Hi Jean-Marc,

I submitted a bug report and Neil S got me to follow this thread:
https://lists.apache.org/thread/6l3tg4brq4522gcmc956jjtj855p6710

I have found that running the Netbeans IDE without a JDK that comes
bundled with JFX stops the issue for me (running Linux)?

I have also registered some Java platforms within Netbeans that have JFX
bundled, and can run the Netbeans Platform project with one of those
without a problem. I have also got the Netbeans JFX Implementation
module turned off - which Patrik K says has an effect on the issue as well.

At the end of that thread there are some exclusions for the
org.netbeans.html modules that Patrik K put in his Platform project
which made the problem disappear - I have not had time to try this yet.

Thanks!

Guy

On 4/20/22 01:39, Jean-Marc Borer wrote:

Hi There,

My environment:

*Product Version:* Apache NetBeans IDE 13

*Updates:* Updates available 

*Java:* 17.0.2; OpenJDK 64-Bit Server VM 17.0.2+8-LTS

*Runtime:* OpenJDK Runtime Environment 17.0.2+8-LTS

*System:* Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)


When I run our Netbeans Platform Applications based on 12.4 with Java
8 from Maven, the process is apparently not properly caught, because
when I close the IDE, the following dialog appears:


image.png

If I start the application several times, the processes stack up (the
list grows). However in the process status bar, they properly disappear.

Did anyone observe this strange  behavior. It happened already with NB
12.4 and 12.5?

Thank you in advance for your help.

Cheers,

JMB



-
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists





Re: Netbeans platform apps processes not properly caught at IDE shutdown?

2022-05-28 Thread Eric Bresie
Assume this is  https://github.com/apache/netbeans/issues/4050

I'm assuming this is not related but is Maven Daemon used in this case as
well?  If so, could running daemon in the background cause any issues
during shutdown?

Eric Bresie
ebre...@gmail.com


On Mon, May 2, 2022 at 4:07 PM Guy Daniel  wrote:

> Hi Jean-Marc,
>
> I submitted a bug report and Neil S got me to follow this thread:
> https://lists.apache.org/thread/6l3tg4brq4522gcmc956jjtj855p6710
>
> I have found that running the Netbeans IDE without a JDK that comes
> bundled with JFX stops the issue for me (running Linux)?
>
> I have also registered some Java platforms within Netbeans that have JFX
> bundled, and can run the Netbeans Platform project with one of those
> without a problem. I have also got the Netbeans JFX Implementation
> module turned off - which Patrik K says has an effect on the issue as well.
>
> At the end of that thread there are some exclusions for the
> org.netbeans.html modules that Patrik K put in his Platform project
> which made the problem disappear - I have not had time to try this yet.
>
> Thanks!
>
> Guy
>
> On 4/20/22 01:39, Jean-Marc Borer wrote:
> > Hi There,
> >
> > My environment:
> >
> > *Product Version:* Apache NetBeans IDE 13
> >
> > *Updates:* Updates available 
> >
> > *Java:* 17.0.2; OpenJDK 64-Bit Server VM 17.0.2+8-LTS
> >
> > *Runtime:* OpenJDK Runtime Environment 17.0.2+8-LTS
> >
> > *System:* Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
> >
> >
> > When I run our Netbeans Platform Applications based on 12.4 with Java
> > 8 from Maven, the process is apparently not properly caught, because
> > when I close the IDE, the following dialog appears:
> >
> >
> > image.png
> >
> > If I start the application several times, the processes stack up (the
> > list grows). However in the process status bar, they properly disappear.
> >
> > Did anyone observe this strange  behavior. It happened already with NB
> > 12.4 and 12.5?
> >
> > Thank you in advance for your help.
> >
> > Cheers,
> >
> > JMB
> >


Re: Netbeans platform apps processes not properly caught at IDE shutdown?

2022-05-02 Thread Guy Daniel

Hi Jean-Marc,

I submitted a bug report and Neil S got me to follow this thread:
https://lists.apache.org/thread/6l3tg4brq4522gcmc956jjtj855p6710

I have found that running the Netbeans IDE without a JDK that comes 
bundled with JFX stops the issue for me (running Linux)?


I have also registered some Java platforms within Netbeans that have JFX 
bundled, and can run the Netbeans Platform project with one of those 
without a problem. I have also got the Netbeans JFX Implementation 
module turned off - which Patrik K says has an effect on the issue as well.


At the end of that thread there are some exclusions for the 
org.netbeans.html modules that Patrik K put in his Platform project 
which made the problem disappear - I have not had time to try this yet.


Thanks!

Guy

On 4/20/22 01:39, Jean-Marc Borer wrote:

Hi There,

My environment:

*Product Version:* Apache NetBeans IDE 13

*Updates:* Updates available 

*Java:* 17.0.2; OpenJDK 64-Bit Server VM 17.0.2+8-LTS

*Runtime:* OpenJDK Runtime Environment 17.0.2+8-LTS

*System:* Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)


When I run our Netbeans Platform Applications based on 12.4 with Java 
8 from Maven, the process is apparently not properly caught, because 
when I close the IDE, the following dialog appears:



image.png

If I start the application several times, the processes stack up (the 
list grows). However in the process status bar, they properly disappear.


Did anyone observe this strangeĀ  behavior. It happened already with NB 
12.4 and 12.5?


Thank you in advance for your help.

Cheers,

JMB


Re: Netbeans platform apps processes not properly caught at IDE shutdown?

2022-04-28 Thread Guy Daniel

Hi All,

I have submitted a bug report for this.

I was only able to tag it version 13, although it also is a problem with 
14rc1.


Thanks!

Guy


On 4/20/22 01:39, Jean-Marc Borer wrote:

Hi There,

My environment:

*Product Version:* Apache NetBeans IDE 13

*Updates:* Updates available 

*Java:* 17.0.2; OpenJDK 64-Bit Server VM 17.0.2+8-LTS

*Runtime:* OpenJDK Runtime Environment 17.0.2+8-LTS

*System:* Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)


When I run our Netbeans Platform Applications based on 12.4 with Java 
8 from Maven, the process is apparently not properly caught, because 
when I close the IDE, the following dialog appears:



image.png

If I start the application several times, the processes stack up (the 
list grows). However in the process status bar, they properly disappear.


Did anyone observe this strangeĀ  behavior. It happened already with NB 
12.4 and 12.5?


Thank you in advance for your help.

Cheers,

JMB


Re: Netbeans platform apps processes not properly caught at IDE shutdown?

2022-04-28 Thread Guy Daniel

Hi All,

Yes, I can confirm that this is an issue with NB14rc1 as well.

I created a vanilla Netbeans Platform project, rebuilt it and found this 
problem.


It's only annoying when you go to shutdown netbeans, and it has to wait 
to shut-down many tasks that seem to be left running after many 
code/debug/run platform project cycles during the course of development.


I am running Linux and tried this with a variety of JDK's >= 11, 
including Oracle JDK17.


Thanks,

Guy

On 4/20/22 01:39, Jean-Marc Borer wrote:

Hi There,

My environment:

*Product Version:* Apache NetBeans IDE 13

*Updates:* Updates available 

*Java:* 17.0.2; OpenJDK 64-Bit Server VM 17.0.2+8-LTS

*Runtime:* OpenJDK Runtime Environment 17.0.2+8-LTS

*System:* Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)


When I run our Netbeans Platform Applications based on 12.4 with Java 
8 from Maven, the process is apparently not properly caught, because 
when I close the IDE, the following dialog appears:



image.png

If I start the application several times, the processes stack up (the 
list grows). However in the process status bar, they properly disappear.


Did anyone observe this strangeĀ  behavior. It happened already with NB 
12.4 and 12.5?


Thank you in advance for your help.

Cheers,

JMB


Re: Netbeans platform apps processes not properly caught at IDE shutdown?

2022-04-21 Thread Jean-Marc Borer
I forgot to mention that you have to set
*tryme.arg.hack=-J-Dnetbeans.full.hack=true* in *nbbuild/build.properties* to
see it happen.

On Fri, Apr 22, 2022 at 12:03 AM Jean-Marc Borer  wrote:

> New info: I built from scratch NB 13 on MacOS this time. No plugins just
> plain vanilla IDE.
>
> *Product Version:* Apache NetBeans IDE 13-dev
>
> *Java:* 18; OpenJDK 64-Bit Server VM 18+36
>
> *Runtime:* OpenJDK Runtime Environment 18+36
>
> *System:* Mac OS X version 10.15.7 running on x86_64; UTF-8; en_CH (nb)
>
> *User directory:* ...
>
> *Cache directory:* ...
>
> I was able to debug it and reproduce the issue: just create a simple
> sample NB app Maven project, run it and stop it. Then quit the IDE and even
> though the process is terminated, it is not properly removed from the
> running tasks list in the closing dialog.
>
> The ExecutionEngine.fireExecutionStarted is called at the beginning but
> its counterpart ExecutionEngine.fireExecutionFinished is not called. The
> issue occurs in RunClassThread, where the call to "result = def.result();"
> blocks infinitely and the "finish" callback is never invoked. This doesn't
> happen with a simple Maven project. Somehow the thread group is not correct
> and cannot finish. As I don't know this part of the IDE, I have no
> explanation yet.
>
>
>
> On Tue, Apr 19, 2022 at 6:01 PM Jean-Marc Borer  wrote:
>
>>
>> Here one can see that there are no more processes running, however the
>> IDE still believes there is a NB app.
>>
>


Re: Netbeans platform apps processes not properly caught at IDE shutdown?

2022-04-21 Thread Jean-Marc Borer
New info: I built from scratch NB 13 on MacOS this time. No plugins just
plain vanilla IDE.

*Product Version:* Apache NetBeans IDE 13-dev

*Java:* 18; OpenJDK 64-Bit Server VM 18+36

*Runtime:* OpenJDK Runtime Environment 18+36

*System:* Mac OS X version 10.15.7 running on x86_64; UTF-8; en_CH (nb)

*User directory:* ...

*Cache directory:* ...

I was able to debug it and reproduce the issue: just create a simple sample
NB app Maven project, run it and stop it. Then quit the IDE and even though
the process is terminated, it is not properly removed from the running
tasks list in the closing dialog.

The ExecutionEngine.fireExecutionStarted is called at the beginning but its
counterpart ExecutionEngine.fireExecutionFinished is not called. The issue
occurs in RunClassThread, where the call to "result = def.result();" blocks
infinitely and the "finish" callback is never invoked. This doesn't happen
with a simple Maven project. Somehow the thread group is not correct and
cannot finish. As I don't know this part of the IDE, I have no explanation
yet.



On Tue, Apr 19, 2022 at 6:01 PM Jean-Marc Borer  wrote:

>
> Here one can see that there are no more processes running, however the IDE
> still believes there is a NB app.
>


Re: Netbeans platform apps processes not properly caught at IDE shutdown?

2022-04-19 Thread Jean-Marc Borer
Here one can see that there are no more processes running, however the IDE
still believes there is a NB app.

-
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists