Skip to main content
Ghofm.1
Associate II
Jan 18, 2023 10:26 AM UTC
Solved

I updated a project from 4.20.0 to 4.21.0. Now the project doesn't open, and I receive the error: "input string was not in correct format". How can I fix this?

I just updated TouchGFX designer from version 4.2.0 to 4.21.0. Trying to open my projects saved last time with version 4.2.0, I'm obliged to update them to the new version. After this, they are all corrupted.

This topic has been closed for replies.
Osman SOYKURT
Osman SOYKURTBest answer
ST Technical Moderator
Jan 26, 2023 3:52 PM UTC

Hello Ghofm.1,

We have found the cause of your issue. To make it short, some of your image names are incompatible with the current version of TouchGFX Designer. We'll consider to fix that for future version.

As a workaround, I can suggest you to change all your images names ending with the extensions ".svg.png" by something else like ".png" only. The ".svg.png" is reserved by our libs to manage SVG images which is a new feature from 4.21.0 version. Can you try that and tell me if that works ? I saw some of them used in your "Password" screen.

/Osman

ST Software Developer | TouchGFX

9 replies

Yoann KLEIN
ST Employee
Jan 18, 2023 12:31 PM UTC

Hello @Ghofm.1​,

What happens exactly with TouchGFX Designer ? Is it still showing your project or does it only display a empty screen ?

Can you provide a screenshot of the interface and also of the error message ?

Thanks,

/Yoann

Yoann KLEINST Software Developer | TouchGFX
Ghofm.1
Ghofm.1Author
Associate II
Jan 18, 2023 1:01 PM UTC

here attached 2 screenshots. When I try to open a project, I receive the message I need to convert it (screenshot 1); if I say "no", it doesn't open. If I say "yes", the error (input string was not in correct format) appears in very short time (few seconds), and then it doesn't open the project. Even if I retry.

Osman SOYKURT
ST Technical Moderator
Jan 18, 2023 1:33 PM UTC

Hello Ghofm.1,

Can you send us the log file located at this path : "C:\Users\YOUR_USER_NAME\AppData\Roaming\TouchGFX-4.21.0\TouchGFXDesigner.log"

Or even better, can you send your project ?

/Osman

ST Software Developer | TouchGFX
Ghofm.1
Ghofm.1Author
Associate II
Jan 24, 2023 3:13 PM UTC

bytheway: I installed newest version (4.21.1), and reloaded again my documents saved last time with version 4.20.0. Nothing changed.

Ghofm.1
Ghofm.1Author
Associate II
Jan 23, 2023 8:37 AM UTC

Here it is.

Osman SOYKURT
ST Technical Moderator
Jan 25, 2023 9:51 AM UTC

Hello Ghofm.1,

Thank you :thumbs_up: we'll investigate it.

/Osman

ST Software Developer | TouchGFX
Osman SOYKURT
Osman SOYKURTBest answer
ST Technical Moderator
Jan 26, 2023 3:52 PM UTC

Hello Ghofm.1,

We have found the cause of your issue. To make it short, some of your image names are incompatible with the current version of TouchGFX Designer. We'll consider to fix that for future version.

As a workaround, I can suggest you to change all your images names ending with the extensions ".svg.png" by something else like ".png" only. The ".svg.png" is reserved by our libs to manage SVG images which is a new feature from 4.21.0 version. Can you try that and tell me if that works ? I saw some of them used in your "Password" screen.

/Osman

ST Software Developer | TouchGFX
Ghofm.1
Ghofm.1Author
Associate II
Jan 27, 2023 8:22 AM UTC

Hi Osnam,

I updated the image names as you suggested, and stored the project with TouchGFX 4.20.

Then I reopened it with TouchGFX 4.21.1, and finally everything worked fine!

Thank you very much for support!

Osman SOYKURT
ST Technical Moderator
Jan 27, 2023 9:43 AM UTC

You're welcome! Happy to hear that :)

/Osman

ST Software Developer | TouchGFX