Fail to run (new install) on Ubuntu 20.04

Trying to install software on Ubuntu 20.04.
Completed the steps, running setup.sh and it adds the desktop file.
All the required files appear to be now set as executable.

running the main application …x86_64 gets an error. "segmentation fault (core dump).

Any suggestions?

  • **SquareLine Studio version: latest
  • Operating system: Ubuntu 20.04 (updated)
  • Target hardware: Thinkpad T410

Please try to run it from a Terminal. Hopefully it tells more detail.

Please attache the logs as described here.

Terminal log didn’t say much. Thanks for the log location.
Log copied below. It does say no OpenGL profile but the usual check says:
$ glxinfo | grep “OpenGL version”
OpenGL version string: 2.1 Mesa 21.2.6

Mono path[0] = ‘/home/bm/squareline/SquareLine_Studio_Linux_v1_1_1/SquareLine_Studio_Data/Managed’
Mono config path = ‘/home/bm/squareline/SquareLine_Studio_Linux_v1_1_1/SquareLine_Studio_Data/MonoBleedingEdge/etc’
Preloaded ‘libFileBrowser.so’
Preloaded ‘libastyle.so’
Display 0 ‘0’: 1440x900 (primary device).
Unable to load player prefs
Desktop is 1440 x 900 @ 60 Hz
Unable to find a supported OpenGL core profile
Failed to create valid graphics context: please ensure you meet the minimum requirements
E.g. OpenGL core profile 3.2 or later for OpenGL Core renderer
[Vulkan init] extensions: count=18
[Vulkan init] extensions: name=VK_KHR_device_group_creation, enabled=0
[Vulkan init] extensions: name=VK_KHR_display, enabled=1
[Vulkan init] extensions: name=VK_KHR_external_fence_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_memory_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_semaphore_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_display_properties2, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_physical_device_properties2, enabled=1
[Vulkan init] extensions: name=VK_KHR_get_surface_capabilities2, enabled=0
[Vulkan init] extensions: name=VK_KHR_surface, enabled=1
[Vulkan init] extensions: name=VK_KHR_surface_protected_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_wayland_surface, enabled=1
[Vulkan init] extensions: name=VK_KHR_xcb_surface, enabled=0
[Vulkan init] extensions: name=VK_KHR_xlib_surface, enabled=1
[Vulkan init] extensions: name=VK_EXT_acquire_xlib_display, enabled=0
[Vulkan init] extensions: name=VK_EXT_debug_report, enabled=0
[Vulkan init] extensions: name=VK_EXT_direct_mode_display, enabled=0
[Vulkan init] extensions: name=VK_EXT_display_surface_counter, enabled=0
[Vulkan init] extensions: name=VK_EXT_debug_utils, enabled=0
Vulkan detection: 2
Initialize engine version: 2021.3.9f1 (ad3870b89536)
[Subsystems] Discovering subsystems at path /home/bm/squareline/SquareLine_Studio_Linux_v1_1_1/SquareLine_Studio_Data/UnitySubsystems
GfxDevice: creating device client; threaded=1; jobified=0
Unable to find a supported OpenGL core profile
Unable to find a supported OpenGL core profile
GfxDevice: creating device client; threaded=1; jobified=0
[Vulkan init] extensions: count=18
[Vulkan init] extensions: name=VK_KHR_device_group_creation, enabled=0
[Vulkan init] extensions: name=VK_KHR_display, enabled=1
[Vulkan init] extensions: name=VK_KHR_external_fence_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_memory_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_semaphore_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_display_properties2, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_physical_device_properties2, enabled=1
[Vulkan init] extensions: name=VK_KHR_get_surface_capabilities2, enabled=0
[Vulkan init] extensions: name=VK_KHR_surface, enabled=1
[Vulkan init] extensions: name=VK_KHR_surface_protected_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_wayland_surface, enabled=1
[Vulkan init] extensions: name=VK_KHR_xcb_surface, enabled=0
[Vulkan init] extensions: name=VK_KHR_xlib_surface, enabled=1
[Vulkan init] extensions: name=VK_EXT_acquire_xlib_display, enabled=0
[Vulkan init] extensions: name=VK_EXT_debug_report, enabled=0
[Vulkan init] extensions: name=VK_EXT_direct_mode_display, enabled=0
[Vulkan init] extensions: name=VK_EXT_display_surface_counter, enabled=0
[Vulkan init] extensions: name=VK_EXT_debug_utils, enabled=0
[Vulkan init] SelectPhysicalDevice requestedDeviceIndex=-1 xrDevice=(nil)
[Vulkan init] Physical Device 0xf36ff0 [0]: “llvmpipe (LLVM 12.0.0, 128 bits)” deviceType=4 vendorID=10005 deviceID=0
[Vulkan init] Selected physical device (nil)
Caught fatal signal - signo:11 code:1 errno:0 addr:(nil)
Obtained 12 stack frames.
#0 0x007fd46a3f6420 in funlockfile
#1 0x007fd460340514 in vkGetPhysicalDeviceQueueFamilyProperties
#2 0x007fd46b48bb11 in PlayerMain(int, char**)
#3 0x007fd46b495759 in PlayerMain(int, char**)
#4 0x007fd46b420f0f in PlayerMain(int, char**)
#5 0x007fd46b31688b in void std::vector<unsigned int, std::allocator >::_M_assign_aux<__gnu_cxx::__normal_iterator<unsigned int*, std::vector<unsigned int, std::allocator > > >(__gnu_cxx::__normal_iterator<unsigned int*, std::vector<unsigned int, std::allocator > >, __gnu_cxx::__normal_iterator<unsigned int*, std::vector<unsigned int, std::allocator > >, std::forward_iterator_tag)
#6 0x007fd46b316c11 in void std::vector<unsigned int, std::allocator >::_M_assign_aux<__gnu_cxx::__normal_iterator<unsigned int*, std::vector<unsigned int, std::allocator > > >(__gnu_cxx::__normal_iterator<unsigned int*, std::vector<unsigned int, std::allocator > >, __gnu_cxx::__normal_iterator<unsigned int*, std::vector<unsigned int, std::allocator > >, std::forward_iterator_tag)
#7 0x007fd46b19edfd in int* std::_V2::__rotate<int*>(int*, int*, int*, std::random_access_iterator_tag)
#8 0x007fd46b1aeb3d in int* std::_V2::__rotate<int*>(int*, int*, int*, std::random_access_iterator_tag)
#9 0x007fd46b3d87aa in PlayerMain(int, char**)
#10 0x007fd46a214083 in __libc_start_main
#11 0x00000000201029 in (Unknown)

