CoatiSoftware / Sourcetrail

Sourcetrail - free and open-source interactive source explorer
https://www.sourcetrail.com/
GNU General Public License v3.0
14.31k stars 1.33k forks source link

Sourcetrail_2020_4_35_Linux_64bit.AppImage tails to start #1126

Open mrspirytus opened 3 years ago

mrspirytus commented 3 years ago

Hello,

I just downloaded latest released Sourcetrail_2020_4_35_Linux_64bit.AppImage. I did checked sha256sum and they match. I am trying to run it on Ubuntu Mate 20.04. Here is I see in console.

 $ ./Sourcetrail_2020_4_35_Linux_64bit.AppImage 
QCoreApplication::applicationDirPath: Please instantiate the QApplication object first
ERROR: Please run Sourcetrail via the Sourcetrail.sh script!
01:43:31 | LogManager.cpp:40 setLoggingEnabled() | INFO: Enabled logging for Sourcetrail 64 bit, version 2020.4.35
01:43:31 | SharedMemoryGarbageCollector.cpp:59 run() | INFO: start shared memory garbage collection
^C
mlangkabel commented 3 years ago

Thanks for the report. Did you try running Sourcetrail via the Sourcetrail.sh script?

egraether commented 3 years ago

I just checked on Ubuntu 20, where running the AppImage works. Do you know how to run them? https://discourse.appimage.org/t/how-to-run-an-appimage/80

mrspirytus commented 3 years ago

@egraether Yes I know how to run AppImage. If permissions would be the problem I would get different image from shell :) I have other AppImages and they work just fine.

@mlangkabel I see there is newer release. I will give that a try and report

mrspirytus commented 3 years ago
 $ chmod 700 Sourcetrail_2020_4_35_Linux_64bit.AppImage 
mrs@workbox ~
 $ ./Sourcetrail_2020_4_35_Linux_64bit.AppImage 
QCoreApplication::applicationDirPath: Please instantiate the QApplication object first
ERROR: Please run Sourcetrail via the Sourcetrail.sh script!
19:06:03 | LogManager.cpp:40 setLoggingEnabled() | INFO: Enabled logging for Sourcetrail 64 bit, version 2020.4.35
19:06:03 | SharedMemoryGarbageCollector.cpp:59 run() | INFO: start shared memory garbage collection
^C

Where can I get Sourcetrail.sh to run it? Is it missing in Sourcetrail.sh?

egraether commented 3 years ago

Sourcetrail.sh is not included with the AppImage, because it's not necessary. This is mainly a Qt error:

QCoreApplication::applicationDirPath: Please instantiate the QApplication object first

Maybe your local Qt version is picked up instead of the one we ship.

mrspirytus commented 3 years ago

Any recommendations what env var I should set or clear before running again?

mrspirytus commented 3 years ago

Today I redownloaded the image and attempted to run. This time I did gave more time to see what will happen. After starting it from Terminal, I did hear the CPU fan going louder than normal. Everything did slow down to a crawl. I did see the app show up in the taskbar but the entire desktop had issues redrawing. Here is output from Terminal I am running Ubuntu Mate 20.04 with Compiz enabled. Please let me know what other information I can provide. Also, I am attaching my ApplicationSettings.xml from the below location

ApplicationSettings.xml.tar.gz

