Closed GoogleCodeExporter closed 8 years ago
Looks like a null pointer dereference to me.
Original comment by jcoffl...@gmail.com
on 23 Mar 2011 at 11:55
This is a problem with 64bit computers. ( I don't have a 64 bit computer ).
The problem is that I am using a cast memory point of my HeeksObj objects, as a
"name" for the OpenGL picking.
See this line in HeeksCAD/src/MarkedList.cpp:
HeeksObj *object = (HeeksObj *)(data[pos]);
The problem is that the "name" data, that it is casting back from, is probably
only 32-bit, so we are getting a bad memory pointer.
or maybe it's a problem that I am casting using "unsigned long" and that is
messing up the 64-bit pointer.
( see this code in src/HeeksCAD.cpp :
if(select)glPushName((unsigned long)object)
Original comment by danhe...@gmail.com
on 23 Mar 2011 at 12:04
Thanks looking in to this. Great looking software by the way.
I'm a software developer as well. I noticed on one of your Web pages that
people can request commit access to the repository. To establish some
credentials, I'm currently the main programmer for the Folding@home project and
am proprietor of Cauldron Development LLC.
Now that you've given me some pointers I'll see if I can fix the problem myself.
It would be great to get some 64-bit Ubuntu packages working well. I noticed
there is an empty heekscad PPA on Ubuntu's site. Any idea who is responsible
for this?
Original comment by jcoffl...@gmail.com
on 23 Mar 2011 at 9:46
According to the document below glPushName() takes a GLuint which is a 32-bit
number I believe, which confirms your assessment.
http://pyopengl.sourceforge.net/documentation/manual/glPushName.3G.html
I'll see if can figure something out.
Original comment by jcoffl...@gmail.com
on 24 Mar 2011 at 4:06
OK, I've come up with a fix. I created a small indexing class, have made
HeeksObjs get an index when they need one and release it when they are
deallocated. This fixed the crashes I was experiencing on the 64-bit system
when clicking objects.
Attached patches for HeeksCAD and HeeksCNC are against r1434 and r1312
respectively. The HeeksCNC patch is very small but important.
Original comment by jcoffl...@gmail.com
on 24 Mar 2011 at 8:16
Attachments:
Slight change the previous attachment.
Original comment by jcoffl...@gmail.com
on 24 Mar 2011 at 8:22
Attachments:
Thanks a lot Joseph. I have tried this in my 32-bit Windows build. It seems to
still work OK. I have committed your changes to HeeksCAD and HeeksCNC.
I have added you as a committer to HeeksCAD and HeeksCNC projects. I am
guessing you are jcoffland@gmail.com ( this website is hiding your full email
address ).
You should now be able to committ changes. You will need to change your SVN
path from http to https.
Thanks again.
Dan Heeks.
Original comment by danhe...@gmail.com
on 24 Mar 2011 at 8:51
Awesome. Thanks!
Original comment by jcoffl...@gmail.com
on 24 Mar 2011 at 9:10
Original issue reported on code.google.com by
jcoffl...@gmail.com
on 23 Mar 2011 at 11:54