unexpected error has happened!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-05-07 7:03 PM
error:object of type
'touchgfxdesiger.main.project.texts.texttab.textgrid.translat
ionviewmodel' cannot be converted to type
'touchgfxdomainmodel.text.models.typogrephy'.
Now I can't open my project,so what can i do?
Solved! Go to Solution.
- Labels:
-
TouchGFX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-05-12 1:46 AM
Perhaps due to translation issues, I didn't describe it properly last time.
I found that there is an additional "Typography" in the language area of ...\assets\texts\texts.xml, which leads to an error.(I deleted the ones related to "Typography" in this file,solved problem of “unexpected error has happened”)
The reason for such a problem is that when adding Texts, I wanted to use different fonts for different languages. At that time, I added "Typography" beside it. However, after adding it, touchgfx designer reported an error. Then I deleted this operation, but for some reason, it still exists in...\assets\texts\texts.xml.
The solutions to the new questions I raised are actually mentioned in the official documents.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-05-07 7:15 PM
On touchgfxdesigner.log:
2025-05-08 09:50:36,936 [1] DEBUG Touchgfxpackages.implementation.touchgfxpackagestream:filestream opened on D:\touchgfx\4.24.1\app\packages\simulator-2.0.0.tpa
2025-05-08 09:50:37,026 [11] INFO Touchgfxpackages.implementation.filedownloader:take aperation was canceled.iscancellationrequested=true
2025-05-08 09:50:37,036 [1] INFO touchgfxdesigner.main.mainwindow:application closed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-05-08 4:46 AM
Hello @XiaoenLee ,
Can you share the full log file and maybe a screenshot of the error message?
Regards,
Software engineer at ST (TouchGFX)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-05-08 6:11 PM
Sorry, I just saw the message now. It can't be sent on another computer. But through my gradual debugging, I found that... There is an additional "Typography" in the language area of \assets\texts\texts xml, which leads to an error.
The reason for such a problem is that when adding Texts, I wanted to use different fonts for different languages. At that time, I added "Typography" beside it. However, after adding it, touchgfx designer reported an error. Then I deleted this operation, but for some reason, it still exists in... In \assets\texts\ nines.xml.
Finally, I would like to ask whether touchgfx designer supports using different fonts for different languages in the font project of the same ID?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-05-09 1:18 AM - edited 2025-05-09 1:28 AM
Hello @XiaoenLee ,
So you found the answer, but it gets generated again and again, so you are not able to fix the issue?
Regarding the typographies for different languages, you can look at the "Text Animation Demo" where we have multiple languages (including Chinese):
but you can also look at this thread where we explain how to add different languages (and font) to a single typography.
Regards,
Software engineer at ST (TouchGFX)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-05-12 1:17 AM
Hello @XiaoenLee ,
I see you have liked my last message, did it help you on solving your issue or are you still blocked?
Regards,
Software engineer at ST (TouchGFX)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-05-12 1:25 AM
My problem has been solved. Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-05-12 1:26 AM
I am glad to hear that! :)
Can you tell me how you fixed it?
Regards,
Software engineer at ST (TouchGFX)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-05-12 1:46 AM
Perhaps due to translation issues, I didn't describe it properly last time.
I found that there is an additional "Typography" in the language area of ...\assets\texts\texts.xml, which leads to an error.(I deleted the ones related to "Typography" in this file,solved problem of “unexpected error has happened”)
The reason for such a problem is that when adding Texts, I wanted to use different fonts for different languages. At that time, I added "Typography" beside it. However, after adding it, touchgfx designer reported an error. Then I deleted this operation, but for some reason, it still exists in...\assets\texts\texts.xml.
The solutions to the new questions I raised are actually mentioned in the official documents.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-05-12 2:24 AM
Thank you for the information! :)
Don't hesitate to create another thread if you encounter another challenge.
Regards,
Software engineer at ST (TouchGFX)
