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

no stroke with OpenGL sketches on a 2007 Mac Mini (GMA 950) #1260

Closed
processing-bugs opened this issue Feb 10, 2013 · 10 comments
Closed

no stroke with OpenGL sketches on a 2007 Mac Mini (GMA 950) #1260

processing-bugs opened this issue Feb 10, 2013 · 10 comments
Labels

Comments

@processing-bugs
Copy link

Original author: clankil...@gmail.com (September 10, 2012 11:17:27)

In processing 2.02b i can't see the stroke in OPENGL.
Running at max os x 10.7.4, mac mini (half 2007)

import processing.opengl.*;

color black;

void setup() {
size(1000, 1000, OPENGL);
black = color(0);
}

// . . . . . . . . . . . . . . . . . . .

void draw() {
background(255);

noFill();
stroke(black);
//fill(black);
rect(100, 50, 400, 200);
}

Original issue: http://code.google.com/p/processing/issues/detail?id=1222

@processing-bugs
Copy link
Author

From andres.c...@gmail.com on September 10, 2012 14:07:32
Hello, are the lines drawn with the following sketch:

size(100, 100, P3D);
background(255);
stroke(0);
line(0, 0, width, height);
line(0, height, width, 0);

? (note that now P3D is same as OPENGL, and the processing.opengl import is not necessary)

@processing-bugs
Copy link
Author

From f...@processing.org on September 10, 2012 16:56:20
Andres: This is a GMA 950, might not be up to the task for newer GL, though we at least need to have a warning/error in there. Especially because there are a ton of Macs out there with this config.

@processing-bugs
Copy link
Author

From andres.c...@gmail.com on September 10, 2012 17:03:07
All right.

@clankill3r: could you run the Demos/Tests/SpecsTest example and report back the output you get in the console? I will try to use that information to add an initialization test that will warn if not all the required GL features are available.

@processing-bugs
Copy link
Author

From clankil...@gmail.com on September 12, 2012 10:28:02
note: i moved to processing 2.0b3

for:

size(100, 100, P3D);
background(255);
stroke(0);
line(0, 0, width, height);
line(0, height, width, 0);

I get a big error and the sketch doesn't run:
GLException: array offset argument "infoLog_offset" (0) equals or exceeds array length (0)

with in the console as first error line:
The OpenGL version is less than 2.0 so Processing might not draw properly


for Demos/Tests/SpecsTest
here it comes:
++++

The OpenGL version is less than 2.0 so Processing might not draw properly
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT (8cd6)
at processing.opengl.PGL.validateFramebuffer(PGL.java:2507)
at processing.opengl.PGL.updatePrimary(PGL.java:710)
at processing.opengl.PGraphicsOpenGL.beginDraw(PGraphicsOpenGL.java:1556)
at processing.core.PApplet.handleDraw(PApplet.java:2081)
at processing.opengl.PGL$PGLListener.display(PGL.java:2593)
at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:189)
at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:177)
at javax.media.opengl.awt.GLCanvas$DisplayAction.run(GLCanvas.java:928)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:425)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:364)
at javax.media.opengl.awt.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:827)
at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:415)
at javax.media.opengl.awt.GLCanvas.paint(GLCanvas.java:515)
at sun.awt.RepaintArea.paintComponent(RepaintArea.java:276)
at sun.awt.RepaintArea.paint(RepaintArea.java:241)
at apple.awt.ComponentModel.handleEvent(ComponentModel.java:263)
at java.awt.Component.dispatchEventImpl(Component.java:4813)
at java.awt.Component.dispatchEvent(Component.java:4565)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:684)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:643)
at java.awt.EventQueue$1.run(EventQueue.java:641)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:657)
at java.awt.EventQueue$2.run(EventQueue.java:655)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:654)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
OpenGL error 1281 at top beginDraw(): invalid value
Smooth level 2 is not supported by the hardware. Using 0 instead.
OpenGL error 1286 at bot beginDraw(): invalid framebuffer operation
Intel Inc.
Intel GMA 950 OpenGL Engine
1.4 APPLE-7.0.52
1.20
GL_ARB_depth_texture GL_ARB_draw_elements_base_vertex GL_ARB_draw_instanced GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_instanced_arrays GL_ARB_multitexture GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_provoking_vertex GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_shadow GL_ARB_sync GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_texture_non_power_of_two GL_ARB_texture_rectangle GL_ARB_transpose_matrix GL_ARB_vertex_blend GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_clip_volume_hint GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_object GL_EXT_framebuffer_sRGB GL_EXT_geometry_shader4 GL_EXT_gpu_program_parameters GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_provoking_vertex GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_s3tc GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_transform_feedback GL_APPLE_aux_depth_stencil GL_APPLE_client_storage GL_APPLE_element_array GL_APPLE_fence GL_APPLE_flush_buffer_range GL_APPLE_flush_render GL_APPLE_object_purgeable GL_APPLE_packed_pixels GL_APPLE_pixel_buffer GL_APPLE_rgb_422 GL_APPLE_row_bytes GL_APPLE_specular_vector GL_APPLE_texture_range GL_APPLE_transform_hint GL_APPLE_vertex_array_object GL_APPLE_vertex_array_range GL_APPLE_vertex_point_size GL_APPLE_vertex_program_evaluators GL_APPLE_ycbcr_422 GL_ATI_separate_stencil GL_ATI_texture_env_combine3 GL_IBM_rasterpos_clip GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texgen_reflection GL_SGIS_generate_mipmap GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod
OpenGL error 1286 at bot endDraw(): invalid framebuffer operation

