[SOLVED] LineGroup::invalid entry in LineGroup.csv

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
kaktus
Veteran
Posts: 1183
Joined: Sun Aug 11, 2019 11:59 am
Location: opolskie
Contact:

[SOLVED] LineGroup::invalid entry in LineGroup.csv

Post by kaktus »

For some time now this message has accompanied me every time I start FreeCAD after loading a drawing page.

it looks as follows:
Screenshot_20220705_185959.png
Screenshot_20220705_185959.png (466.15 KiB) Viewed 1272 times
wall of red text ... :?

Code: Select all

08:23:29  LineGroup: the LineGroup file has only 7 entries but entry number -1 is set
08:23:29  LineGroup::invalid entry in /home/kaktus/.FreeCAD/usr/share/Mod/TechDraw/LineGroup/LineGroup.csv
08:23:55  LineGroup: the LineGroup file has only 7 entries but entry number -1 is set
08:23:55  LineGroup::invalid entry in /home/kaktus/.FreeCAD/usr/share/Mod/TechDraw/LineGroup/LineGroup.csv
08:23:59  LineGroup: the LineGroup file has only 7 entries but entry number -1 is set
08:23:59  LineGroup::invalid entry in /home/kaktus/.FreeCAD/usr/share/Mod/TechDraw/LineGroup/LineGroup.csv
08:24:03  LineGroup: the LineGroup file has only 7 entries but entry number -1 is set
08:24:03  LineGroup::invalid entry in /home/kaktus/.FreeCAD/usr/share/Mod/TechDraw/LineGroup/LineGroup.csv
08:24:06  LineGroup: the LineGroup file has only 7 entries but entry number -1 is set
08:24:06  LineGroup::invalid entry in /home/kaktus/.FreeCAD/usr/share/Mod/TechDraw/LineGroup/LineGroup.csv
08:24:11  LineGroup: the LineGroup file has only 7 entries but entry number -1 is set
08:24:11  LineGroup::invalid entry in /home/kaktus/.FreeCAD/usr/share/Mod/TechDraw/LineGroup/LineGroup.csv
08:24:16  LineGroup: the LineGroup file has only 7 entries but entry number -1 is set
08:24:16  LineGroup::invalid entry in /home/kaktus/.FreeCAD/usr/share/Mod/TechDraw/LineGroup/LineGroup.csv
08:25:26  LineGroup: the LineGroup file has only 7 entries but entry number -1 is set
08:25:26  LineGroup::invalid entry in /home/kaktus/.FreeCAD/usr/share/Mod/TechDraw/LineGroup/LineGroup.csv
08:25:41  LineGroup: the LineGroup file has only 7 entries but entry number -1 is set
08:25:41  LineGroup::invalid entry in /home/kaktus/.FreeCAD/usr/share/Mod/TechDraw/LineGroup/LineGroup.csv
08:26:02  LineGroup: the LineGroup file has only 7 entries but entry number -1 is set
08:26:02  LineGroup::invalid entry in /home/kaktus/.FreeCAD/usr/share/Mod/TechDraw/LineGroup/LineGroup.csv
08:26:21  LineGroup: the LineGroup file has only 7 entries but entry number -1 is set
08:26:21  LineGroup::invalid entry in /home/kaktus/.FreeCAD/usr/share/Mod/TechDraw/LineGroup/LineGroup.csv
08:26:33  LineGroup: the LineGroup file has only 7 entries but entry number -1 is set
08:26:33  LineGroup::invalid entry in /home/kaktus/.FreeCAD/usr/share/Mod/TechDraw/LineGroup/LineGroup.csv
08:27:13  LineGroup: the LineGroup file has only 7 entries but entry number -1 is set
08:27:13  LineGroup::invalid entry in /home/kaktus/.FreeCAD/usr/share/Mod/TechDraw/LineGroup/LineGroup.csv
08:27:33  LineGroup: the LineGroup file has only 7 entries but entry number -1 is set
08:27:33  LineGroup::invalid entry in /home/kaktus/.FreeCAD/usr/share/Mod/TechDraw/LineGroup/LineGroup.csv
My basic set-up for the TechDraw workbench:
Screenshot_20220705_190302.png
Screenshot_20220705_190302.png (468.17 KiB) Viewed 1272 times
My LineGroup file:

