Skip to main content
MPath.4
Associate III
Solved

Touchgfx Designer is not opening in the computer.

 last time also this problem was occured so I installed it again after that it run for some days now again the problem has occured.

 When I open Touchgfx one msg come

Sorry - something unexpected has happened which caused an error to occur in the Designer.

For more information, see the log file located at: C:\Users\Kaushal\AppData\Roaming\TouchGFX-4.21.3\TouchGFXDesigner.log

Please someone help to give the solution of it.

This topic has been closed for replies.
Yoann KLEIN
Yoann KLEINBest answer
ST Employee

Hello @MPath.4​,

You can manually install the generator, by following the steps described at the bottom of this post.


_legacyfs_online_stmicro_images_0693W00000bjbYcQAI.png 

/Yoann

Yoann KLEINST Software Developer | TouchGFX

25 replies

MPath.4
MPath.4Author
Associate III

This is another one.

posted a file.

MPath.4
MPath.4Author
Associate III

It happened yesterday in the older version also when I generated code in stm32cubemx

Yoann KLEIN
ST Employee

When you open this file in a text editor, what do you see ?

/Yoann

Yoann KLEINST Software Developer | TouchGFX
MPath.4
MPath.4Author
Associate III

Actually the touchgfx doesn't open so I can't open any of these files.

But I didn't modify it because I can't do it.

Yoann KLEIN
ST Employee

I mean, when you right click on it and open it with Notepad.

/Yoann

Yoann KLEINST Software Developer | TouchGFX
OWLchan
Associate III

​i have same problem with u

​

​

​when i using demo


_legacyfs_online_stmicro_images_0693W00000bimzmQAA.png
_legacyfs_online_stmicro_images_0693W00000bimzmQAA.png​

when i trying Generate Code, run simulator and run target has same this error


_legacyfs_online_stmicro_images_0693W00000bin0uQAA.png 

Generate Code

  Copy Framework

    Copying TouchGFX framework version 4.21.3 to C:\Users\GIANG\Documents\TOUCH_GFX\MyApplication_5\Middlewares\ST\touchgfx

    Done

  Generate

    Wrote config/gcc/app.mk

    Wrote config/msvs/Application.props

    Wrote generated/gui_generated/include/gui_generated/common/FrontendApplicationBase.hpp

    Wrote generated/gui_generated/include/gui_generated/common/FrontendHeapBase.hpp

    Wrote generated/gui_generated/include/gui_generated/common/SimConstants.hpp

    Wrote generated/gui_generated/include/gui_generated/screen1_screen/Screen1ViewBase.hpp

    Wrote generated/gui_generated/src/common/FrontendApplicationBase.cpp

    Wrote generated/gui_generated/src/screen1_screen/Screen1ViewBase.cpp

    Wrote generated/simulator/gcc/Makefile

    Wrote generated/simulator/include/simulator/mainBase.hpp

    Wrote generated/simulator/include/simulator/video/DirectFrameBufferVideoController.hpp

    Wrote generated/simulator/include/simulator/video/MJPEGDecoder.hpp

    Wrote generated/simulator/include/simulator/video/SoftwareMJPEGDecoder.hpp

    Wrote generated/simulator/msvs/touchgfx_prebuild.targets

    Wrote generated/simulator/msvs/touchgfx_sdl2.props

    Wrote generated/simulator/msvs/touchgfx.props

    Wrote generated/simulator/src/mainBase.cpp

    Wrote generated/simulator/src/video/SoftwareMJPEGDecoder.cpp

    Wrote generated/simulator/touchgfx.ico

    Wrote generated/simulator/touchgfx.rc

    Wrote generated/simulator/touchgfx.res

    Wrote generated/user.config

    Wrote gui/include/gui/common/FrontendApplication.hpp

    Wrote gui/include/gui/common/FrontendHeap.hpp

    Wrote gui/include/gui/model/Model.hpp

    Wrote gui/include/gui/model/ModelListener.hpp

    Wrote gui/include/gui/screen1_screen/Screen1Presenter.hpp

    Wrote gui/include/gui/screen1_screen/Screen1View.hpp

    Wrote gui/src/common/FrontendApplication.cpp

    Wrote gui/src/model/Model.cpp

    Wrote gui/src/screen1_screen/Screen1Presenter.cpp

    Wrote gui/src/screen1_screen/Screen1View.cpp

    Wrote simulator/gcc/Makefile

    Wrote simulator/main.cpp

    Wrote simulator/msvs/Application.sln

    Wrote simulator/msvs/Application.vcxproj

    Wrote simulator/msvs/Application.vcxproj.filters

    Wrote target.config

    Done

  Generate Assets

    make -f simulator/gcc/Makefile assets -j8

    Reading ./application.config

    Reading ./target.config

    Generating generated/images/include/BitmapDatabase.hpp

    Generating generated/images/include/images/BitmapDatabase.hpp

    Generating generated/images/src/BitmapDatabase.cpp

    Generating generated/images/include/images/SVGDatabase.hpp

    Generating generated/images/src/SVGDatabase.cpp

    C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/3.0.0/win32/registry.rb:910:in `encode': code converter not found (UTF-16LE to Windows-1258) (Encoding::ConverterNotFoundError)

     from C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/3.0.0/win32/registry.rb:910:in `export_string'

     from C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/3.0.0/win32/registry.rb:611:in `each_key'

     from C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/msys2_installation.rb:62:in `block in iterate_msys_paths'

     from C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/3.0.0/win32/registry.rb:435:in `open'

     from C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/3.0.0/win32/registry.rb:542:in `open'

     from C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/msys2_installation.rb:61:in `iterate_msys_paths'

     from C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/msys2_installation.rb:89:in `msys_path'

     from C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/msys2_installation.rb:102:in `mingw_bin_path'

     from C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/msys2_installation.rb:112:in `enable_dll_search_paths'

     from C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/singleton.rb:27:in `enable_dll_search_paths'

     from C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/3.0.0/rubygems/defaults/operating_system.rb:3:in `<top (required)>'

     from C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/3.0.0/rubygems.rb:1348:in `require'

     from C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/3.0.0/rubygems.rb:1348:in `<top (required)>'

     from <internal:gem_prelude>:2:in `require'

     from <internal:gem_prelude>:2:in `<internal:gem_prelude>'

    C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/3.0.0/win32/registry.rb:910:in `encode': code converter not found (UTF-16LE to Windows-1258) (Encoding::ConverterNotFoundError)

     from C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/3.0.0/win32/registry.rb:910:in `export_string'

     from C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/3.0.0/win32/registry.rb:611:in `each_key'

     from C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/msys2_installation.rb:62:in `block in iterate_msys_paths'

     from C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/3.0.0/win32/registry.rb:435:in `open'

     from C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/3.0.0/win32/registry.rb:542:in `open'

     from C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/msys2_installation.rb:61:in `iterate_msys_paths'

     from C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/msys2_installation.rb:89:in `msys_path'

     from C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/msys2_installation.rb:102:in `mingw_bin_path'

     from C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/msys2_installation.rb:112:in `enable_dll_search_paths'

     from C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/singleton.rb:27:in `enable_dll_search_paths'

     from C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/3.0.0/rubygems/defaults/operating_system.rb:3:in `<top (required)>'

     from C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/3.0.0/rubygems.rb:1348:in `require'

     from C:/TouchGFX/4.21.3/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/3.0.0/rubygems.rb:1348:in `<top (required)>'

     from <internal:gem_prelude>:2:in `require'

     from <internal:gem_prelude>:2:in `<internal:gem_prelude>'

    make[1]: *** [texts] Error 1

    generated/simulator/gcc/Makefile:225: recipe for target 'texts' failed

    make[1]: *** Waiting for unfinished jobs....

    make[1]: *** [videos] Error 1

    generated/simulator/gcc/Makefile:229: recipe for target 'videos' failed

    simulator/gcc/Makefile:32: recipe for target 'assets' failed

    make: *** [assets] Error 2

    Failed

  Failed

Yoann KLEIN
ST Employee

Weird, that does not happen for me with 4.21.3.

Could you please try with the new 4.21.4 we just released, and let me know how it is going ?

Thanks,

/Yoann

Yoann KLEINST Software Developer | TouchGFX
Jnevi.1
Associate III

your file is full of zeros and not a valid .touchgfx file

MPath.4
MPath.4Author
Associate III

hello, @Yoann KLEIN​ I think there is no generator available of touchgfx4.21.4 in stm32cubemx and I am finding an issue in sending data it is always going to hardfault handler can you please provide the generator of touchgfx.

Yoann KLEIN
Yoann KLEINBest answer
ST Employee

Hello @MPath.4​,

You can manually install the generator, by following the steps described at the bottom of this post.


_legacyfs_online_stmicro_images_0693W00000bjbYcQAI.png 

/Yoann

Yoann KLEINST Software Developer | TouchGFX
MPath.4
MPath.4Author
Associate III

OK I got it, Thank you so much for helping.@Yoann KLEIN​