Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No text in UI when running vv in WSL2 Ubuntu on Windows #87

Open
jmartens opened this issue Mar 24, 2021 · 13 comments
Open

No text in UI when running vv in WSL2 Ubuntu on Windows #87

jmartens opened this issue Mar 24, 2021 · 13 comments

Comments

@jmartens
Copy link

When running vv on my Windows 10 using Ubuntu and WSL2 I get the following screen without readable text.

image

When I navigate to the menu to exit this is the output in my command window:

# docker run -ti --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v /home/tbaudier:/home tbaudier/vv
bash-4.3# vv
libpng warning: iCCP: too many profiles
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
bash-4.3#`
``
@jmartens
Copy link
Author

jmartens commented Apr 7, 2022

Tried today using Docker since I needed the tool again, but same issues there. Any clues/pointers?

Judging from the error Point size calculation seems to go wrong.

@jwutsetro
Copy link

has this ever been resolved ? I am having the same issues ...

@tbaudier
Copy link
Contributor

Unfortunately we do not have time to support vv for Windows

@jwutsetro
Copy link

jwutsetro commented Oct 26, 2023

Ah, I am not running it on windows but on newest version of Mac OS ( Sonoma) . Compiling from scratch had some issues with the newest clang versions, so I tried to run it in docker. However, when running it in the docker, I get the errors above...

Kindly,
Joris

@tbaudier
Copy link
Contributor

For me, it's work on MacOS:

(base) tbaudier@eq4-tb-693 ~ % gcc -v
Apple clang version 15.0.0 (clang-1500.0.40.1)
Target: x86_64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

With
itk = v5.2.1
vtk = 9.1.0

@jwutsetro
Copy link

I will give that a try ! I was trying to compile it with a much older version of vtk ( and that is where the troubles already started ). I will get back to you if it works !

Kindly,
Joris

@jwutsetro
Copy link

The versions of its and vtk are compiled without issue. however, when making vv, I get some errors ( attached in picture).
I tried both with and without the CXX flag to std=c++11. Any other ideas what to change?

Screenshot 2023-10-26 at 12 52 04

@tbaudier
Copy link
Contributor

Could you discribe the option you selected during configuration step please?

@jwutsetro
Copy link

Below a screenshot of my configurations. I tried changing the Cmake_CXX_FLAGS to -std=c++11, but that did not work. I must confess that my knowledge on make/cmake an C++ is rather small. But I after searching a bit on the errors it seems to me it has something to do with the C++11 compatibility.

Screenshot 2023-10-26 at 13 31 44 (2) Screenshot 2023-10-26 at 13 31 41 (2)

@tbaudier
Copy link
Contributor

I'm sorry, I cannot reproduce the error on my computer

@jwutsetro
Copy link

Thanks for trying anyway. The only thing I can think of that is not exactly as mentioned in the compiling guide is some flags when compiling vtk 9.1.0. I could not find Module_vtkGUISupportQtOpenGL nor VTK_RENDERING_BACKEND. So it might be using openGL2 by default ?

Otherwise I am clueless :)

@tbaudier
Copy link
Contributor

Here, our modified flags:
VTK:

BUILD_SHARED_LIBS ON
CMAKE_BUILD_TYPE Release
VTK_MODULE_ENABLE_VTK_GUISupportQt YES
VTK_MODULE_ENABLE_VTK_RenderingQt YES
VTK_MODULE_ENABLE_VTK_ViewsQt YES

ITK:

BUILD_EXAMPLES OFF
BUILD_SHARED_LIBS ON
BUILD_TESTING OFF
Module_ITKVtkGlue ON

@jwutsetro
Copy link

Thanks for sharing, I had exactly the same values,...
Currently I am trying it with an other version of qt, colleagues of me have an old working version on qt 5.9.7, I was using 5.15.9. The output of gcc-v give the following for me
(base) jw@Js-MacBook-Pro Qt5Designer % cd $home
(base) jw@Js-MacBook-Pro ~ % gcc -v
Apple clang version 15.0.0 (clang-1500.0.40.1)
Target: x86_64-apple-darwin23.0.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Trying it with the different qt version will be my last try I guess :), thanks for all the help anyway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants