You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Thomas Willms (JIRA)" <ji...@apache.org> on 2019/02/25 16:12:00 UTC

[jira] [Commented] (NETBEANS-1902) Programm stopps without visible reason: Thread stopped at Java

    [ https://issues.apache.org/jira/browse/NETBEANS-1902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16777049#comment-16777049 ] 

Thomas Willms commented on NETBEANS-1902:
-----------------------------------------

Hallo,

I've written an extensive complex Java command line program. If I go through each step of a pro­grammed function individually with debug, everything works. If I don't go completely through all the steps of the same function, but step over it with F8, then the green colour of the bar - indicating the current position - often disappears at once. "The program is still running according to menu/run, but there is a message “Thread stopped at Java (line number) user program running". 

But no line was reached where it is required to enter data. There's no other way as to restart the written program. A deadlock is not found. Going through the program further - using the debugger - is not possible. No new bar appears even when you press F8. However, the program has not gone through all lines until the end or until the next data entry.

If I go through the program directly afterwards with the debugger line by line of the same function - that previously did not work with F8 because the given phenomenon occurs - using F7 the program works perfectly. This has occurred many times.

A reason for the stop of the thread is not clear, although it sometimes seems as if it happens at lines where a breakpoint was before. The problem occurs even when I start the program normally, not using debugging.  Unfortunately, it is difficult to reproduce the problem. It happens however so often that it occurs again without that one could predict it. 

Can someone help me? Due to the complexity it is difficult to show where the problem is but as I don't change anything - except the data file which I replace by the same version as before each time - I don't see how to resolve this problem.

> Programm stopps without visible reason: Thread stopped at Java 
> ---------------------------------------------------------------
>
>                 Key: NETBEANS-1902
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1902
>             Project: NetBeans
>          Issue Type: Bug
>          Components: java - Compiler
>    Affects Versions: 9.0, 10.0
>         Environment: Windows 10 Pro, Java 8 unter Netbeans Apache 10.0
>            Reporter: Thomas Willms
>            Priority: Critical
>              Labels: command-line, debugger
>
> Ich habe ein umfangreiches komplexes Java-Kommandozeilen-Programm geschrieben. Wenn ich durch eine programmierte Funktion mit Debug jeden Schritt einzeln durchlaufe, funktioniert alles. Wenn ich jedoch durch dieselbe Funktion nicht komplett die einzelnen Schritte durchlaufe, sondern sie mit F8 durchlaufe, dann verschwindet auf einmal die grüne Farbe des Balkens, der die aktuelle Position angibt. Das Programm läuft laut Menü/Run noch, aber es gibt eine Meldung "Thread stopped at Java (Liniennummer)" User Program running".  Es wurde aber keine Zeile erreicht, an der eine Eingabe erforderlich ist. Es bleibt keine andere Möglichkeit, als das geschriebene Programm neu zu starten. Ein Deadlock wird nicht gefunden. Weiteres Durchlaufen mit dem Debugger ist nicht möglich. Der Balken erscheint auch nicht neu, wenn man F8 drückt. Das Programm ist jedoch nicht fertig durchgelaufen.
> Wenn ich dieselbe Funktion, die vorher mit F8 nicht funktionierte, weil das angegebene Phänomen auftritt, mit dem Debugger Zeile für Zeile mit F7 durchlaufe, dann funktioniert alles auf einmal. Dies ist viele Male aufgetreten.
> Ein Grund für das Stoppen des Threads ist nicht ersichtlich, obwohl es manchmal den Anschein hat, als ob es daran liegen könnte, dass an derselben Stelle vorher ein Haltepunkt war.
> Das Problem taucht sogar beim ganz normalen Starten des Programmes mit Run statt mit Debug auf. Leider ist es schwierig, das Auftauchen definiert zu reproduzieren. Es ist jedoch so häufig, dass es immer wieder mal auftritt, ohne dass man es jedoch vorhersagen könnte.
>  Kann mir da jemand helfen?
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

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