Quantcast
Channel: Using Processing - Processing 2.x and 3.x Forum
Viewing all 813 articles
Browse latest View live

Troubleshooting help - processing crashes on startup

$
0
0

I have a Mac OSX 10.10.5. Up until yesterday Processing version 2.2.1 was working perfectly. Now, it crashes when I try to start it up - no error message is displayed and I cannot open any sketches. The message in my console is: "WindowServer[121]: _CGXRemoveWindowFromWindowMovementGroup: Window not in group." I have not changed any settings or added any new libraries, tools, etc. I did upgrade to the latest version of Processing but that did not solve the issue. Can anyone please advise how I can best troubleshoot this? Thank you so much.

Update: deleting the preferences.txt file solved it!


Processing 3: Error occurs during startup

$
0
0

I downloaded the Processing 3 Beta-5 version of processing but I can't get it to run. When I run the "processing" script I see the splash screen and then this error message:

We're off on the wrong foot
An error occurred during startup
java.lang.NullPointerException
at processing.app.Base.buildCoreModes(Base.java:351)
at processing.app.Base.(Base.java:270)
at processing.app.Base.createAndShowGUI(Base.java:199)
...

Here is information about my machine:

jim@main:~/INSTALL/processing-3.0b5$ java -version
java version "1.7.0_75"
Java(TM) SE Runtime Environment (build 1.7.0_75-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.75-b04, mixed mode)
jim@main:~/INSTALL/processing-3.0b5$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 15.04
Release:        15.04
Codename:       vivid

What is the problem? Is it reading a processing 2.2.1 configuration file and getting tripped up? (I also have the previous version installed on this machine. it works fine.)

Any help would be appreciated.

-Jim

Error opening processing. was using 3 and tried to install 2. now none of them open.

P3D and P2D only working on Processing 2, failing at 3

$
0
0

I have tried using P3D and P2D on processing 3, but the sketch window simply doesn't open when i press play. And it doesn't display any errors or messages. But it's working perfectly on Processing 2! What's the problem?

I tried using: Processing 3.0b2 and Processing 3.0b5 both x32 and x64 neither works

Processing 2.2 works

Exported to javascript html canvas also works

theMessage problem (I guess with P5)

$
0
0

Hey there, my patcher always worked perfectly. I have the line: void oscEvent(OscMessage theMessage){ } all of a sudden, i get a 'problem' message: 'the value of the parameter theMessage is not used.' I updated Processing and P5 to the latest versions. I'm not good enough in programming to know what is going on. Please help if it is a bug. Thanx

Exporting as a Windows application from Ubuntu 16.04 does not work

$
0
0

I am using Ubuntu 16.04 64bits. I want to export an processing application to Windows (also 64bits). However, when I run the File->Export tool, I get the following error:

=============

Compiling resources
Generated resource file...


LANGUAGE 0, 1
2 RCDATA BEGIN "1.7.0_40\0" END
18 RCDATA BEGIN "1\0" END
30 RCDATA BEGIN "2\0" END
12 RCDATA BEGIN "-Djna.nosys=true -Djava.library.path=""%EXEDIR%\\lib""\0" END
1 ICON DISCARDABLE "/home/hugo/Bin/processing/modes/java/application/sketch.ico"
21 RCDATA BEGIN "http://java.com/download\0" END
20 RCDATA BEGIN "32\0" END
101 RCDATA BEGIN "An error occurred while starting the application.\0" END
102 RCDATA BEGIN "This application was configured to use a bundled Java Runtime Environment but the runtime is missing or corrupted.\0" END
103 RCDATA BEGIN "This application requires a Java Runtime Environment\0" END
104 RCDATA BEGIN "The registry refers to a nonexistent Java Runtime Environment installation or the runtime is corrupted.\0" END
15 RCDATA BEGIN "LinhadoTempo\0" END
16 RCDATA BEGIN "lib\\LinhadoTempo.jar;lib\\core.jar;lib\\jogl-all.jar;lib\\gluegen-rt.jar;lib\\jogl-all-natives-windows-i586.jar;lib\\gluegen-rt-natives-windows-i586.jar;lib\\jna.jar;lib\\gstreamer-java.jar;lib\\video.jar;lib\\LeapJava.jar;lib\\LeapMotion.jar\0" END


    windows:


