Archived issue #0032912
Visualization - crash when displaying an OBJ file with missing texture file
Description
The application will crash if I import an OBJ file with missing texture file, no error or exception is raised, just a crash.
Steps to reproduce
pload XDE VISUALIZATION OCAF ReadObj D "F-16D.obj" vinit View1 XDisplay D -dispMode 1 vfit
Simple import the files using RWObj_CafReader.
obj file: https://1drv.ms/u/s!AhCCWoYK5qdugpssNSHS7offA7hB3g?e=cPaCR8
mtl file: https://1drv.ms/u/s!AhCCWoYK5qdugpsoGjNAVLargCiR4g?e=E550Le
Public activity
7 archived notes
Participants are labeled by their role within this record.
Just a little precision, the application doesn't crash while importing, it is at the display stage when the pixmap is loaded but the file doesn't exist...
I have attached an image of the callstack.
I have attached an image of the callstack.
Attachment 1 (PNG) (113,866 bytes)
Attachment 2 (7Z) (539,692 bytes)
Branch [archived branch] has been created by Commenter 2.
[revision removed]
Detailed log of new commits:
Author: Commenter 2
Date: Wed Apr 6 01:26:00 2022 +0300
0032912: Visualization - crash when displaying an OBJ file with missing texture file
Fix NULL dereference within Graphic3d_TextureRoot::convertToCompatible() due to wrong order of checks.
[revision removed]
Detailed log of new commits:
Author: Commenter 2
Date: Wed Apr 6 01:26:00 2022 +0300
0032912: Visualization - crash when displaying an OBJ file with missing texture file
Fix NULL dereference within Graphic3d_TextureRoot::convertToCompatible() due to wrong order of checks.
The patch was reviewed
Combination -
OCCT branch : [archived branch]
master SHA - [revision removed]
[revision removed]
Products branch : [archived branch] SHA - [revision removed]
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.
Number of compiler warnings:
No new/fixed warnings
Regressions/Differences/Improvements:
No regressions/differences
CPU differences:
Debian80-64:
OCCT
Total CPU difference: 18452.87000000039 / 18490.94000000032 [-0.21%]
Products
Total CPU difference: 11761.310000000152 / 11719.920000000124 [+0.35%]
Windows-64-VC14:
OCCT
Total CPU difference: 20539.828125 / 20552.71875 [-0.06%]
Products
Total CPU difference: 13248.21875 / 13242.609375 [+0.04%]
Image differences :
No differences that require special attention
Memory differences :
No differences that require special attention
OCCT branch : [archived branch]
master SHA - [revision removed]
[revision removed]
Products branch : [archived branch] SHA - [revision removed]
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.
Number of compiler warnings:
No new/fixed warnings
Regressions/Differences/Improvements:
No regressions/differences
CPU differences:
Debian80-64:
OCCT
Total CPU difference: 18452.87000000039 / 18490.94000000032 [-0.21%]
Products
Total CPU difference: 11761.310000000152 / 11719.920000000124 [+0.35%]
Windows-64-VC14:
OCCT
Total CPU difference: 20539.828125 / 20552.71875 [-0.06%]
Products
Total CPU difference: 13248.21875 / 13242.609375 [+0.04%]
Image differences :
No differences that require special attention
Memory differences :
No differences that require special attention
Branch [archived branch] has been deleted by Participant.
[revision removed]
[revision removed]
Related records