ender2012 / xmlisp

Automatically exported from code.google.com/p/xmlisp
0 stars 0 forks source link

Crash after selecting an openGL object and then open the open file chooser #25

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. start of the windows ccl IDE
2.  load xmlisp-init
3. Execute this code:
(in-package :xlui)
(setq window
<application-window>
<agent-3d-view>
<cube/>
</agent-3d-view>
</application-window>)
3.  Select the cube that shows up (notice the cube is highlighted)
4. in the windows ccl IDE go to the file menu, select open
5. The IDE will crash.

What is the expected output? What do you see instead?
I expect that this will not crash the IDE.

Please use labels and text to provide additional information.

This bug is easily reproducible on two mac computer running windows XP and 
windows 7 on 
parallels, and on normal PC running XP and windows 7 but it seems that Gary has 
not been able 
to reproduce this bug on his machine.  

Original issue reported on code.google.com by pokermik...@gmail.com on 6 Apr 2010 at 12:38

GoogleCodeExporter commented 8 years ago
Fixed by r377.

This was your bug (i.e., in XMLisp).  The size of the buffer passed to 
glSelectBuffer is the number of GLuint's that 
can be stored in the buffer.  So, you need to allocate a buffer large enough 
and your code wasn't.  (It allocated 
BUFSIZE bytes and told OpenGL the buffer was BUFSIZE GLuint's.)  Consequently, 
you were experiencing heap 
corruption which eventually lead to the behavior you saw.

Original comment by palter@clozure.com on 18 Apr 2010 at 7:08