@processing-bugs
Copy link
Author

From andres.c...@gmail.com on September 12, 2012 14:31:39
ok thanks. I realized that a check in the GL initialization was missing, which could had been the reason for the error. I already committed the fix to the source repository.

However, I don't have a Mac Mini with the GMA 950 to run tests right now. You could check the fix yourself, but you would need to build Processing from the source. Otherwise, you need to wait until a new beta release is out, or until I can get a hold on a machine with the GMA 950.

@processing-bugs
Copy link
Author

From clankil...@gmail.com on September 12, 2012 16:06:07
i have no hurry, i will wait for the new beta.
thanks so far.

@processing-bugs
Copy link
Author

From andres.c...@gmail.com on October 02, 2012 15:52:18
If you run the sketch I attached below, do you still get errors?

@processing-bugs
Copy link
Author

From clankil...@gmail.com on October 04, 2012 15:36:46
the first time i runnend i got a part of my monitor upside down in the sketch which looked cool :)

anyway, i got a error:

GLException: array offset argument "infoLog_offset" (0) equals or exceeds array length (0)

this is the console dump:

The OpenGL version is less than 2.0 so Processing might not draw properly
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT (8cd6)
at processing.opengl.PGL.validateFramebuffer(PGL.java:2507)
at processing.opengl.PGL.updatePrimary(PGL.java:710)
at processing.opengl.PGraphicsOpenGL.beginDraw(PGraphicsOpenGL.java:1556)
at processing.core.PApplet.handleDraw(PApplet.java:2081)
at processing.opengl.PGL$PGLListener.display(PGL.java:2593)
at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:189)
at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:177)
at javax.media.opengl.awt.GLCanvas$DisplayAction.run(GLCanvas.java:928)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:425)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:364)
at javax.media.opengl.awt.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:827)
at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:415)
at javax.media.opengl.awt.GLCanvas.paint(GLCanvas.java:515)
at sun.awt.RepaintArea.paintComponent(RepaintArea.java:276)
at sun.awt.RepaintArea.paint(RepaintArea.java:241)
at apple.awt.ComponentModel.handleEvent(ComponentModel.java:263)
at java.awt.Component.dispatchEventImpl(Component.java:4820)
at java.awt.Component.dispatchEvent(Component.java:4572)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:704)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:663)
at java.awt.EventQueue$2.run(EventQueue.java:661)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:677)
at java.awt.EventQueue$3.run(EventQueue.java:675)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:674)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
OpenGL error 1281 at top beginDraw(): invalid value
Smooth level 2 is not supported by the hardware. Using 0 instead.
OpenGL error 1286 at bot beginDraw(): invalid framebuffer operation
Exception in thread "Animation Thread" javax.media.opengl.GLException: array offset argument "infoLog_offset" (0) equals or exceeds array length (0)
at jogamp.opengl.gl4.GL4bcImpl.glGetProgramInfoLog(GL4bcImpl.java:10106)
at processing.opengl.PGL.getProgramInfoLog(PGL.java:1582)
at processing.opengl.PShader.init(PShader.java:688)
at processing.opengl.PShader.getAttributeLoc(PShader.java:353)
at processing.opengl.PGraphicsOpenGL$LineShader.loadAttributes(PGraphicsOpenGL.java:7021)
at processing.opengl.PGraphicsOpenGL.getLineShader(PGraphicsOpenGL.java:6453)
at processing.opengl.PGraphicsOpenGL.flushLines(PGraphicsOpenGL.java:2737)
at processing.opengl.PGraphicsOpenGL.flush(PGraphicsOpenGL.java:2536)
at processing.opengl.PGraphicsOpenGL.endDraw(PGraphicsOpenGL.java:1739)
at processing.core.PApplet.handleDraw(PApplet.java:2147)
at processing.opengl.PGL$PGLListener.display(PGL.java:2593)
at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:189)
at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:177)
at javax.media.opengl.awt.GLCanvas$DisplayAction.run(GLCanvas.java:928)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:425)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:364)
at javax.media.opengl.awt.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:945)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:702)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:663)
at java.awt.EventQueue$2.run(EventQueue.java:661)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:672)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

@processing-bugs
Copy link
Author

From andres.c...@gmail.com on November 27, 2012 20:27:09
Tested latest revision (r10519, which includes several improvements in the shader code) on a Mac mini (model 2,1) with Intel Core 2 Duo, 2GB of RAM, and GMA 950 with 64 MB of shared video memory, running OS X 10.6.8. All the OpenGL examples work, with the exception of some advanced shaders.

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant