madflow / flow-netbeans-markdown

Markdown file support for the NetBeans IDE
MIT License
279 stars 40 forks source link

Netbeans crashes every time after clicking "preview" #85

Open dunkirk16 opened 9 years ago

dunkirk16 commented 9 years ago

Even with an empty md file. Product Version: NetBeans IDE 8.0.2 (Build 201411181905)

madflow commented 9 years ago

I cannot reproduce this. My System is pretty similar to the info above. Lets see of anyone else also has this experience :S

dunkirk16 commented 9 years ago

This is a newly installed system (ubuntu 15.04 64-bit). I installed java 8 via ppa repository this time (not sure if this is the problem). $ sudo add-apt-repository ppa:webupd8team/java $ sudo apt-get update $ sudo apt-get install oracle-java8-installer $ sudo apt-get install oracle-java8-set-default

eugenevd commented 9 years ago

I have the same problem. Ubuntu 15.04 64bit with java 8 from webupd8 (1.8.0_45)

madflow commented 9 years ago

I also have Ubuntu 15.04 64bit with java 8 from webupd.

java version "1.8.0_45" Java(TM) SE Runtime Environment (build 1.8.0_45-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

I purged the java installation and re-installed it, deleted my local .netbeans directory and tried again - no avail. I still cannot reproduce this. I will keep looking.

madflow commented 9 years ago

Since I assume you downloaded the plugin from the Update Center, could you try installing the previous version https://github.com/madflow/flow-netbeans-markdown/releases/download/2.1/flow-netbeans-markdown.nbm and check if the preview also crashes?

Edit Also: Please try to disable JavaFX Preview (Options->Miscellaneous->Markdown->Miscellaneous) and try again. Thanks.

madflow commented 9 years ago

I was able to reproduce this with a fresh virtual machine with Ubuntu 15.04. The error is related to to the "JavaFX Preview". An intermediate fix for all having this problem is disabling JavaFX Preview (Options->Miscellaneous->Markdown->Miscellaneous).

madflow commented 9 years ago

This error seems not be related to this plugin (how it is programmed). The only difference between my test VM noted above and my main OS is that I use Gnome3 on my host computer and not Unity. When I installed XFCE on the test VM with Ubuntu 15.04 and used the XFCE login the error went away. I got the idea from this post: http://stackoverflow.com/questions/29519242/ubuntu-javafx-a-fatal-error-has-been-detected-by-the-java-runtime-environment

=> I will leave this open - maybe there is a way to change this. For the time being I will document this as a known issue. Unity Users cannot enjoy the Javafx Preview though :|

eugenevd commented 9 years ago

Disabling JavaFX preview at least prevents Netbeans from crashing abruptly. Thanks

dunkirk16 commented 9 years ago

Yes, disabling JavaFX preview works. Thanks.

Mondane commented 6 years ago

Still occurs on Ubuntu 16.04

Chris2011 commented 6 years ago

Maybe a problem with the JDK version, it seems very old. Try to use a newer one.

madflow commented 6 years ago

@Mondane Please post your Netbeans and JDK version. Also ... Are you using Unity? Any other Desktop Environment? I have Ubuntu 16.04 at work and I can use the JavaFx preview.

Mondane commented 6 years ago

@madflow that would be Unity with:

Product Version: NetBeans IDE 8.2 (Build 201609300101) Updates: Updates available to version NetBeans 8.2 Patch 2 Java: 1.8.0_101; Java HotSpot(TM) 64-Bit Server VM 25.101-b13 Runtime: Java(TM) SE Runtime Environment 1.8.0_101-b13 System: Linux version 4.4.0-96-generic running on amd64; UTF-8; nl_NL (nb)

After disabling 'JavaFX', the preview works on my system.

Chris2011 commented 6 years ago

Try to update to a newer JDK 8 version. we are at 180_144 I think.