BUILD FAILED
/home/hugo/Downloads/LinhadoTempo/application.windows32/launch4j-build.xml:5: net.sf.launch4j.BuilderException: net.sf.launch4j.ExecException: java.io.IOException: Cannot run program "/home/hugo/Bin/processing/modes/java/application/launch4j/bin/windres": error=2, Arquivo ou diretório não encontrado
    at net.sf.launch4j.Builder.build(Builder.java:146)
    at net.sf.launch4j.ant.Launch4jTask.execute(Launch4jTask.java:111)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:390)
    at org.apache.tools.ant.Target.performTasks(Target.java:411)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    at processing.mode.java.JavaBuild.buildWindowsLauncher(JavaBuild.java:1398)
    at processing.mode.java.JavaBuild.exportApplication(JavaBuild.java:1273)
    at processing.mode.java.JavaBuild.exportApplication(JavaBuild.java:801)
    at processing.mode.java.JavaMode.handleExportApplication(JavaMode.java:248)
    at processing.mode.java.JavaEditor.exportApplicationPrompt(JavaEditor.java:974)
    at processing.mode.java.JavaEditor.handleExportApplication(JavaEditor.java:604)
    at processing.mode.java.JavaEditor$4.actionPerformed(JavaEditor.java:227)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
    at java.awt.Component.processMouseEvent(Component.java:6533)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
    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:4525)
    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)
Caused by: net.sf.launch4j.ExecException: java.io.IOException: Cannot run program "/home/hugo/Bin/processing/modes/java/application/launch4j/bin/windres": error=2, Arquivo ou diretório não encontrado
    at net.sf.launch4j.Util.exec(Util.java:160)
    at net.sf.launch4j.Cmd.exec(Builder.java:212)
    at net.sf.launch4j.Builder.build(Builder.java:96)
    ... 57 more
Caused by: java.io.IOException: Cannot run program "/home/hugo/Bin/processing/modes/java/application/launch4j/bin/windres": error=2, Arquivo ou diretório não encontrado
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
    at java.lang.Runtime.exec(Runtime.java:620)
    at java.lang.Runtime.exec(Runtime.java:485)
    at net.sf.launch4j.Util.exec(Util.java:128)
    ... 59 more
Caused by: java.io.IOException: error=2, Arquivo ou diretório não encontrado
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
    at java.lang.ProcessImpl.start(ProcessImpl.java:134)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
    ... 62 more

Total time: 0 seconds


====

The output folder was created but it does not have all necessary files.

Oracle Java 8 is installed and when I run the program in Processing, it does work well....

Any idea of what the problem is?

Cheers Hugo

Can Processing run in HiDPI mode?

$
0
0

Hi, I've been having issues with Processing looking pixelated on my MacBook Pro, because of the Retina display. Is there a way to make Processing draw at a higher resolution and keep the window the same size (HiDPI mode)?

Processing hangs upon opening.

$
0
0

Hello am new to Processing.

I have installed Processing twice. Am using Mac OS 10.10.5.

Both times, Processing hangs when I press run to basic code 'ellipse(50, 50, 80, 80);'. Have to force quit on both occasion as the application is not responding.

Also, the trackpad ceased to be working when I am using Processing program; works when I switch applications.

The error code is very long, hence I am not posting here unless someone likes to see.

Thank you for in advance for your help.

Cheers Patrick


sketches not running

$
0
0

Hi

I had processing working fine (version processing-3.1.1 x 64). Then the problem started when I installed some libraries. Processing loads however the sketches are not running when I press play. However I get no Errors !

Even a simple

void setup() { size(200,200); }

void draw () { println("test"); }

Does not return "test" in the console or at least an error !!

I have disabled the Antivirus. I have windows 10 I downloaded (version processing-3.1.2 x 64) & deleted my Sketch book location (C:\Users\User\Documents\Processing) I deleted all my temp folders. I also tried starting with the launch4j but I get no errors in there as well.

I will appreciate any help as I no longer have a clue.

Sketches not running

$
0
0

Hey guys,

I'm an absolute noob here so please forgive me if I'm asking a stupid question. I just decided to jump into processing and this is really frustrating for me.

I opened the first example of arrays from the library and when I try to hit run I get no result. Earlier I got an error message which said - "Setting 'Run Sketches on Display' preference to display 1" but now I dont even get the error.

Theres just no response.

Any help please??

"off on the wrong foot" error

$
0
0

Hello guys ,I know this question has been asked several times but I honestly have no clue on how to use the information tha I come across on this and other platforms.If anyone has a latest Processing Version or any other helpful files and downloads,may you please email me at aidgambinya@gmail.com.Your help will be greatly appreciated. Thank You.

Untitled

3.1.2 not running on linux

$
0
0

When I try running processing 3.1.2 under 64bit linux I get this error:

/home/mskogly/Downloads/processing/processing-3.1.2/java/bin/java: 1: /home/mskogly/Downloads/processing/processing-3.1.2/java/bin/java: Syntax error: end of file unexpected (expecting ")")

Solution?

By the way, you need a forum for reporting bugs...

Two Issues with the IDE (3.1.2)

$
0
0

I am running the latest 3.1.2 processing IDE. Since I can remember, 3.0, has always had two problems which I have not been able to fix, on any of my computers.

1) There is no way to turn off the Welcome To Processing window. Even when I uncheck the box, the window always opens when I start Processing.

2) Processing never remembers the window position and size from the last time I used it. ( It does not open the last used project either, but that could be by design).

It happens on all 3 of my machines. Running Windows 10 now, but also happened in Windows 7.

Any ideas?

Processing Frame Rates improved with Google Chrome and NVIDIA Inspector

$
0
0

Hello,

Sharing some interesting observations and a solution for me.

Using Processing 3.1.2 on desktop PC...

When I set the frameRate(x) in the code to x = 30, 60 or 120 the resulting frame rate is 25, 50 or 100; this is 5/6 of the set frame rate.

I observed that when I have my Google Chrome browser open (some pages not all) the frame rate is as expected and can get a rock solid 120!

I monitor actual frame rate by outputting to console, printing to screen and\or using Fraps.

I tried changing many of the NVIDIA card settings available in control panel and they did not change results.

Next, I did some research and came across the NVIDIA Inspector 2.12 software and Fast Vsync: https://technopat.net/sosyal/konu/video-what-is-nvidia-fast-sync.329258/

Setting Vertical Sync to 0x18888888 will enable Fast Sync and give me actual frame rates that match set frame rates.

System is an i7-6700 with an GeForce GTX 745 (OEM)

This leaves me with questions...

1) What is Google Chrome doing to set (from default?) the video settings?

2) Any other hidden gems of information I should know? :)

Some of my recent work: https://www.youtube.com/user/etshopstuff :) GLV

How to install Video Library without the Library Manager?

$
0
0

I have a sketch using the Video library that I'd like to run on a computer that's internet-less. Exporting the sketch as an application just gives me a grey screen when I try to run it on my dev computer (something having to do with not being able to load "gluegen-rt.dll") and similarly, when I tried to run it directly on the target computer (a windows machine, just froze the screen when I ran the executable)

I thought I could maybe find out the cause or at least work around this by installing Processing on the target machine and just running it from the IDE, but I need the Video library for my sketch, and that apparently cannot be installed without using the library manager (quoting https://processing.org/reference/libraries/ ). However, I cannot use the library manager as I have no internet on the target machine.

Is there a way to install the library without having to use the library manager? Thanks!


An icon representing my sketch appears in the task bar but nothing further, can somebody help me?

$
0
0

When i write code, press play, an icon representing my sketch appears in the task bar but not a single thing on the screen, i even copied and pasted the code from the book, can somebody help me please?

I get "Cannot link shader program:Unknown error" when running library examples (most 3D) ... fix?

$
0
0

I get "Cannot link shader program:Unknown error" when running library examples (most 3D) ... fix? (fyi: graphics driver says it is up to date and cannot update). Win 7; Intel Core i3; 4GB RM; on board Intel Graphics Media Accelerator HD. Do I need a new laptop?

Automatic Start

$
0
0

Is there a way to automatically run a processing file when it is loaded?

Some sketches don't export well, and sometimes I am not there to click the mouse.

PGraphics Output Doesn't... (large pngs)

$
0
0

Hi folks, My story is that I am running P302 on Ubuntu Linux. I have a sketch that outputs a PGraphics object in PNG format no problem. The other day I upped the size of the PNG output to 10x7K. The program ran the same as always (no error messages) but the output file simply wasn't there. Dropping back to a smaller size, the output file was written to disk. Going back to the 10x7K size - program runs normally but no output file on disk.

I then changed my output file format from PNG to TIF and the output file was output!

So my two questions are:

1) Have others experienced problems saving large PGraphics objects as PNGs?

2) Is there a way I can discover what is going on under the covers in the creation of PNG output such that it fails but produces no error message in the console? Note I haven't tried a try/catch but as the statement appears to run normally (no error messages and program execution continues normally) I'm betting try/catch wouldn't tell me anything.

Thanks.

"cannot compile vertex " error in P2D

$
0
0

"cannot compile vertex " error in P2D

My scketches works fine. Some of them in Python mode and others in Java mode. In both cases, when i put "size(800,600,P2D)" the sketch shows this menssage.

Cannot compile vertex shader:0:1(11):error:syntax error, unexpected EOL, expectind INTCONSTANT at processing.core.PGraphics.showException(PGraphics.java:8199)

i'm using Linux Mint(Quiara)17

Viewing all 813 articles
Browse latest View live