It seems you don’t have OpenGL installed. Is it a virtual machine?

It does have OpenGL (confirmed by running command below). It’s version 2.1.
Your system requirements state OpenGL 2 so assumed that was enough although the log suggests it’s looking for >3.2?

$ glxinfo | grep “OpenGL version”
OpenGL version string: 2.1 Mesa 21.2.6

Sorry for the late reply. It turned out that it was shown incorrectly in the docs. You really need at least OpenGL 3.2.

We have updated the docs accordingly.

Thanks for confirming Gabor.

I have a similar problem. V1.4.0 or V1.4.1 both behave in the same way. Both work on Win 10, Ubuntu 22.04 but fail on Ubuntu 20.04.
The intial screens are created up to the initial layout after login, then it crashes.
Here is the terminal log when running from the command line

[UnityMemory] Configuration Parameters - Can be set up in boot.config
“memorysetup-bucket-allocator-granularity=16”
“memorysetup-bucket-allocator-bucket-count=8”
“memorysetup-bucket-allocator-block-size=4194304”
“memorysetup-bucket-allocator-block-count=1”
“memorysetup-main-allocator-block-size=16777216”
“memorysetup-thread-allocator-block-size=16777216”
“memorysetup-gfx-main-allocator-block-size=16777216”
“memorysetup-gfx-thread-allocator-block-size=16777216”
“memorysetup-cache-allocator-block-size=4194304”
“memorysetup-typetree-allocator-block-size=2097152”
“memorysetup-profiler-bucket-allocator-granularity=16”
“memorysetup-profiler-bucket-allocator-bucket-count=8”
“memorysetup-profiler-bucket-allocator-block-size=4194304”
“memorysetup-profiler-bucket-allocator-block-count=1”
“memorysetup-profiler-allocator-block-size=16777216”
“memorysetup-profiler-editor-allocator-block-size=1048576”
“memorysetup-temp-allocator-size-main=4194304”
“memorysetup-job-temp-allocator-block-size=2097152”
“memorysetup-job-temp-allocator-block-size-background=1048576”
“memorysetup-job-temp-allocator-reduction-small-platforms=262144”
“memorysetup-temp-allocator-size-background-worker=32768”
“memorysetup-temp-allocator-size-job-worker=262144”
“memorysetup-temp-allocator-size-preload-manager=262144”
“memorysetup-temp-allocator-size-nav-mesh-worker=65536”
“memorysetup-temp-allocator-size-audio-worker=65536”
“memorysetup-temp-allocator-size-cloud-worker=32768”
“memorysetup-temp-allocator-size-gfx=262144”
Aborted (core dumped)

Here is an interesting bit from the Player.log file

Start lvgl server from: /home/henryd/Downloads/Installs/SquareLine_Studio_Linux_v1_4_1/SquareLine_Studio_Data/…/lvgl/lvgl_v9_1_0/server/
Try to start lvgl server from: /home/henryd/Downloads/Installs/SquareLine_Studio_Linux_v1_4_1/SquareLine_Studio_Data/…/lvgl/lvgl_v9_1_0/server/ with arguments: -X heapsize = 512m server.py 240 320 20085
terminate called after throwing an instance of ‘Il2CppExceptionWrapper’
Caught fatal signal - signo:6 code:-6 errno:0 addr:0x3e8000fe8fe
Obtained 30 stack frames.

I may have hit upon the problem.
My Ubuntu 20-04 has proprietary Nvidia drivers so even if Wayland is enabled for gdm3 it never gets invoked.
The proposed solution is to install nvidia drivers for Wayland which I am loath to do on a system that otherwise runs just fine.
My solution is to run Squareline Studio on Ubuntu 22-04 inside vmware. A bit inconvenient but it works.

Thanks for sharing the information with us. You must have your reasons of using 20.04 instead of 22.04 (non-LTS vs LTS I guess), but good to know how this driver-related problem can be solved.