View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0025910 | Community | OCCT:Data Exchange | public | 2015-03-11 12:19 | 2015-06-15 12:42 |
Reporter | drazmyslovich | Assigned To | bugmaster | ||
Priority | normal | Severity | major | ||
Status | closed | Resolution | fixed | ||
Platform | Windows | OS | VC++ 2010 | ||
Product Version | 6.8.0 | ||||
Target Version | 6.9.0 | Fixed in Version | 6.9.0 | ||
Summary | 0025910: The material with 0-density causes errors during writing STEP files | ||||
Description | Having a 0-density material in the model causes the STEP writer to emit NULL reference error due to improper handling of 0-density material: particularly during the creating of material STEP structures in STEPCAFControl_Writer::WriteMaterials the density property definition is created while the empty representation is attached. | ||||
Tags | No tags attached. | ||||
Test case number | bugs xde(005) bug25910 | ||||
|
Branch CR25910 has been created by drazmyslovich. SHA-1: a9d93db3ab277f3efd8c4635971743c34590ed65 Detailed log of new commits: Author: razmyslovich Date: Wed Mar 11 10:21:14 2015 +0100 0025910: properly process 0-density material - create STEP density structures if and only if the density is > 0 |
|
The fix is committed, please, review. |
|
I have tried to reproduce the problem in DRAW, but in my test material is just not written, with no error reported: pload MODELING OCAF XDE NewDocument D box b 10 10 10 XSetMaterial D [XAddShape D b] Vacuum 0. WriteStep D ${imagedir}/bug25910.stp |
|
The problem can be reproduced in Debug. The proposed fix looks Ok, however I believe we need to check why no error is reported in Release mode (I used vc10 x64, OCCT 6.8.0) and ensure that errors of this kind are properly reported. |
|
Branch CR25910 has been updated by drazmyslovich. SHA-1: f0953595d9494f8a8adceda78945de98f0692526 Detailed log of new commits: Author: razmyslovich Date: Wed Mar 11 14:29:42 2015 +0100 0025910: properly process 0-density material - create STEP density structures if and only if the density is > 0, but preserve the already mapped structures |
|
I didn't like the fix myself, therefore I've committed another proposal for the fix. Please, review. |
|
Branch CR25910 is ready to be tested. |
|
Branch CR25910 has been updated forcibly by apv. SHA-1: 3636f69772547620d575834bda60db38edb1b2f6 |
|
Branch CR25910 has been rebased on the current master |
|
Branch CR25910 has been updated by apv. SHA-1: 5bd5c8ab193d83586537d12f2055faf12a0d1f60 Detailed log of new commits: Author: apv Date: Tue Mar 17 16:25:01 2015 +0300 Test-case for issue 0025910 |
|
Dear BugMaster, Branch CR25910 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested. SHA-1: 3636f69772547620d575834bda60db38edb1b2f6 Number of compiler warnings: occt component: Linux: 18 (18 on master) Windows: 0 (0 on master) products component: Linux: 11 (11 on master) Windows: 4 (4 on master) Regressions/Differences: http://occt-tests/CR25910-master-occt-64/Windows-64-VC10/summary.html bugs mesh(016) bug25364 (test-case is unstable) Testing on Linux: Total MEMORY difference: 89892265 / 90076200 Total CPU difference: 58285.2400000001 / 58911.169999999984 Testing on Windows: Total MEMORY difference: 58002982 / 58008153 Total CPU difference: 51117.453125 / 57237.046875 |
|
Branch CR25910 has been deleted by inv. SHA-1: 5bd5c8ab193d83586537d12f2055faf12a0d1f60 |
occt: master 41e259eb 2015-03-19 12:52:21 Committer: bugmaster Details Diff |
0025910: The material with 0-density causes errors during writing STEP files - properly process 0-density material - create STEP density structures if and only if the density is > 0 - properly process 0-density material - create STEP density structures if and only if the density is > 0, but preserve the already mapped structures Test-case for issue 0025910 |
Affected Issues 0025910 |
|
mod - src/STEPCAFControl/STEPCAFControl_Writer.cxx | Diff File | ||
add - tests/bugs/xde/bug25910 | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2015-03-11 12:19 | drazmyslovich | New Issue | |
2015-03-11 12:19 | drazmyslovich | Assigned To | => gka |
2015-03-11 12:21 | git | Note Added: 0038246 | |
2015-03-11 12:22 | drazmyslovich | Note Added: 0038247 | |
2015-03-11 12:22 | drazmyslovich | Status | new => resolved |
2015-03-11 13:39 |
|
Note Added: 0038251 | |
2015-03-11 13:39 |
|
Steps to Reproduce Updated | |
2015-03-11 15:10 |
|
Note Added: 0038263 | |
2015-03-11 16:29 | git | Note Added: 0038274 | |
2015-03-11 16:30 | drazmyslovich | Note Added: 0038275 | |
2015-03-11 16:35 | drazmyslovich | Note Edited: 0038275 | |
2015-03-16 16:12 |
|
Note Added: 0038401 | |
2015-03-16 16:12 |
|
Assigned To | gka => bugmaster |
2015-03-16 16:12 |
|
Status | resolved => reviewed |
2015-03-16 16:45 |
|
Assigned To | bugmaster => apv |
2015-03-16 16:59 | git | Note Added: 0038403 | |
2015-03-16 17:00 |
|
Note Added: 0038404 | |
2015-03-17 16:25 | git | Note Added: 0038440 | |
2015-03-17 16:26 |
|
Test case number | => bugs xde(005) bug25910 |
2015-03-17 17:46 |
|
Note Added: 0038445 | |
2015-03-17 17:46 |
|
Assigned To | apv => bugmaster |
2015-03-17 17:46 |
|
Status | reviewed => tested |
2015-03-17 17:47 |
|
Note Edited: 0038445 | |
2015-03-17 17:47 |
|
Note Edited: 0038445 | |
2015-03-20 13:34 | bugmaster | Changeset attached | => occt master 41e259eb |
2015-03-20 13:34 | bugmaster | Status | tested => verified |
2015-03-20 13:34 | bugmaster | Resolution | open => fixed |
2015-05-14 15:28 |
|
Status | verified => closed |
2015-05-14 15:31 |
|
Fixed in Version | => 6.9.0 |
2015-05-14 16:31 | git | Note Added: 0041023 | |
2015-06-15 12:42 |
|
Relationship added | related to 0026342 |