Code: Select all

19:24 kaktusek@donica:~/.FreeCAD/usr/share/Mod/TechDraw/LineGroup$ ls -l
razem 12
-rw-r--r-- 1 kaktus kaktus 1070 07-03 18:24 LineGroup.csv
LineGroup.csv
(1.04 KiB) Downloaded 25 times
Errors occur practically when loading any project file from several versions of FC releases. :x
Do you have any ideas on how to get rid of them :?:

Code: Select all

OS: Debian GNU/Linux bookworm/sid (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.21.29365 (Git) AppImage
Build type: Release
Branch: master
Hash: 59b945dcc329303ad781075ecf30544aab909415
Python 3.10.5, Qt 5.12.9, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.3
Locale: Polish/Poland (pl_PL)
Installed mods: 
...
Attachments
zatyczka.FCStd
(105.49 KiB) Downloaded 24 times
Last edited by kaktus on Mon Aug 01, 2022 4:35 am, edited 1 time in total.
Twórca polskiej wersji Wiki dla FreeCAD, współwórca polskiej wersji GUI.
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
User avatar
Shalmeneser
Veteran
Posts: 9558
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: LineGroup::invalid entry in LineGroup.csv

Post by Shalmeneser »

Some messages opening your file :

Code: Select all

Line Group File: C:/***/FreeCAD_weekly-builds-28929-Win-Conda-x86_64/data/Mod/TechDraw/LineGroup/LineGroup.csv is not readable
20:43:27  INFO - ViewProviderPage::getMDIViewPage has no m_mdiView!
20:43:29  TIMING - ProjItem GO spent: 60.989 millisecs in HLRBRep_Algo & co
20:43:29  TIMING - ProjItem GO spent: 1.762 millisecs in hlrToShape and BuildCurves
20:43:29  TechDraw::GeometryObject::addGeomFromCompound edgeCompound is NULL
20:43:29  INFO - ViewProviderPage::getMDIViewPage has no m_mdiView!
20:43:29  TIMING - ProjItem001 GO spent: 34.864 millisecs in HLRBRep_Algo & co
20:43:29  TIMING - ProjItem001 GO spent: 1.901 millisecs in hlrToShape and BuildCurves
20:43:29  TechDraw::GeometryObject::addGeomFromCompound edgeCompound is NULL
20:43:29  TIMING - ProjItem002 GO spent: 35.294 millisecs in HLRBRep_Algo & co
20:43:29  TIMING - ProjItem002 GO spent: 1.913 millisecs in hlrToShape and BuildCurves
20:43:29  TechDraw::GeometryObject::addGeomFromCompound edgeCompound is NULL
20:43:29  INFO - ViewProviderPage::getMDIViewPage has no m_mdiView!
20:43:29  TIMING - ProjItem003 GO spent: 34.953 millisecs in HLRBRep_Algo & co
20:43:29  TIMING - ProjItem003 GO spent: 1.889 millisecs in hlrToShape and BuildCurves
20:43:29  TechDraw::GeometryObject::addGeomFromCompound edgeCompound is NULL
20:43:29  TechDraw::GeometryObject::addGeomFromCompound edgeCompound is NULL
20:43:29  INFO - ViewProviderPage::getMDIViewPage has no m_mdiView!
20:43:29  INFO - QGIVD::draw - no parent to update
User avatar
kaktus
Veteran
Posts: 1183
Joined: Sun Aug 11, 2019 11:59 am
Location: opolskie
Contact:

Re: LineGroup::invalid entry in LineGroup.csv

Post by kaktus »

With you there is also a problem with the LineGroup.csv file
did you check if it exists in the specified location?

What do you have entered in TechDraw preferences?
Twórca polskiej wersji Wiki dla FreeCAD, współwórca polskiej wersji GUI.
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
User avatar
wandererfan
Veteran
Posts: 6309
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: LineGroup::invalid entry in LineGroup.csv

Post by wandererfan »

kaktus wrote: Tue Jul 05, 2022 8:19 pm
What is your setting for LineGroup on the Annotations tab in Preferences?
Attachments
tdPrefsAnno.png
tdPrefsAnno.png (104.83 KiB) Viewed 1192 times
User avatar
Shalmeneser
Veteran
Posts: 9558
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: LineGroup::invalid entry in LineGroup.csv

Post by Shalmeneser »

:arrow:
Attachments
zatyczka_SHALM.FCStd
(94.13 KiB) Downloaded 32 times
Capture d’écran 2022-07-06 093012.jpg
Capture d’écran 2022-07-06 093012.jpg (27.4 KiB) Viewed 1153 times
User avatar
kaktus
Veteran
Posts: 1183
Joined: Sun Aug 11, 2019 11:59 am
Location: opolskie
Contact:

Re: LineGroup::invalid entry in LineGroup.csv

Post by kaktus »

wandererfan wrote: Wed Jul 06, 2022 1:01 am ...
What is your setting for LineGroup on the Annotations tab in Preferences?
.
This is probably where the problem was. In my case nothing was entered in this place.
.
LineWidthGroup.png
LineWidthGroup.png (133.84 KiB) Viewed 1089 times
.
Now I am not able to check what result will come from defining this option because I went on vacation and do not have access to my projects.

But I expect positive results.
After completing the indicated option, the message about the LineGroup file when I created a new project stopped bothering me. :D

By the way, the name of the option "Line Width Group" is uncommunicative to me. :roll:

To be honest, I was wondering where the line widths on the drawing page are defined (and if they are there at all).

Thanks to your information I found out that they are and how to change them according to my own criteria.
Perhaps the description in the option hint could be better. Until now I didn't know what the line group refers to.
I thought that the user can define his line groups and for individual needs define their visual characteristics.
And in fact it is a very helpful option that defines the basic dependencies of line features depending on their type.

As a translator, I will be able to improve the displayed content for the option in Polish. ;)


