Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3 core dump/immediate crash by clicking on external URLs #397

Closed
GHPS opened this issue Mar 22, 2016 · 14 comments
Closed

V3 core dump/immediate crash by clicking on external URLs #397

GHPS opened this issue Mar 22, 2016 · 14 comments

Comments

@GHPS
Copy link

GHPS commented Mar 22, 2016

I did some further testing on the Platform and Boards manager.

No good idea was using the offered help: In V3 I get an immediate crash and core dump of Eclipse by clicking on "Where do I find json URL's?".

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x60c85005, pid=10226, tid=3075372800
#
# JRE version: OpenJDK Runtime Environment (8.0_72-b15) (build 1.8.0_72-internal-b15)
# Java VM: OpenJDK Server VM (25.72-b15 mixed mode linux-x86 )
# Problematic frame:
# C  [libgdk-x11-2.0.so.0+0x48005]  gdk_display_open+0x45
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /usr/lib/arduino-eclipse-pluginV3/it.baeyens.arduino.product/target/products/it.baeyens.arduino.product/linux/gtk/x86/eclipseArduino/hs_err_pid10226.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
@jantje
Copy link
Member

jantje commented Mar 22, 2016

It should open a browser :-(
Do you get the same issue when you do menu->arduino->learn/"how to"/video's ?

@GHPS
Copy link
Author

GHPS commented Mar 22, 2016

Yes - all external links cause a complete crash.

BTW: The L in "learn" is lower case. And "Video's" should be "Videos" (simple plural s).

@GHPS
Copy link
Author

GHPS commented Mar 22, 2016

It should open a browser :-(

There's a setting under "General/Web Browser".

By default it is set to "internal". I set it to "external" and "Firefox" instead of "Default system web browser".

Didn't help either - still crashing.

@GHPS GHPS changed the title V3 core dump/immediate crash by clicking on "Where do I find json URL's?" V3 core dump/immediate crash by clicking on external URLs Mar 23, 2016
@GHPS
Copy link
Author

GHPS commented Mar 23, 2016

Update: The problem is definitely related to the Arduino plugin: If I open Help/Eclipse Marketplace/Newsletter I can click on any link to read it in my web browser - without crash.

@jantje
Copy link
Member

jantje commented Mar 23, 2016

It works fine under windows 10 and linux redhat.
If I'm not mistaken you use ubuntu 14. I'll have a look there.
Eclipse settings will not impact this as I use a standard java way of working.

String url = event.getParameter("it.baeyens.arduino.core.link.parameter");//$NON-NLS-1$
Desktop.getDesktop().browse(new URI(url));

https://github.com/jantje/arduino-eclipse-plugin/blob/master/it.baeyens.arduino.core/src/it/baeyens/arduino/actions/LinkCommandHandler.java#L24

@jantje
Copy link
Member

jantje commented Mar 25, 2016

I just tried this in ubuntu 14 and eclipse freezes and then crashes with a very similar messages as you provided.
I'm looking for the root cause now.

jantje pushed a commit that referenced this issue Mar 25, 2016
@jantje
Copy link
Member

jantje commented Mar 25, 2016

I'm now using org.eclipse.swt.program.Program.launch
I hope this fixes it. Form tomorrow onwards available on the nightly for tests

@jantje jantje added domain: gui importance: usability OS: linux Status: waiting for confirmation fix works The nightly contains a fix but the fix has not yet been confirmed to work. labels Mar 25, 2016
@jantje
Copy link
Member

jantje commented Mar 26, 2016

It worked for the menu but not for the json link.
Can someone try the new code on Mac?

jantje pushed a commit that referenced this issue Mar 26, 2016
jantje pushed a commit that referenced this issue Mar 26, 2016
@jantje
Copy link
Member

jantje commented Mar 27, 2016

I tested this on ubuntu 14 and on windows 10.
It works now.
It would be nice if someone can confirm it also works on mac

@jantje jantje added status: fixed in 3.0 and removed Status: waiting for confirmation fix works The nightly contains a fix but the fix has not yet been confirmed to work. labels Mar 27, 2016
@ghost
Copy link

ghost commented Mar 27, 2016

Just updated to the latest nightly under Mac OSX 10.11.4 and tried to click onto Arduino => How To..., Learn..., and Videos...
Each time, Safari opens and the correct content is displayed. So I can confirm that it is fixed for Mac, too.

@jantje
Copy link
Member

jantje commented Mar 27, 2016

@universpharmacie
txs :-)

@ghost
Copy link

ghost commented Mar 27, 2016

you're (as always) welcome!

@GHPS
Copy link
Author

GHPS commented Mar 28, 2016

I can confirm that the bug is fixed under Kubuntu 14.04 LTS.

Jantje - you nailed it. Great, perfect.

@GHPS GHPS closed this as completed Mar 28, 2016
@jantje
Copy link
Member

jantje commented Mar 28, 2016

I keep issues open till they are in a release.
The flag fixed in nightly is used to show the nightly status.

@jantje jantje reopened this Mar 28, 2016
@jantje jantje closed this as completed Apr 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants