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
slow startup of OpenGL sketches with 2.0b9 on Linux #1784
Comments
I have same problem. Sketches with P2D/P3D renderers are not running. OS: openSuse 12.3 x64. |
Just tried Processing 2.0beta9 and I'm having the same issue on Xubuntu 12.04 (latest nvidia driver for GEFORCE 610M 2GB): no sketch run when using P2D or P3D. :-( |
Having some sucess with ArchLinux by minimising the ide once I get greyed out sketch (esfera) then miraculously sketch runs (xfce), suggest it might work for @darkwave. |
The bug seems to persist when using optirun to run processing with Bumblebee ... @monkstone you are right: sketches run if minimized and restored. |
The downloadable version seems to have the issue. Still open? |
There also seem to be issues on 64bit windows version as well from the discusssion board, as well. I actually first noticed the issue following download of the Mac distro from which I extracted relevant binaries for use with ruby-processing. Could it be the build? Strange that the not much changed version on github seems to be OK!! |
continue.... NewtCanvasAWT.attachNewtChild.2: size 1366x768 |
I tested some versions between b8 and b9, and found that 17a2117 breaks P2D/P3D. |
Yet the weird thing is that the current source (version 0218) includes the same binaries, and yet I can build and run that on Archlinux with none of the above issues. However I have issues when I tried to build and run the same under Kubuntu. |
Look, from 17a2117 : But this is present: |
Hi, it's a good hint for me, @kles4enko. I tried AWT instead of NEWT in Linux and it worked well. There must be some issues in NEWT.
|
toolkit = AWT; events = NEWT; also worked well. |
@fukuchi great! |
May'be @fukuchi could issue a pull request whilst we are at I'd like to point out the possibility of requesting different look and feels via preferences.txt editor.laf=com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel or even metal which on my system looks better than the default gtk L&F |
I just checked the included gluegen and jogl jars (processing-2.0b9), both were compiled with jdk-1.6 (Created-By: 1.6.0_37-b06-434-11M3909 (Apple Inc.)). |
Same error (never patient enough to wait for canvas creation, don't know whether it takes long or forever), bisected to 17a2117. Linux vivaldi 3.5.0-27-generic #46-Ubuntu SMP Mon Mar 25 19:58:17 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux |
I have same problem on Ubuntu 12.04 (All versions of Processing 2.X that I've tried so far) |
You should find processing-2.0b8 and earlier work OK, otherwise your issue may be related to your video-card and or driver (check the discussion board). |
No. None of the 2.Xs work. I've tried 2.0b7, 2.0b8, 2.0b9 1.5 still works though so at some level the drivers are presumably working on my machine. Do you have any idea what layer I should be looking at with the 2.0s? For example in 2.08 in a sketch in P3D I get this : libEGL warning: failed to create a pipe screen for i965 Same code works fine in 1.5. |
Yeah but can you run OPENGL sketches on processing-1.5.1 (since processing-2.0 P3D is OPENGL2) |
Yes, I can do import processing.opengl.*; and then create my window with : size(1024,768,OPENGL); |
As I suggested earlier your issue is not a bug, you should look to the processing forum, perhaps starting here:- |
Returning to processing-2.0b9 issue, here is the console output when trying to run frequenceModulation example sketch (which for some mysterious reason [integrated graphics and sound?] uses P3D) Sketch failed to run with latest compiled source, until I drag it to a new desktop (ArchLinux). Change the sketch to default from P3D and it runs OK |
hello guys, thanks for the detailed report and discussion. I'm able to reproduce the initialization freezes, at least with an ubuntu 12.10 64bit machine with a radeon card and latest fglrx drivers, when using NEWT... I updated to the latest jogl builds and switched to AWT as the window and event toolkit (commits 894d657 and 7f174e8) and the problem seems to go away. Please give it a try and let me know if you still find problems and under what specific hardware/software. Thanks! (one issue I'm already noticing though is that the fps seems to be capped at 30, even if I set a higher value with the frameRate function) |
@codeanticode having issues compiling on kubuntu for some reason (complains missing javascript mode?), anyway I did distro compile on archlinux and tested on kubuntu and archlinux. Now both now working OK (shader sketches and esefera), but the lwgl example (RestartTest) that did previously work after a fashion no longer works. |
PS: for other testers I found I needed to stash the original jogl binaries as these were being seen as locally modified for some reason. |
In relation to compilation issues, I'd recommend running "ant clean" first to make sure that no left-overs are kept. For example, the android and javascript modes are no longer bundled with processing-code, they have to be compiled and installed separately. I did several changes in the PGL interface, but didn't have the time to update the LWJGL renderer accordingly. Right now, only the default OpenGL renderer (JOGL-based) is guaranteed to work. |
I always run ant clean before building so it is all a bit peculiar... I mentioned LWGL in passing, the other example failed to run previously. |
Forgot to mention, regarding the problem involving Java2D, please open a separate issue. |
Not sure I can be bothered since I raised it ages ago and it got closed by casey with no fix see #1625 |
Fixed for me |
Testing on a Ubuntu 12.10 64bit system, with a Radeon HD 6670 video card and latest version of fglrx drivers. Using most recent revision from the repo where I switched to AWT as the windowing toolkit, I don't observe any significant delay in the startup of P2D/P3D sketches. I will leave this issue open for now, but I imagine that certain window manager + opengl driver configurations might be problematic and not possible to fix properly. |
I confirmed that the current revision from the repository works very well on my Ubuntu notebook (i915). |
I think this can be closed regarding my java2D issue which I re-reported I can confirm that this is "fixed" when replacing provided jre and tools with a symbolic link to either openjdk or oracle jdk1.7.0_21 (the issue happens for me whether kde, fluxbox or xfce desktop) so it is fixable #1833. |
Thanks for reporting back! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
There seem to be an absolutely huge delay in loading the NEWT canvas on linux (Kubuntu). Any sketch with P2D or or P3D, takes forever to load on Kubuntu (64bit), whilst Java2D sketches run OK. The actual performance once loaded for say esfera sketch seems OK. However the issue is even worse on ArchLinux with Fluxbox or XFCE desktops as the canvas fails to load (a frame displays but is greyed out), so no P3D or P2D sketches run. Processing-2.0b8 works fine on all above systems.
OK I've done a bit more experimenting, and curiously I seem to be getting better results launching sketches via the command line, well actually from jEdit (can't do with all that typing), except I need to 'hide' the jEdit frame to get the sketch frame to render sketches, so it seems there may some sort of "windowing issue". I actually came to this from updating ruby-processing, and I'm now beginning to doubt whether the sketches actually ran at all from the processing-ide (I tried re-running sketches from Kubuntu and no P2D, P3D sketches ran.
The text was updated successfully, but these errors were encountered: