Page 1 of 1

Mystery: Config.ini size, how big is too big?

Posted: 08 May 2017, 17:26
by Svengali
Is there any size restriction on how large the Config.ini file can be?

Re: Mystery: Config.ini size, how big is too big?

Posted: 08 May 2017, 19:06
by Fabrice
I have no idea.
Mike will check it once he is back in the office (next week).

Re: Mystery: Config.ini size, how big is too big?

Posted: 30 May 2017, 13:36
by Svengali
Fabrice wrote: 08 May 2017, 19:06 Mike will check it once he is back in the office (next week).
Fabrice, If Mike is back, has he had a chance to look into the question of Config.ini size limits?

Sven

Re: Mystery: Config.ini size, how big is too big?

Posted: 30 May 2017, 14:05
by Fabrice
He just told me that there should be no limit.
Btw, why do you need the information ?

Re: Mystery: Config.ini size, how big is too big?

Posted: 30 May 2017, 15:19
by Svengali
I think I've uncovered a side-effect of over-inflating the Config.ini file...

My Symptom: When adding commands to a new button using the "Set KeyStroke" command, I consistently crash if I try to insert any commands past the Timeline group, in other words, all Tools categories, TVPaint Animation, Twain, Undo and Zoom.

Testing: To see if the Config.ini file size was the problem I substituted some old backed-up Config.ini files from earlier this year and late last year. As the size of the earlier Config.ini files diminished, I could select further down the Set KeyStroke list before the crash occurred. I couldn't identify any other conditions beyond that apparent cause and effect.

Over time I've generated LOTS and LOTS of custom Buttons/George Scripts, Tools and AnimBrushes in various Custom Panels, many of them use tv_WriteUserString and tv_ReadUserString to store variable values in the Config.ini file as temporary storage...

By far, the largest block of lines extends from the [ToolBoxList] group (from line 37189 to 78514, which is the last line in the Config.ini file) where all of the entries start with a number followed by assorted information: I can't define the nature of this huge block of data but here are a few lines I grabbed as an example:

Code: Select all

0913_collapsed=0
0921_text=ToggleBrush
0925_keyboardshortcut=3a12187b-3e72-324a-871f-54db25582d0b
0929_cmd0=CBTool:141eeb66-686b-2045-91b8-a4fc5a67dcc4
0930_keyboardshortcut=af0d5b3c-106e-a84b-9c49-454266c2e2b3
0934_cmd0=Key:ToggleShowCamera
0937_type=1
104_file=_9c726d05-dc3f-9f49-99d0-efdae6a5e6fb.dip
1029_count=1
1030_comment=set cursor to highest desired frame for all layers
1034_count=2
119_keyboardshortcut=5427eff5-a002-e14d-99cf-3f3220a99bed
1113_cmd0=Grab:
1116_type=1
in other words the Config.ini file is huge, probably containing lots of extraneous and outdated content.

I also have no idea how to identify "garbage content" from critical content.

My plan is to rebuild the Config.ini file from scratch after consolidating the contents of the Custom Panels (temporarily stored in .tvpx files) to clean house.

FYI, the current Config.ini weighs in at 2,963 kb and TVPaint startup from my C: SSD takes about 5 seconds.

Sven

Re: Mystery: Config.ini size, how big is too big?

Posted: 31 May 2017, 06:59
by NathanOtano
I wonder if i'd better do the same with my config. My config weights 988 kb and I see it's groing larger and larger because of my config backup files (also it's synced on my Gdrive for all my computers). I have no problems setting shortcuts however, but I experience some random crash since 2 years and I think it's still the same config.