[Solved] Drawing on top of imported PNG image creates Fatal error.

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
User avatar
hhassey
Posts: 243
Joined: Thu Jun 04, 2015 8:01 pm
Location: Ensenada, Mexico

[Solved] Drawing on top of imported PNG image creates Fatal error.

Post by hhassey »

Imported an image in a plane, proceed to draw on top of that image (pretty common for architectural work trying to measure wall areas) then saved the work, when you re open the file everything is messed up. and creates this error message:

Code: Select all

Fatal Error at file /home/Test_File.fcstd, line 64, char 53
Invalid Document.xml: expected entity name for reference
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 31 (X_GrabKeyboard)
  Resource id: 0x0
These are the steps to reproduce:
1.- Open new Document
2.- Switch to Image WB.
3.- Push "Createe Planar image in 3D space" Select a png image. on plane x-y
4.- Set the image position to -1m
5.- Switch to the Draft WB
6.- Draw a "Multiple point Draft Wire" on top of the image, don't close it
7.- Save your work and Re open

System Information:

OS: Debian GNU/Linux 9.5 (stretch)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14959 (Git)
Build type: Debug
Branch: master
Hash: ff05101b68dc9a7d1e70dd69544f14ac8598a433
Python version: 2.7.13
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
Locale: English/UnitedStates (en_US)

A bug on the tracker system has been issued:
https://www.freecadweb.org/tracker/view.php?id=3632
Last edited by hhassey on Mon Dec 17, 2018 8:19 pm, edited 1 time in total.
User avatar
hhassey
Posts: 243
Joined: Thu Jun 04, 2015 8:01 pm
Location: Ensenada, Mexico

Re: Drawing on top of imported PNG image creates Fatal error.

Post by hhassey »

FOUND THE BUG, the png image name had an "&" in it and made FreeCAD crash
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Drawing on top of imported PNG image creates Fatal error.

Post by Kunda1 »

hhassey wrote: Wed Oct 10, 2018 4:42 pm FOUND THE BUG, the png image name had an "&" in it and made FreeCAD crash
@hhassey wmayer committed a fix for this in git commit 22ddbe0f8d6
Can you test and confirm and prepend [Solved] to this forum thread please...? Thanks!
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
hhassey
Posts: 243
Joined: Thu Jun 04, 2015 8:01 pm
Location: Ensenada, Mexico

Re: Drawing on top of imported PNG image creates Fatal error.

Post by hhassey »

Confirmed, It works perfectly now.

Thanks for the hard work :)
Post Reply