Shalmeneser thank you for taking on the topic and trying to solve my problem.
I will ask for two words of commentary on your picture because I don't know what you mean.
;)
Twórca polskiej wersji Wiki dla FreeCAD, współwórca polskiej wersji GUI.
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
User avatar
Shalmeneser
Veteran
Posts: 9558
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: LineGroup::invalid entry in LineGroup.csv

Post by Shalmeneser »

My file is not an answer, just an other way of doing your object.
User avatar
kaktus
Veteran
Posts: 1183
Joined: Sun Aug 11, 2019 11:59 am
Location: opolskie
Contact:

Re: LineGroup::invalid entry in LineGroup.csv

Post by kaktus »

ah -ok
thanks to :D
I'll take a look at it.

edit:
well but your message has no attachment
you only posted a snippet with a screenshot :roll:
Twórca polskiej wersji Wiki dla FreeCAD, współwórca polskiej wersji GUI.
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
User avatar
Shalmeneser
Veteran
Posts: 9558
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: LineGroup::invalid entry in LineGroup.csv

Post by Shalmeneser »

The file is above the image. :roll:
User avatar
kaktus
Veteran
Posts: 1183
Joined: Sun Aug 11, 2019 11:59 am
Location: opolskie
Contact:

Re: LineGroup::invalid entry in LineGroup.csv

Post by kaktus »

I didn't notice before...
:lol:
Twórca polskiej wersji Wiki dla FreeCAD, współwórca polskiej wersji GUI.
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
Post Reply