Shocker's picture

2byte character may causes a bug with GL.ShaderSource .

Project:The Open Toolkit library
Version:1.1.0-stable
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

When I used a command --- GL.ShaderSource --- which receives a shader code including 2byte character , Program crashed .
Error Message is below .

System.Runtime.InteropServices.COMException (0x8007007A)
The data area passed to a system call is too small.

I did some experiments .
- I used a shader GUI , "RenderMonkey" and "Shader Maker" , and I wrote some shaders including 2 byte character . There was no problem .
- I tried adding some 2byte char comment into the shader in OpenTK.Examples - OpenGL - 3.0 - HelloGL3.cs (0.9.9-3) . the crash appeared .


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ganaware's picture

#11

I'm sorry for the late response to this issue.
I commented on https://github.com/opentk/opentk/issues/18 .

ganaware's picture

#12

I'm sorry for the late response to this issue.
I commented on https://github.com/opentk/opentk/issues/18 .

the Fiddler's picture

#13

Version:1.1.0-2013-12-15» 1.1-dev
Status:in progress (review)» fixed

This is finally fixed in https://github.com/opentk/opentk/commit/e1ef27d59314a4512437e745c015abe5...

The fix will be included in 1.1-rc2.

the Fiddler's picture

#14

Version:1.1-dev» 1.1.0-stable
Status:fixed» closed

This issue is fixed in opentk-1.1.0.