Soc project: Booleans -- win/linux (2005/10/11)

User-contributed CVS development builds. Please test and give feedback!

Moderators: jesterKing, stiv

Hos
Posts: 185
Joined: Wed Oct 16, 2002 12:06 am

Soc project: Booleans -- win/linux (2005/10/11)

Post by Hos » Wed Oct 12, 2005 6:09 am

Here are some updated builds of Marc Freixas' boolean
project for summer of code. Some memory related
bugs were addressed.

Previous threads about this work are here:

http://www.blender.org/forum/viewtopic.php?t=6927
http://www.blender.org/forum/viewtopic.php?t=6872

Instructions: Select two mesh objects
and press 'w' as always. Output has less points,
less bad geometry, and uses quads too.

http://bebop.cns.ualberta.ca/~cwant/ble ... -11.tar.gz
http://bebop.cns.ualberta.ca/~cwant/ble ... -10-11.zip

More info on this project is here:

http://wiki.blender.org/bin/view.pl/Ble ... evelopment

Test it out and provide feedback, please. Hopefully
some of the problems related to Windows XP have been
addressed.

Regards,
Chris

Tochiro
Posts: 0
Joined: Fri Aug 06, 2004 10:11 am

Post by Tochiro » Fri Oct 14, 2005 12:17 pm

Thanks for the new build.
I have now downloaded it and also i have downloaded the 2.40-alpha1 test build.
why in the version alpha1 is not present this algorithm of boolean?

Hos
Posts: 185
Joined: Wed Oct 16, 2002 12:06 am

Post by Hos » Fri Oct 14, 2005 3:37 pm

Tochiro wrote:Thanks for the new build.
I have now downloaded it and also i have downloaded the 2.40-alpha1 test build.
why in the version alpha1 is not present this algorithm of boolean?
Hi Tochiro,

The main reason why it was not included is that there are
random crashes (mainly under Windows XP) when using the
booleans, so the author of the new boolean code is trying to
debug memory issues. Otherwise, feedback about the quality
of the new booleans was been very positive.

Your help in testing the new booleans is greatly appreciated!

Regards,
Chris

lucky3
Posts: 12
Joined: Thu Oct 17, 2002 6:08 pm

Post by lucky3 » Fri Oct 14, 2005 10:39 pm

Still get crashes! :(

When blender crashes, it seems there is troubles with ntdll.dll (that's at least what is typed in the error window...)
Use winXP.

Hos
Posts: 185
Joined: Wed Oct 16, 2002 12:06 am

Post by Hos » Sat Oct 15, 2005 8:23 pm

lucky3 wrote:Still get crashes! :(

When blender crashes, it seems there is troubles with ntdll.dll (that's at least what is typed in the error window...)
Use winXP.
Hey lucky3,

Just so we aren't bark up the wrong tree here:
do you get similar crashes when using the old booleans?
i.e., could you please try similar operations with 2.37a and
with the 2.40 prerelease too? (2.40 has at lease one boolean
related bug fix, but may have other bugs).

Thanks,
Chris

jr
Posts: 0
Joined: Sat Oct 15, 2005 9:34 pm

Post by jr » Sat Oct 15, 2005 9:51 pm

Crashes almost immediatelly after some boolean operations.

"Unhandled exception at 0x7c911e58 in blender-booleans.exe: 0xC0000005: Access violation reading location 0x40000000."

no problems with 2.37a or 2.40a1

--jr

Hos
Posts: 185
Joined: Wed Oct 16, 2002 12:06 am

Post by Hos » Sun Oct 16, 2005 3:02 am

jr wrote:Crashes almost immediatelly after some boolean operations.

"Unhandled exception at 0x7c911e58 in blender-booleans.exe: 0xC0000005: Access violation reading location 0x40000000."

no problems with 2.37a or 2.40a1

--jr
Hi jr,

Does blender crash everytime you run the booleans, or
sometimes it crashes, sometimes it doesn't? When you
say "almost immediately", does that mean you are
able to work a little longer after a boolean operation,
or do you never regain interactivity before the crash?

Also, is that windows XP?

Thanks,
Chris

LetterRip
Posts: 0
Joined: Thu Mar 25, 2004 7:03 am

Post by LetterRip » Sun Oct 16, 2005 5:23 am

Program received signal SIGSEGV, Segmentation fault.
0x00871a3e in MEM_RefCountable::DecRef (this=0x2140740)
at /home/TomM/bf/lib/windows/memutil/include/MEM_RefCountPtr.h:160
160 return (--m_count);
Current language: auto; currently c++
(gdb) bt
#0 0x00871a3e in MEM_RefCountable::DecRef (this=0x2140740)
at /home/TomM/bf/lib/windows/memutil/include/MEM_RefCountPtr.h:160
#1 0x008710ab in MEM_RefCountPtr<BSP_CSGMesh>::ReleaseOwnership (
this=0x20177d0)
at /home/TomM/bf/lib/windows/memutil/include/MEM_RefCountPtr.h:283
#2 0x00871125 in MEM_RefCountPtr<BSP_CSGMesh>::~MEM_RefCountPtr (
(gdb)
at /home/TomM/bf/lib/windows/memutil/include/MEM_RefCountPtr.h:261
#3 0x0086f245 in BSP_MeshInfo::~BSP_MeshInfo (this=0x20177d0)
at CSG_BooleanOps.cpp:213
#4 0x005d4045 in CSG_FreeBooleanOperation (operation=0x20177f0)
at CSG_BooleanOps.cpp:213
#5 0x00562f8f in NewBooleanMesh (base=0x220914c, base_select=0x20acd3c,
int_op_type=2) at booleanops.c:557
#6 0x00480680 in special_editmenu () at editobject.c:2049
#7 0x0048a629 in winqreadview3dspace (sa=0x2027dac, spacedata=0x2a07ab4,
evt=0x22fe90) at space.c:1700
#8 0x004b5a76 in scrarea_do_winhandle (area=0x2027dac, evt=0x22fe90)
at spacetypes.c:144
#9 0x00403ed4 in scrarea_dispatch_events (sa=0x2027dac) at editscreen.c:563
#10 0x004051d5 in screen_dispatch_events () at editscreen.c:1122
#11 0x00405958 in screenmain () at editscreen.c:1366
#12 0x00401e5b in main (argc=1, argv=0x2000ff0) at creator.c:586
(gdb)
I got this segfault after a number of unions and differences of uv spheres. The segfault was on a union.

LetterRip

lucky3
Posts: 12
Joined: Thu Oct 17, 2002 6:08 pm

Post by lucky3 » Sun Oct 16, 2005 3:17 pm

Hos wrote:could you please try similar operations with 2.37a and
with the 2.40 prerelease too?
Similar operations don't make blender crash with 2.40 or 2.37.
As before it crashes when i try to do a second boolean op with a mesh of wich i've moved vertices by entering edit mode...

jr
Posts: 0
Joined: Sat Oct 15, 2005 9:34 pm

Post by jr » Sun Oct 16, 2005 7:56 pm

Hos wrote:
jr wrote:Crashes almost immediatelly after some boolean operations.

"Unhandled exception at 0x7c911e58 in blender-booleans.exe: 0xC0000005: Access violation reading location 0x40000000."

no problems with 2.37a or 2.40a1

--jr
Hi jr,

Does blender crash everytime you run the booleans, or
sometimes it crashes, sometimes it doesn't? When you
say "almost immediately", does that mean you are
able to work a little longer after a boolean operation,
or do you never regain interactivity before the crash?

Also, is that windows XP?

Thanks,
Chris
with 'simple' objects like cube, it's possible to make multiple operations
but with more complex meshes it crashes sooner.
and the crash could happen after other operations also, like adding a new cube or even with the "file->new" operation.

Yep, running with XP-SP2, amd.

when running with gdb I get :
Program received signal SIGTRAP, Trace/breakpoint trap.
0x7c901231 in _libwinmm_a_iname ()
(gdb) warning: HEAP[blender-booleans.exe]:
warning: HEAP: Free Heap block dde17b0 modified at dde1fc0 after it was freed

same warning with every boolean operation. (even before it crashes)
so looks like it's trying to use the memory after it's freed?

--Jr

Hos
Posts: 185
Joined: Wed Oct 16, 2002 12:06 am

Post by Hos » Tue Oct 18, 2005 4:34 pm

Thanks a lot for the feedback on this guys, I've
forwarded this thread to Marc, and hopefully he
can revisit it when his studies permit him some time
(I've looked at it a bit, but C++ makes me dizzy).

I also had some problems with this under linux that
were reported using the 'valgrind' memory debugger
(great, easy to use tool, btw). In the case of linux,
while the program wouldn't crash (but I wish that it
would), valgrind would report some pointers being
accessed after the memory they pointed to was freed.

Anyways, these booleans do a great job and I hope
the last few memory problems can be worked out
so we can move this over to the official blender tree.

Cheers,
Chris

mfreixas
Posts: 0
Joined: Thu Sep 01, 2005 4:01 pm

Post by mfreixas » Fri Oct 28, 2005 7:30 pm

Thanks for all feedbak, really useful.

A double deletion of the same memory region bug has been fixed.

In other words, I think the BoolOps can works fine now (I Hope :_) ).

I have been testing the new BoolOps implementation in Win XP and don't crash.

Thanks,

Marquitos.

mfreixas
Posts: 0
Joined: Thu Sep 01, 2005 4:01 pm

Post by mfreixas » Fri Oct 28, 2005 7:38 pm

Updated build for Windows XP:

http://truja/mintaka/Graphics/Blender/b ... indows.zip

Regards,

Marquitos

lucky3
Posts: 12
Joined: Thu Oct 17, 2002 6:08 pm

Post by lucky3 » Fri Oct 28, 2005 10:41 pm


LetterRip
Posts: 0
Joined: Thu Mar 25, 2004 7:03 am

Post by LetterRip » Fri Oct 28, 2005 11:10 pm

It has been committed to CVS main tree now, so just building your bf-blender from CVS has it available.

LetterRip

Post Reply