QCoreApplication::applicationDirPath: Please instantiate the QApplication object first
ERROR: Please run Sourcetrail via the Sourcetrail.sh script!
15:37:34 | LogManager.cpp:40 setLoggingEnabled() | INFO: Enabled logging for Sourcetrail 64 bit, version 2020.4.35
15:37:34 | SharedMemoryGarbageCollector.cpp:59 run() | INFO: start shared memory garbage collection
15:38:48 | ApplicationSettingsPrefiller.cpp:31 prefillJavaRuntimePath() | INFO: Prefilling Java path
15:38:48 | INFO: send MessageStatus Starting Sourcetrail 64 bit, version 2020.4.35
15:38:48 | StatusBarController.cpp:87 setStatus() | INFO: STATUS Starting Sourcetrail 64 bit, version 2020.4.35
15:38:48 | INFO: send MessageStatus Load settings: /home/mrs/.config/sourcetrail/ApplicationSettings.xml
15:38:48 | ApplicationSettingsPrefiller.cpp:84 prefillMavenExecutablePath() | INFO: Prefilling Maven path
15:38:48 | ApplicationSettingsPrefiller.cpp:57 prefillJreSystemLibraryPaths() | INFO: Prefilling JRE system library path
15:38:48 | ApplicationSettingsPrefiller.cpp:110 prefillCxxHeaderPaths() | INFO: Prefilling header search paths
15:38:48 | ApplicationSettingsPrefiller.cpp:134 prefillCxxFrameworkPaths() | INFO: Prefilling framework search paths
15:38:48 | utilityQt.cpp:66 loadFontsFromDirectory() | INFO: Loaded FontFamily: Fira Sans
15:38:48 | utilityQt.cpp:66 loadFontsFromDirectory() | INFO: Loaded FontFamily: Fira Sans
15:38:48 | utilityQt.cpp:66 loadFontsFromDirectory() | INFO: Loaded FontFamily: Source Code Pro
15:38:48 | utilityQt.cpp:66 loadFontsFromDirectory() | INFO: Loaded FontFamily: Source Code Pro
15:38:48 | utilityQt.cpp:66 loadFontsFromDirectory() | INFO: Loaded FontFamily: Source Code Pro
15:38:48 | utilityQt.cpp:66 loadFontsFromDirectory() | INFO: Loaded FontFamily: Roboto
15:38:48 | utilityQt.cpp:66 loadFontsFromDirectory() | INFO: Loaded FontFamily: Roboto
15:39:25 | StatusBarController.cpp:87 setStatus() | INFO: STATUS Load settings: /home/mrs/.config/sourcetrail/ApplicationSettings.xml
15:40:07 | INFO: send MessageStatus Enabled console and file logging.
15:40:08 | StatusBarController.cpp:87 setStatus() | INFO: STATUS Enabled console and file logging.
15:40:09 | INFO: send MessagePingReceived 
15:40:09 | INFO: send MessageStatus Ran Java runtime path detection, no path found.
15:40:09 | StatusBarController.cpp:87 setStatus() | INFO: STATUS Ran Java runtime path detection, no path found.
15:40:09 | INFO: send MessageStatus Ran Maven executable path detection, no path found.
15:40:09 | StatusBarController.cpp:87 setStatus() | INFO: STATUS Ran Maven executable path detection, no path found.
15:40:09 | INFO: send MessageStatus Ran JRE system library path detection, no path found.
15:40:09 | StatusBarController.cpp:87 setStatus() | INFO: STATUS Ran JRE system library path detection, no path found.
15:40:09 | INFO: send MessageLoadProject , settingsChanged: false, refreshMode: 0
15:40:09 | INFO: send MessageWindowFocus 
15:40:09 | INFO: send MessageWindowFocus 
15:40:09 | INFO: send MessagePingReceived 
QImage: out of memory, returning null
^C
mrspirytus commented 3 years ago

Today I did try the latest Sourcetrail_2021_1_30_Linux_64bit.AppImage Ubuntu Mate 20.04 with the latest updates. After starting it on my ultra-wide monitor it took some time to show the application title bar but client areas were not refreshing (I did see whatever was on desktop). Here is output

 $ ./Sourcetrail-x86_64.AppImage 
QCoreApplication::applicationDirPath: Please instantiate the QApplication object first
ERROR: Please run Sourcetrail via the Sourcetrail.sh script!
14:04:18 | LogManager.cpp:40 setLoggingEnabled() | INFO: Enabled logging for Sourcetrail 64 bit, version 2021.1.30
14:04:18 | SharedMemoryGarbageCollector.cpp:59 run() | INFO: start shared memory garbage collection
14:05:22 | ApplicationSettingsPrefiller.cpp:31 prefillJavaRuntimePath() | INFO: Prefilling Java path
14:05:22 | INFO: send MessageStatus Starting Sourcetrail 64 bit, version 2021.1.30
14:05:22 | StatusBarController.cpp:87 setStatus() | INFO: STATUS Starting Sourcetrail 64 bit, version 2021.1.30
14:05:22 | INFO: send MessageStatus Load settings: /home/oxoocoffee/.config/sourcetrail/ApplicationSettings.xml
14:05:22 | ERROR: Process error: No such file or directory
14:05:22 | ERROR: Process error: No such file or directory
14:05:22 | ERROR: Process error: No such file or directory
14:05:22 | ApplicationSettingsPrefiller.cpp:84 prefillMavenExecutablePath() | INFO: Prefilling Maven path
14:05:22 | utilityQt.cpp:66 loadFontsFromDirectory() | INFO: Loaded FontFamily: Fira Sans
14:05:22 | utilityQt.cpp:66 loadFontsFromDirectory() | INFO: Loaded FontFamily: Fira Sans
14:05:22 | utilityQt.cpp:66 loadFontsFromDirectory() | INFO: Loaded FontFamily: Source Code Pro
14:05:22 | utilityQt.cpp:66 loadFontsFromDirectory() | INFO: Loaded FontFamily: Source Code Pro
14:05:22 | utilityQt.cpp:66 loadFontsFromDirectory() | INFO: Loaded FontFamily: Source Code Pro
14:05:22 | utilityQt.cpp:66 loadFontsFromDirectory() | INFO: Loaded FontFamily: Roboto
14:05:22 | utilityQt.cpp:66 loadFontsFromDirectory() | INFO: Loaded FontFamily: Roboto
14:05:53 | StatusBarController.cpp:87 setStatus() | INFO: STATUS Load settings: /home/oxoocoffee/.config/sourcetrail/ApplicationSettings.xml

Also Looks like my swap did jump a lot even my system memory was free. SourceTail

youralmight commented 2 years ago

I'm running Sourcetrail_2021_4_19_Linux_64bit.AppImage in WSL2 Ubuntu 20.04 and I meet this error, too.