For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

V3d_View::Print crashes in OCCT 6.5.0

Pawel's picture
Forums: 

Hello,

an attempt to print the contents of an Open Cascade window leads to a crash in file OpenGl_PrimitiveArray.cxx in line 646 ( glDrawArrays( draw_mode, n, p->bounds[i]); ).

I work on Win XP SP3 + NVIDIA Quadro 1700 + VS 2008 (with a recompiled OCCT).

Can anyone confirm?
Pawel

sergey zaritchny's picture

Hi Pawel,
Can you provide a short sample to reproduce the crash?
Regards

Pawel's picture

Hi Sergey,

thank you for your feedback.

Attached you will find a modified example from the post "Many views in OCC6.5.0".

The sample opens the "Print Dialog" after creating the first view. After selecting the printer and pressing "OK" it crashes.

It also crashes using the precompiled OCCT libraries.

Pawel

Attachments: 
int's picture

Hi Pawel,
I tried your sample and I have the same error, in the same line.

In my sample, you need to press any key on the console to crash. Maybe you did not?

Pawel's picture

Hello int,

yes, I pressed a key but there was no problem.

Pawel

sergey zaritchny's picture

Hi Pawel,
The sample was tested on Win XP SP3 + GeForce 8600 GT + VS 2008.
I confirm the crash after applying "OK".
Thanks for your contribution.
The corresponding issue with ID = OCC22337 has been registered.
Later you can know if the issue is resolved by checking references to the specified ID in OCCT Release Notes.
Regards

Pawel's picture

Thank you!

sergey zaritchny's picture

Hi,
As a sort of workaround (until the bug will not be fixed) we recommend to turn vertex buffer object (VBO) usage off with help of Graphic3d_GraphicDriver::EnableVBO( Standard_False ) call.
This should be done on 3D view initialization, or all presentations that use primitive arrays should be recomputed after disabling VBOs.
Regards

int's picture

Hi Pawel,
It seems I have a similar problem. Could you test my latest sample from the topic "Many views in OCC6.5.0" (http://www.opencascade.org/org/forum/thread_20185/)?

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.