View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003830 | PartDesign | Bug | public | 2019-02-12 06:27 | 2022-01-22 21:47 |
Reporter | chrisb | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 0.18 | ||||
Target Version | 0.20 | Fixed in Version | 0.20 | ||
Summary | 0003830: Features loose colors set with "Set colors" on file saving | ||||
Description | In PartDesign SetColors can be applied only to features. They loose the color on file save. | ||||
Steps To Reproduce | - Create a PartDesign additive cube at its default sizes - color exactly one face: right mouse->Set colors, select one face, select color, confirm - save the file - revert the file. Result: the color is gone. It seems to be the saving, not the loading, I compared Document.xml to an uncolored cube. Forum discussion OS: macOS 10.13 Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.18.15525 (Git) Build type: Release Branch: master Hash: 1a7d3d9a37fe43468c8ac84590c1db53e2b2000a Python version: 3.6.7 Qt version: 5.6.2 Coin version: 4.0.0a OCC version: 7.3.0 Locale: German/Germany (de_DE) | ||||
Tags | #tobeclosed, colors | ||||
FreeCAD Information | |||||
|
I meet the problem with only some files and I don't find what is the origin. I have tried to reproduce the bug with the cube as described but in my case all seems OK. I'm using freeCAD v0.18-16131 Please see the attached .FCStd files. The difference between them is the "DiffuseColor" file in the .FCStd archive file. The colored version contains some additional bytes. I don't know how to decode the "DiffuseColor" file. How is it structured ? How each face of the cube (in our example) is associated with a color code ? Why these properties aren't stored in XML files (Document/GuiDocument). The wiki page is not enough detailed about the DiffuseColor file. [url=https://www.freecadweb.org/wiki/File_Format_FCStd]File_Format_FCStd/url] |
|
The image result of the colored file. |
|
I have found an example where the bug occurs. Please see the followings files. We can see that the "DiffuseColor2 file which is assigned for the colored file contains more bytes. We can also see that "DiffuseColor2" file is well assigned for the "Fillet" (Last element in the list) where the color was applied. PS : I'm using a Windows 10 OS. rapport_DiffuseColor2.htm (6,413 bytes)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>WinMerge File Compare Report</title> <style type="text/css"> <!-- td,th {word-break: break-all; font-size: 12pt;} tr { vertical-align: top; } .border { border-radius: 6px; border: 1px #a0a0a0 solid; box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15); overflow: hidden; } .ln {text-align: right; word-break: normal; background-color: lightgrey; box-shadow: inset 1px 0px 0px rgba(0, 0, 0, 0.10);} .title {color: white; background-color: blue; vertical-align: top; padding: 4px 4px; background: linear-gradient(mediumblue, darkblue);} .sf3b2 {color: #000000; background-color: #ffffff; } .sf3b5 {color: #000000; background-color: #0078d7; } .sf3b14 {color: #000000; background-color: #ffa0a0; } .sf3b16 {color: #000000; background-color: #f1e2ad; } .sf3b18 {color: #000000; background-color: #ffaa82; } .sf3b19 {color: #000000; background-color: #c8816c; } .sf6b2 {color: #ffffff; background-color: #ffffff; } .sf6b5 {color: #ffffff; background-color: #0078d7; } .sf6b14 {color: #ffffff; background-color: #ffa0a0; } .sf6b16 {color: #ffffff; background-color: #f1e2ad; } .sf6b18 {color: #ffffff; background-color: #ffaa82; } .sf6b19 {color: #ffffff; background-color: #c8816c; } .sf7b2 {color: #0000ff; background-color: #ffffff; font-weight: bold; } .sf7b5 {color: #0000ff; background-color: #0078d7; font-weight: bold; } .sf7b14 {color: #0000ff; background-color: #ffa0a0; font-weight: bold; } .sf7b16 {color: #0000ff; background-color: #f1e2ad; font-weight: bold; } .sf7b18 {color: #0000ff; background-color: #ffaa82; font-weight: bold; } .sf7b19 {color: #0000ff; background-color: #c8816c; font-weight: bold; } .sf8b2 {color: #800080; background-color: #ffffff; } .sf8b5 {color: #800080; background-color: #0078d7; } .sf8b14 {color: #800080; background-color: #ffa0a0; } .sf8b16 {color: #800080; background-color: #f1e2ad; } .sf8b18 {color: #800080; background-color: #ffaa82; } .sf8b19 {color: #800080; background-color: #c8816c; } .sf9b2 {color: #008000; background-color: #ffffff; } .sf9b5 {color: #008000; background-color: #0078d7; } .sf9b14 {color: #008000; background-color: #ffa0a0; } .sf9b16 {color: #008000; background-color: #f1e2ad; } .sf9b18 {color: #008000; background-color: #ffaa82; } .sf9b19 {color: #008000; background-color: #c8816c; } .sf10b2 {color: #ff0000; background-color: #ffffff; } .sf10b5 {color: #ff0000; background-color: #0078d7; } .sf10b14 {color: #ff0000; background-color: #ffa0a0; } .sf10b16 {color: #ff0000; background-color: #f1e2ad; } .sf10b18 {color: #ff0000; background-color: #ffaa82; } .sf10b19 {color: #ff0000; background-color: #c8816c; } .sf11b2 {color: #606060; background-color: #ffffff; } .sf11b5 {color: #606060; background-color: #0078d7; } .sf11b14 {color: #606060; background-color: #ffa0a0; } .sf11b16 {color: #606060; background-color: #f1e2ad; } .sf11b18 {color: #606060; background-color: #ffaa82; } .sf11b19 {color: #606060; background-color: #c8816c; } .sf12b2 {color: #800000; background-color: #ffffff; } .sf12b5 {color: #800000; background-color: #0078d7; } .sf12b14 {color: #800000; background-color: #ffa0a0; } .sf12b16 {color: #800000; background-color: #f1e2ad; } .sf12b18 {color: #800000; background-color: #ffaa82; } .sf12b19 {color: #800000; background-color: #c8816c; } .sf13b2 {color: #0080c0; background-color: #ffffff; } .sf13b5 {color: #0080c0; background-color: #0078d7; } .sf13b14 {color: #0080c0; background-color: #ffa0a0; } .sf13b16 {color: #0080c0; background-color: #f1e2ad; } .sf13b18 {color: #0080c0; background-color: #ffaa82; } .sf13b19 {color: #0080c0; background-color: #c8816c; } .sf15b2 {color: #000000; background-color: #ffffff; } .sf15b5 {color: #000000; background-color: #0078d7; } .sf15b14 {color: #000000; background-color: #ffa0a0; } .sf15b16 {color: #000000; background-color: #f1e2ad; } .sf15b18 {color: #000000; background-color: #ffaa82; } .sf15b19 {color: #000000; background-color: #c8816c; } .sf17b2 {color: #000000; background-color: #ffffff; } .sf17b5 {color: #000000; background-color: #0078d7; } .sf17b14 {color: #000000; background-color: #ffa0a0; } .sf17b16 {color: #000000; background-color: #f1e2ad; } .sf17b18 {color: #000000; background-color: #ffaa82; } .sf17b19 {color: #000000; background-color: #c8816c; } .sf20b2 {color: #000080; background-color: #ffffff; } .sf20b5 {color: #000080; background-color: #0078d7; } .sf20b14 {color: #000080; background-color: #ffa0a0; } .sf20b16 {color: #000080; background-color: #f1e2ad; } .sf20b18 {color: #000080; background-color: #ffaa82; } .sf20b19 {color: #000080; background-color: #c8816c; } .sf21b2 {color: #0080c0; background-color: #ffffff; } .sf21b5 {color: #0080c0; background-color: #0078d7; } .sf21b14 {color: #0080c0; background-color: #ffa0a0; } .sf21b16 {color: #0080c0; background-color: #f1e2ad; } .sf21b18 {color: #0080c0; background-color: #ffaa82; } .sf21b19 {color: #0080c0; background-color: #c8816c; } --> </style> </head> <body> <div class="border"><table cellspacing="0" cellpadding="0" style="width: 100%; margin: 0; border: none;"> <thead> <tr> <th class="title" style="width:1%"></th><th class="title" style="width:49.000000%">D:\Mécanique\_Projets\_tmp\Debug\3830\2) Reproduction_bug_ok\test_change_face_color_ORG\DiffuseColor2</th> <th class="title" style="width:1%"></th><th class="title" style="width:49.000000%">D:\Mécanique\_Projets\_tmp\Debug\3830\2) Reproduction_bug_ok\test_change_face_color_colored\DiffuseColor2</th> </tr> </thead> <tbody> <tr> <td class="ln"><a name="d1" href="#d1">.</a></td><td style="color: #000000; background-color: #efcb05; "><code><span class="sf17b16"> 01</span><span style="color: #000000; background-color: #efcb05; "> 00 00 00 00ÌÌÌ</span> </code></td> <td class="ln"></td><td style="color: #000000; background-color: #efcb05; "><code><span class="sf17b16"> 0F</span><span style="color: #000000; background-color: #efcb05; "> 00 00 00 00ÌÌÌ</span><span class="sf17b18"> 00ÌÌÌ 00ÌÌÌ 00ÌÌÌ 00<wbr>ÌÌÌ 00ÌÌÌ 00ÌÌÌ 00ÌÌÌ€ 00 00ÿ 00ÌÌÌ 00Ì<wbr>ÌÌ 00ÌÌÌ 00ÌÌÌ 00ÌÌÌ 00ÌÌÌ</span> </code></td> </tr> </tbody> </table> </div></body> </html> |
|
Version Infos |
|
@chrisb quick favor, when a bug is confirmed do you mind marking it as such (changing the status to yellow 'confirmed'). Thanks! @DeeJayOne thanks for your detailed follow-ups. JFYI, please for our convenience (less mouse clicks) instead of posting a screenshot of your About FreeCAD dialog window, please instead paste the text from Help > About FreeCAD > Copy to clipboard It actually provides us with more info and it takes up less storage space. Thank you. Edit: chrisb sorry, didn't see how old this ticket was and that you left the target version off intentionally |
|
Confirmed by chrisb on the forum thread |
|
I cannot get this to fail with the current head on Windows: OS: Windows 10 Version 2009 Word size of FreeCAD: 64-bit Version: 0.20.25442 (Git) Build type: Debug Branch: master Hash: d635f03a60a7ae1e6f9d390b9cbd7bdb91692996 Python version: 3.8.6+ Qt version: 5.15.1 Coin version: 4.0.1 OCC version: 7.5.0 Locale: English/United States (en_US) |
|
I can also not confirm this fail. OS: macOS 11.5 Word size of FreeCAD: 64-bit Version: 0.20.25440 (Git) Build type: Release Branch: master Hash: aff41725508852d8dbcbbbbe441a9e8a5ef39b53 Python version: 3.9.0 Qt version: 5.15.2 Coin version: 4.0.0 OCC version: 7.5.3 Locale: English/Germany (en_DE) |
|
I believe this issue has been resolved: marking as #tobeclosed unless someone drops by with a new failing test case. |
|
Closing |
Date Modified | Username | Field | Change |
---|---|---|---|
2019-02-12 06:27 | chrisb | New Issue | |
2019-09-03 05:56 | DeeJayOne | File Added: Reproduction_colored.FCStd | |
2019-09-03 05:56 | DeeJayOne | File Added: Reproduction_org.FCStd | |
2019-09-03 05:56 | DeeJayOne | Note Added: 0013517 | |
2019-09-03 08:58 | DeeJayOne | File Added: bug color - test_1.PNG | |
2019-09-03 08:58 | DeeJayOne | Note Added: 0013519 | |
2019-09-03 09:05 | DeeJayOne | File Added: test_change_face_color_colored.FCStd | |
2019-09-03 09:05 | DeeJayOne | File Added: test_change_face_color_ORG.FCStd | |
2019-09-03 09:05 | DeeJayOne | File Added: rapport_DiffuseColor2.htm | |
2019-09-03 09:05 | DeeJayOne | File Added: Capture d’écran (76).png | |
2019-09-03 09:05 | DeeJayOne | Note Added: 0013520 | |
2019-09-03 09:09 | DeeJayOne | Note Edited: 0013520 | |
2019-09-03 09:11 | DeeJayOne | File Added: FreeCAD_v0.18-16131 (2019-07-12).PNG | |
2019-09-03 09:11 | DeeJayOne | Note Added: 0013521 | |
2019-09-03 18:21 | Kunda1 | Note Added: 0013527 | |
2019-09-03 18:22 | Kunda1 | Status | new => confirmed |
2019-09-03 18:22 | Kunda1 | Note Added: 0013528 | |
2019-09-03 18:22 | Kunda1 | Note Edited: 0013527 | |
2019-09-03 18:23 | Kunda1 | Note Edited: 0013527 | |
2019-09-03 18:25 | Kunda1 | Note Edited: 0013527 | |
2019-09-03 18:25 | Kunda1 | Product Version | => 0.18 |
2021-02-06 06:43 | abdullah | Target Version | => 0.20 |
2021-06-07 12:06 | Kunda1 | Tag Attached: colors | |
2021-08-09 17:09 | chennes | Note Added: 0015788 | |
2021-08-09 19:02 | gift | Note Added: 0015790 | |
2021-12-29 05:26 | chennes | Note Added: 0016165 | |
2021-12-29 05:26 | chennes | Tag Attached: #tobeclosed | |
2022-01-22 21:47 | Kunda1 | Status | confirmed => closed |
2022-01-22 21:47 | Kunda1 | Resolution | open => fixed |
2022-01-22 21:47 | Kunda1 | Fixed in Version | => 0.20 |
2022-01-22 21:47 | Kunda1 | Note Added: 0016240 |