Error "Invalid source position for horizontal gradient" after starting

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
juaco13
Posts: 2
Joined: Sun Feb 12, 2017 7:40 am

Error "Invalid source position for horizontal gradient" after starting

Post by juaco13 »

As a new user, I hope to address the issue below to the right group.

After updating of my system the new deb package of FreeCAD

OS: Debian GNU/Linux 9.0 (stretch)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16, Libs: 0.16R
Build type: None
Python version: 2.7.13
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17

was installed (Info obtained from the menu About FreeCAD and the console). Starting FreeCAD with

$ freecad &

generates plenty of errors:

** (freecad:8492): WARNING **: invalid source position for horizontal gradient

I don't know whether this is in relation with the later error when using the Draft module and trying to create a circle or an ellipse:

Pick center point:
Pick radius:
Coin warning in SbMatrix::inverse(): Matrix is singular.
Coin warning in SbDPLine::setValue(): The two points defining the line is equal => line is invalid.
Coin warning in SbLine::setValue(): The two points defining the line is equal => line is invalid.

Trying to upgrade the circle or the ellipse is not possible, Error on the console:

Unable to upgrade these objects.

Might this be a bug of this Debian package?

My system:
Linux <myhostname> 4.8.0-2-amd64 #1 SMP Debian 4.8.11-1 (2016-12-02) x86_64 GNU/Linux

Thanks in advance for any hint!
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Error "Invalid source position for horizontal gradient" after starting

Post by NormandC »

Hello,

Welcome to the forum.
juaco13 wrote:Might this be a bug of this Debian package?
It's possible. Could you try out the AppImage build available here? Download

It's a self-contained package that can run on most recent Linux distros. All you need to do is to make it executable then launch it.
juaco13
Posts: 2
Joined: Sun Feb 12, 2017 7:40 am

Re: Error "Invalid source position for horizontal gradient" after starting

Post by juaco13 »

NormandC wrote:Hello,
juaco13 wrote:Might this be a bug of this Debian package?
It's possible. Could you try out the AppImage build available here? Download

It's a self-contained package that can run on most recent Linux distros. All you need to do is to make it executable then launch it.
Thanks a lot for this hint. I tried with the AppImage build, it works fine. However, the warning message

Code: Select all

** (freecad:13169): WARNING **: invalid source position for horizontal gradient
still appears. Using the AppImage I discovered the option "Make Face". Its default value is "False". You must set it to "True" to upgrade a circle (or ellipse) to face. This face can now be converted to a structure with the Arch module.

Trying the same with my currently installed Debian package: it also works! While for a circle (or ellipse) I had to set manually "Make Face" to "True", for rectangle or polygon this is not needed at all, even if that option is set to "False" by default. Also interesting is the vector in which the structure grows when generating. Rectangles/polygons on the XY plane grow in positive, circles/ellipses in the negative Z direction. This does not matters much, however one would expect a similar behavior.

Thanks a lot for your help!
Post Reply