[Qt-interest] Fwd: QT OpenCascade application Problem

Sujan Dasmahapatra sujan.dasmahapatra at gmail.com
Fri Nov 27 11:27:15 CET 2009


Any comment on this srdjan. I am stuck with this ! Back trace is showing
theres some problem with the libTKernel I thinnk so. If this so then is it
an Opencascade bug !. Any suggestion would be highly appreciated.

Thanks
sujan

On Thu, Nov 26, 2009 at 7:55 PM, Sujan Dasmahapatra <
sujan.dasmahapatra at gmail.com> wrote:

>    Please help me to sort this problem.
>> check the backtrace.
>>
>> ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
>>  Program received signal SIGSEGV, Segmentation fault.
>> [Switching to Thread 183011805216 (LWP 18689)]
>>
>> 0x0000002a95685323 in Handle_Standard_Transient::EndScope ()
>>    from /share/apps/OpenCASCADE6.3.0/Linux/lib/libTKernel.so.0
>> (gdb) backtrace
>> #0  0x0000002a95685323 in Handle_Standard_Transient::EndScope ()
>>
>>    from /share/apps/OpenCASCADE6.3.0/Linux/lib/libTKernel.so.0
>> #1  0x0000002a956853bf in Handle_Standard_Transient::Assign ()
>>
>>    from /share/apps/OpenCASCADE6.3.0/Linux/lib/libTKernel.so.0
>> #2  0x0000000000417fbb in Handle_Graphic3d_GraphicDevice::operator=
>> (this=0x53c088, anItem=0x20007880)
>>     at
>> /share/apps/OpenCASCADE6.3.0/inc/Handle_Graphic3d_GraphicDevice.hxx:61
>> #3  0x00000000004167c8 in DocumentCommon::Viewer (this=0x6a56b0,
>> aDisplay=0x7fbffffeec ":1008.0",
>>     aName=0x20007868, aDomain=0x42c03f "", ViewSize=1000,
>> ViewProj=V3d_XposYnegZpos, ComputedMode=1,
>>     aDefaultComputedMode=1) at src/DocumentCommon.cpp:32
>> #4  0x0000000000416bcc in DocumentCommon (this=0x6a56b0, theIndex=1,
>> app=0x6a7c50)
>>     at src/DocumentCommon.cpp:53
>> #5  0x00000000004154ca in ApplicationCommonWindow::onNewDoc
>> (this=0x6a7c50)
>>     at src/ApplicationCommon.cpp:381
>> #6  0x000000000042a323 in ApplicationCommonWindow::qt_metacall
>> (this=0x6a7c50,
>>     _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fbfffd4a0) at
>> Linux/src/moc_ApplicationCommon.cpp:85
>> #7  0x000000000042a051 in ApplicationWindow::qt_metacall (this=0x6a7c50,
>>     _c=QMetaObject::InvokeMetaMethod, _id=31, _a=0x7fbfffd4a0) at
>> Linux/src/moc_Application.cpp:64
>> #8  0x0000002a9c03764f in QMetaObject::activate (sender=0x6bcac0,
>> from_signal_index=9,
>>     to_signal_index=10, argv=0x7101a0) at kernel/qobject.cpp:3022
>> #9  0x0000002a9b5b1536 in QAction::activated (this=0xfefd0000,
>> _t1=Variable "_t1" is not available.
>> )
>>     at .moc/release-shared/moc_qaction.cpp:236
>> #10 0x0000002a9b5b1889 in QAction::activate (this=0x6bcac0, event=Variable
>> "event" is not available.
>> ) at kernel/qaction.cpp:1128
>> #11 0x0000002a9b90b1a6 in QAbstractButtonPrivate::click (this=0x6c7d80)
>>     at widgets/qabstractbutton.cpp:520
>> #12 0x0000002a9b90b431 in QAbstractButton::mouseReleaseEvent
>> (this=0x6c6f80, e=0x7fbfffdc60)
>>     at widgets/qabstractbutton.cpp:1110
>>
>> ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
>>
>>   On Thu, Nov 26, 2009 at 7:24 PM, Srdjan Todorovic <
>> todorovic.s at googlemail.com> wrote:
>>
>>> Hi,
>>>
>>> On 26/11/2009, Sujan Dasmahapatra <sujan.dasmahapatra at gmail.com> wrote:
>>> > On Thu, Nov 26, 2009 at 4:54 PM, Sujan Dasmahapatra <
>>> > sujan.dasmahapatra at gmail.com> wrote:
>>> >
>>> >> yes srdjan thanx now its working i am getting some errors even when i
>>> >> debug
>>> >> the sample opencascade.The sample after compilation is not working
>>> when i
>>> >> debug i am its crashing at this line.
>>>
>>> >> static Handle(Graphic3d_GraphicDevice) defaultdevice;
>>>
>>> What is this? Is this a variable or a pointer?
>>>
>>> >>     if( defaultdevice.IsNull() )
>>> >>         defaultdevice = new Graphic3d_GraphicDevice( aDisplay );  //
>>> here
>>> >> its crashing
>>>
>>> Because that does not seem OK if defaultdevice is not a pointer.
>>>
>>> Also, SegfaultFaultFinding rules apply.
>>>
>>> So:
>>>   - full stack frame trace
>>>   - printouts of any relevant variables (at least defaultdevice and
>>> aDisplay)
>>>
>>> You can use this information to diagnose the problem.
>>>
>>> Srdjan
>>>
>>>
>>> >>
>>> /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
>>> >> //errors
>>> >> Program received signal SIGSEGV, Segmentation fault.
>>> >> 0x0000002a95685323 in Handle_Standard_Transient::EndScope ()
>>> >>    from /share/apps/OpenCASCADE6.3.0/Linux/lib/libTKernel.so.0
>>>  _______________________________________________
>>> Qt-interest mailing list
>>> Qt-interest at trolltech.com
>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>>
>>
>>
>>
>>  --
>> Thanks & Regards
>> S. Dasmahapatra
>> B.E. (Aeronautics-Aerodynamics)
>> Software programmer
>> Bangalore, India
>> Ph:91-9900839788
>> Office:91-80-66470248
>> mail id : sujan.dasmahapatra at gmail.com
>>
>
>
>
> --
> Thanks & Regards
> S. Dasmahapatra
> B.E. (Aeronautics-Aerodynamics)
> Software programmer
> Bangalore, India
> Ph:91-9900839788
> Office:91-80-66470248
> mail id : sujan.dasmahapatra at gmail.com
>



-- 
Thanks & Regards
S. Dasmahapatra
B.E. (Aeronautics-Aerodynamics)
Software programmer
Bangalore, India
Ph:91-9900839788
Office:91-80-66470248
mail id : sujan.dasmahapatra at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091127/f4cade42/attachment.html 


More information about the Qt-interest-old mailing list