When clicking on the error message : "Could not open the url" #4695

Closed
KhaledTo opened this Issue Oct 7, 2016 · 9 comments

Comments

Projects
None yet
3 participants
@KhaledTo

KhaledTo commented Oct 7, 2016

Hi,

So when i click on the error message (see screenshot) i get the message "Could not open the url" :

screenshot from 2016-10-06 22 52 17

Is it supposed to open my web browser ?

@gohai

This comment has been minimized.

Show comment
Hide comment
@gohai

gohai Oct 7, 2016

Contributor

@KhaledTo Which version of Processing is this? (Looks like you've compiled it yourself?) This is Ubuntu Linux?

Contributor

gohai commented Oct 7, 2016

@KhaledTo Which version of Processing is this? (Looks like you've compiled it yourself?) This is Ubuntu Linux?

@KhaledTo

This comment has been minimized.

Show comment
Hide comment
@KhaledTo

KhaledTo Oct 7, 2016

@gohai Sorry i forgot to precise.

Yeah, I complied myself, I followed :
https://github.com/processing/processing/wiki/Build-Instructions

Ubuntu 14.04.5 LTS
Processing 3.2.1
Java 8 (1.8.0_101)
Ant version 1.9.3

KhaledTo commented Oct 7, 2016

@gohai Sorry i forgot to precise.

Yeah, I complied myself, I followed :
https://github.com/processing/processing/wiki/Build-Instructions

Ubuntu 14.04.5 LTS
Processing 3.2.1
Java 8 (1.8.0_101)
Ant version 1.9.3

@gohai

This comment has been minimized.

Show comment
Hide comment
@gohai

gohai Oct 7, 2016

Contributor

Does this happen the same way when you use a downloaded version of Processing 3.2.1? Do you have the vlw file in your sketch directory?

Contributor

gohai commented Oct 7, 2016

Does this happen the same way when you use a downloaded version of Processing 3.2.1? Do you have the vlw file in your sketch directory?

@gohai

This comment has been minimized.

Show comment
Hide comment
@gohai

gohai Oct 7, 2016

Contributor

Could you also copy and paste the entire stacktrace (the text in red in your screenshot)? That might help.

Contributor

gohai commented Oct 7, 2016

Could you also copy and paste the entire stacktrace (the text in red in your screenshot)? That might help.

@KhaledTo

This comment has been minimized.

Show comment
Hide comment
@KhaledTo

KhaledTo Oct 7, 2016

I didn't try yet with a downloaded version, I don't have a correct vlw file in the example i showed you, the message appears whenever i click on the error message, for instance it appears when i click on the empty space where the message is supposed to be displayed (with the correct file name) :

screenshot from 2016-10-07 09 13 57

java.lang.NullPointerException
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1012)
    at java.lang.Runtime.exec(Runtime.java:620)
    at java.lang.Runtime.exec(Runtime.java:485)
    at processing.app.platform.LinuxPlatform.openURL(LinuxPlatform.java:74)
    at processing.app.Platform.openURL(Platform.java:149)
    at processing.app.ui.EditorStatus$1.mousePressed(EditorStatus.java:112)
    at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
    at java.awt.Component.processMouseEvent(Component.java:6530)
    at java.awt.Component.processEvent(Component.java:6298)
    at java.awt.Container.processEvent(Container.java:2236)
    at java.awt.Component.dispatchEventImpl(Component.java:4889)
    at java.awt.Container.dispatchEventImpl(Container.java:2294)
    at java.awt.Component.dispatchEvent(Component.java:4711)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4522)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
    at java.awt.Container.dispatchEventImpl(Container.java:2280)
    at java.awt.Window.dispatchEventImpl(Window.java:2746)
    at java.awt.Component.dispatchEvent(Component.java:4711)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
    at java.awt.EventQueue$4.run(EventQueue.java:731)
    at java.awt.EventQueue$4.run(EventQueue.java:729)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Could this come from the fact that openURL() in Platform.java uses java.awt.Desktop and the fact that i use a Linux distribution ?

KhaledTo commented Oct 7, 2016

I didn't try yet with a downloaded version, I don't have a correct vlw file in the example i showed you, the message appears whenever i click on the error message, for instance it appears when i click on the empty space where the message is supposed to be displayed (with the correct file name) :

screenshot from 2016-10-07 09 13 57

java.lang.NullPointerException
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1012)
    at java.lang.Runtime.exec(Runtime.java:620)
    at java.lang.Runtime.exec(Runtime.java:485)
    at processing.app.platform.LinuxPlatform.openURL(LinuxPlatform.java:74)
    at processing.app.Platform.openURL(Platform.java:149)
    at processing.app.ui.EditorStatus$1.mousePressed(EditorStatus.java:112)
    at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
    at java.awt.Component.processMouseEvent(Component.java:6530)
    at java.awt.Component.processEvent(Component.java:6298)
    at java.awt.Container.processEvent(Container.java:2236)
    at java.awt.Component.dispatchEventImpl(Component.java:4889)
    at java.awt.Container.dispatchEventImpl(Container.java:2294)
    at java.awt.Component.dispatchEvent(Component.java:4711)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4522)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
    at java.awt.Container.dispatchEventImpl(Container.java:2280)
    at java.awt.Window.dispatchEventImpl(Window.java:2746)
    at java.awt.Component.dispatchEvent(Component.java:4711)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
    at java.awt.EventQueue$4.run(EventQueue.java:731)
    at java.awt.EventQueue$4.run(EventQueue.java:729)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Could this come from the fact that openURL() in Platform.java uses java.awt.Desktop and the fact that i use a Linux distribution ?

@KhaledTo

This comment has been minimized.

Show comment
Hide comment
@KhaledTo

KhaledTo Oct 7, 2016

Ok, I just tried with a downloaded version and got the same result.

KhaledTo commented Oct 7, 2016

Ok, I just tried with a downloaded version and got the same result.

@gohai

This comment has been minimized.

Show comment
Hide comment
@gohai

gohai Oct 8, 2016

Contributor

What happens if you run xdg-open http://processing.org/ in a terminal?

Contributor

gohai commented Oct 8, 2016

What happens if you run xdg-open http://processing.org/ in a terminal?

@KhaledTo

This comment has been minimized.

Show comment
Hide comment
@KhaledTo

KhaledTo Oct 8, 2016

It opens correctly the web page and I got this message :

(firefox:5956): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

KhaledTo commented Oct 8, 2016

It opens correctly the web page and I got this message :

(firefox:5956): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

@benfry benfry closed this in 286ebb5 Oct 29, 2016

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Oct 29, 2016

Member

Fixed for 3.2.2 or 3.3, whichever we use for the next release after 3.2.1.

Member

benfry commented Oct 29, 2016

Fixed for 3.2.2 or 3.3, whichever we use for the next release after 3.2.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment