Subject: CGAL users discussion list
List archive
- From: Mahmood NT <>
- To:
- Subject: Re: Re: Re: [cgal-discuss][Polyhedron] Simple program problem
- Date: Sat, 12 Jan 2008 00:58:25 -0800 (PST)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=KAD30RuVoBLWD++5cdY2lKUOTEAjQX1FLmkXEyjsSwWfyIhfXTd9sLIFVhgU7LnwF4GW9K0t8j+r8QfkBADPd8cjPV9ztrl97VEmy9n/HUK8n3wjRBk4I9BneF7RLQpf6DAZW+iPTxRl+YYDdIHjRsg2iJZoFVM5k+hGaYIMOTM=;
>What the program gave me are
>identical, and, perhaps interesting,
Hi,
can you send the program, so that I will test it with CGAL 3.3.1 in VC8.0 (or
VC7.0)
Can you test your program in linux?
Mahmood NT
----- Original Message ----
From: Max
<>
To:
""
<>
Sent: Saturday, January 12, 2008 12:20:55 PM
Subject: Re: Re: Re: [cgal-discuss][Polyhedron] Simple program problem
Hello Mahmood
>Do you currently have "cgalqt-vc80-mt-gd.lib" in \lib?
Yes.
But I'm using VC 7.1 and I have not cgalqt-vc71-xxx.lib in the folder.
I've also tested by removing these Qt related lib's for VC8, and that
makes no difference. This is my 1st test run of today.
Following your suggestion, I've rebuild CGAL, CGALCore, CGALimageIO, CGALPDB
one by one individually, and made the 2nd run. What the program gave me are
identical, and, perhaps interesting, thay are identical to the result of
my running this program for the very first time: It ceased at dbgheap.c
@ line 139:
_CRTIMP void * __cdecl malloc (
size_t nSize
)
{
void *res = _nh_malloc_dbg(nSize, _newmode, _NORMAL_BLOCK, NULL, 0);
// HERE !!!
RTCCALLBACK(_RTC_Allocate_hook, (res, nSize, 0));
return res;
}
To be more clear, the error is not an assertion error, but prompted as an
'unhandled exception'.
Thanks you all for your help.
B/Rgds
Max
----- Original Message ----
From: Mahmood NT
To:
Sent: 2008-01-11 16:52:06
Subject: Re: Re: Re: [cgal-discuss][Polyhedron] Simple program problem
>
>Thank you. I get it.
>But there seems to be no option that allows me to setup Qt dependency
>for CGAL when I was running the installation package.
Hi,
What I remember from my own installation, windows installer does not have any
option for setting up QT, but linux setup does have (even with more options
for much more libraries). What I did, was isntall the default setup and then
I build the libraries via openning the solution file in .NET and perform a
rebuild. This process then create all the libraries in \lib folder. So in
your case that do not want to build QT libs, you must manualy goto CGAL,
CGALCore, CGALimageIO, CGALPDB folders and for each of them do a rebuild.
Do you currently have "cgalqt-vc80-mt-gd.lib" in \lib?
Mahmood NT
----- Original Message ----
From: Max
<>
To:
""
<>
Sent: Friday, January 11, 2008 11:18:42 AM
Subject: Re: Re: Re: [cgal-discuss][Polyhedron] Simple program problem
Hello Mahmood
Thank you. I get it.
But there seems to be no option that allows me to setup Qt dependency
for CGAL when I was running the installation package.
And one question for Peter:
I checked the Lib Folder, and I found no Qt related lib's.
Does this means it's the right condition for your furthur
examination?
B/Rgds
Max
----- Original Message ----
From: Mahmood NT
To:
Sent: 2008-01-11 15:13:50
Subject: Re: Re: [cgal-discuss][Polyhedron] Simple program problem
>
>2. I've found the install_cgal file in the CGAL root folder,
>But I don't know how to run it, because it is neither an exe
>file nor a bat file.
Hi,
This file is an installer in unix. Peter means that you try installing CGAL
without QT in linux. You can install CGAL in windows without QT support, just
do not build CGALQt in \src directory. This will not create QT lib files.
Mahmood NT
----- Original Message ----
From: Max
<>
To:
""
<>
Sent: Friday, January 11, 2008 4:53:50 AM
Subject: Re: Re: [cgal-discuss][Polyhedron] Simple program problem
Hello Peter Hachenberger
1. If my memory serves me correctly, the only thing I've done
that I think could affect CGAL, between the two runs of the test
program that gave me different result, is that I've recompiled
the lib's using VS2003 with the provided .sln file. I built
successfully all of the lib's except those related to Qt, because
I have no Qt installation on my machine.
2. I've found the install_cgal file in the CGAL root folder,
But I don't know how to run it, because it is neither an exe
file nor a bat file.
Thanks so much, Peter.
B/Rgds
Max
----- Original Message ----
From: Peter Hachenberger
To:
Sent: 1899-12-30 00:00:00
Subject:
>
Yes, but that is exactly what I expected to happen. The assertion line
calls the assign function and then crashes. With the extra lines I
wanted to make sure, that the assign function is used on valid data.
So, what you now can try to do is to compile the CGAL libraries without
the QT support. You do this by going into your CGAL home directory, call
install_cgal -i, go to the support menu, deactivate the QT support, go
to the main menu, and rebuild the libraries. Then try whether the
program still crashes.
Peter
On Thu, 2008-01-10 at 17:21 +0800, Max wrote:
> Hello Peter
>
> It looks like even stranger. I remember I've tested your code addition
> last time and the program paused at the last new line with an assertion
> failure. But now with a latest trial I get: the program outputs "test
> first sedge 0 0 1" and then stopped at the same position in object_handle.h:
>
> template <class T>
> bool assign(T &t) const
> {
>
> const Handle_wrapper<T> *wp =
> dynamic_cast<const Handle_wrapper<T> *>(Ptr()); // HERE !!
> if ( wp == static_cast<Handle_wrapper<T> *>(0) )
> return false;
> t = *(wp);
>
> Thanks.
>
>
> B/Rgds
> Max
>
> ----- Original Message ----
> From: Peter Hachenberger
> To:
>
> Sent: 2008-01-09 18:57:22
> Subject: Re: Re: Re: [cgal-discuss][Polyhedron] Simple program problem
>
> >
>
> > Unfortunately my program behaves exactly as you expected. It passes
> > the first line you gave me and then raise an assertion error at the last
> > new line of code. Then, according to your point, it seems to be true that
> > the cause of the problem is from the installation of my CGAL(but I'm still
> > not sure, or, in other words, I don't know why).
>
> Before I give you hints of what to do with your CGAL installation, let's
> get one thing clear. Do you get an assertion in the last line of the new
> code or do you get another error?
>
> > Once a time I also suspected if there's problem related to my
> > installation,
> > and I've unpacked the CGAL 3.3.1 package file into the existing
> > installation
> > folder to overwrite any inadvertant code change, if exists.
> >
> > Thank you very much for your time and help.
> > It has been helpful indeeded.
> >
> > B/Rgds
> > Max
> >
> > ----- Original Message ----
> > From: Peter Hachenberger
> > To:
> >
> > Sent: 2008-01-08 20:59:03
> > Subject: Re: Re: Re: [cgal-discuss][Polyhedron] Simple program problem
> >
> > >
> > Oh, that was not my brightest idea. Unfortunately, the output function
> > does not give me the desired information, because it uses the same
> > problematic call to show the desired information.
> >
> > I still think that it is not a problem of my code, but of your CGAL
> > installation, but I don't want you to go fishing for problems with your
> > installation before I did not have good evidence for this assumption. To
> > provemy assumption, kick out the new line in polyhedron_to_nef3.h and
> > replace it with
> >
> > std::cerr << "test first sedge "
> > << SM.shalfedges_begin()->source()->point()
> > << std::endl;
> >
> > typename SNC_structure::Object_list ol;
> > ol.push_back(SM.shalfedges_begin());
> > typename SNC_structure::SFace_cycle_iterator sfci(ol.begin());
> > CGAL_assertion(sfci.is_shalfedge());
> >
> > That fourth line is the same call that causes the problem. The
> > is_shalfedge() command calls a dynamic cast that decides whether the
> > Object_handle sfci points to can be cast to an shalfedge. With the lines
> > above I put a valid shalfege into sfci. I know that it's valid from the
> > output generated by the first lines. So, if you know get a correct
> > output by the first line and then got a fault in the assertion line (not
> > a thrown assertion, but the same error as before), then I'm right and
> > there is some problem with the installation.
> >
> > Peter
> >
> >
> > On Tue, 2008-01-08 at 09:12 +0800, LoadCom wrote:
> > > Hello Peter Hachenberger
> > >
> > > I've made change as you suggested to polyhedron_3_to_nef_3.h(not
> > > polyhedron_to_nef_3.h).
> > >
> > > The program's output before error occur is as dos.png.
> > > The context at the stop point is as snapshot.png.
> > >
> > > The 2 files are as attached.
> > > Thanks for your help.
> > >
> > > B/Rgds
> > > Max
> > >
> > > ----- Original Message ----
> > > From: Peter Hachenberger
> > > To:
> > >
> > > Sent: 2008-01-07 20:49:42
> > > Subject: Re: Re: Re: [cgal-discuss][Polyhedron] Simple program problem
> > >
> > > >
> > > Hi Max,
> > >
> > > Looking at the latest debug picture 1.png, we can try the following
> > > stuff:
> > >
> > > The programm stops at an integrity check of the data structure. I want
> > > to check whether the data structure really lacks integrity or whether
> > > its something else. Please add the line
> > >
> > > CGAL::SM_io_parser<SM_decorator>::dump(SM, std::cerr);
> > >
> > > in front of the fifth line from the end in polyhedron_to_nef_3.h, which
> > > looks as follows:
> > >
> > > SM.check_integrity_and_topological_planarity();
> > >
> > > So that it looks like
> > >
> > > CGAL::SM_io_parser<SM_decorator>::dump(SM, std::cerr);
> > > SM.check_integrity_and_topological_planarity();
> > > }
> > >
> > > index_adder.resolve_indexes();
> > > }
> > >
> > > at the end of the file. Then compile and execute your program again and
> > > send me the output, please.
> > >
> > > Peter
> > >
> > >
> > > On Fri, 2008-01-04 at 16:25 +0800, LoadCom wrote:
> > > > Hello Mahmood NT,
> > > >
> > > > This time the point the program stoped at is different.
> > > > The location as well as the call stack is captered as
> > > > attached.
> > > >
> > > > Thanks for your help.
> > > > Max
> > > >
> > > >
> > > > Re: Re: [cgal-discuss][Polyhedron] Simple program problem
> > > >
> > > > >Thank you very much for your reply.
> > > >
> > > > >My environment:
> > > > >CGAL 3.3.1
> > > > >Windows XP/SP2
> > > > >VS 2003
> > > >
> > > > >The program causes a runtime error, see the attached 1.png. (debug
> > > > >mode)
> > > >
> > > > Did you set project properties properly. check your project propeties
> > > > with a simple example or demo (if you use QT).
> > > >
> > > > Also it would be helpful to post the call stack.
> > > >
> > > >
> > > > Mahmood NT
> > > >
> > > --
> > > You are currently subscribed to cgal-discuss.
> > > To unsubscribe or access the archives, go to
> > > https://lists-sop.inria.fr/wws/info/cgal-discuss
> > --
> > You are currently subscribed to cgal-discuss.
> > To unsubscribe or access the archives, go to
> > https://lists-sop.inria.fr/wws/info/cgal-discuss
> >
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://lists-sop.inria.fr/wws/info/cgal-discuss
>
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
- Re: Re: Re: [cgal-discuss][Polyhedron] Simple program problem, (continued)
- Re: Re: Re: [cgal-discuss][Polyhedron] Simple program problem, Peter Hachenberger, 01/09/2008
- Re: Re: Re: [cgal-discuss][Polyhedron] Simple program problem, Max, 01/10/2008
- Re: Re: Re: [cgal-discuss][Polyhedron] Simple program problem, Peter Hachenberger, 01/10/2008
- Re: Re: [cgal-discuss][Polyhedron] Simple program problem, Max, 01/11/2008
- Re: Re: Re: [cgal-discuss][Polyhedron] Simple program problem, LoadCom, 01/05/2008
- Re: Re: Re: [cgal-discuss][Polyhedron] Simple program problem, Max, 01/11/2008
- Re: Re: Re: [cgal-discuss][Polyhedron] Simple program problem, Max, 01/12/2008
- Re: Re: Re: [cgal-discuss][Polyhedron] Simple program problem, Max, 01/12/2008
- Re: Re: Re: [cgal-discuss][Polyhedron] Simple program problem, Max, 01/13/2008
- Re: [cgal-discuss][Polyhedron] Simple program problem - concluded, Max, 01/13/2008
Archive powered by MHonArc 2.6.16.