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

Language dialog box looping infinitely #3564

Closed
gViro opened this issue Sep 3, 2019 · 6 comments

Comments

@gViro
Copy link

commented Sep 3, 2019

Details

Immediately after installation, and choosing any configuration of components, the Language dialogue box prompting, "Please choose language:", gets stuck in an infinite loop. Terminal kill -9 [pid] is only way to stop looping dialogue box.
Application never launches.

Steps to reproduce

Download, launch application and, once Done with install wizard, Language dialog box pops up and begins looping.

Operating system

MacOS 10.14.6

SQLiteStudio version

3.2.1
InstallationLog.txt

@gViro

This comment has been minimized.

Copy link
Author

commented Sep 3, 2019

Same situation when using brew cask install sqlitestudio

@pawelsalawa

This comment has been minimized.

Copy link
Owner

commented Sep 6, 2019

Can you please run the application from terminal this way?

/Applications/SQLiteStudio.app/Contents/MacOS/SQLiteStudio -d

Then observe in the terminal output messages and look for Using configuration directory:
Let me know what it says.

@pawelsalawa

This comment has been minimized.

Copy link
Owner

commented Sep 10, 2019

Yeah, I forgot, it should be:

/Applications/SQLiteStudio.app/Contents/MacOS/SQLiteStudio -d --debug-stdout
@gViro

This comment has been minimized.

Copy link
Author

commented Sep 10, 2019

Here is the debug output, hope it is useful:

$ /Applications/SQLiteStudio.app/Contents/MacOS/SQLiteStudio -d --debug-stdout [10:19:53.288] DEBUG: Error from notify manager: "Could not initialize configuration file. Any configuration changes and queries history will be lost after application restart. Tried to initialize the file at following localizations: /Users/username/.config/sqlitestudio/settings3, /Applications/SQLiteStudio.app/Contents/MacOS/sqlitestudio-cfg/settings3." [10:19:53.288] DEBUG: Using configuration directory: ":memory:" [10:19:53.544] DEBUG: Following plugins found: ("SqlExport", "SqlFormatterSimplePlugin", "ConfigMigration", "DbSqlite2", "MultiEditorImagePlugin", "SqlEnterpriseFormatter", "CsvExport", "ScriptingTcl", "XmlExport", "PdfExport", "CsvImport", "DbSqliteCipher", "DbSqliteWx", "Printing", "RegExpImport", "JsonExport", "HtmlExport", "DbAndroid") [10:19:53.545] DEBUG: "SqlExport" loaded: "/Applications/SQLiteStudio.app/Contents/PlugIns/libSqlExport.dylib" [10:19:53.547] DEBUG: "ConfigMigration" loaded: "/Applications/SQLiteStudio.app/Contents/PlugIns/libConfigMigration.dylib" [10:19:53.549] DEBUG: "DbSqlite2" loaded: "/Applications/SQLiteStudio.app/Contents/PlugIns/libDbSqlite2.dylib" [10:19:53.551] DEBUG: "MultiEditorImagePlugin" loaded: "/Applications/SQLiteStudio.app/Contents/PlugIns/libMultiEditorImage.dylib" [10:19:53.557] DEBUG: "SqlEnterpriseFormatter" loaded: "/Applications/SQLiteStudio.app/Contents/PlugIns/libSqlEnterpriseFormatter.dylib" [10:19:53.559] DEBUG: "CsvExport" loaded: "/Applications/SQLiteStudio.app/Contents/PlugIns/libCsvExport.dylib" [10:19:53.563] DEBUG: "ScriptingTcl" loaded: "/Applications/SQLiteStudio.app/Contents/PlugIns/libScriptingTcl.dylib" [10:19:53.565] DEBUG: "XmlExport" loaded: "/Applications/SQLiteStudio.app/Contents/PlugIns/libXmlExport.dylib" [10:19:53.567] DEBUG: "PdfExport" loaded: "/Applications/SQLiteStudio.app/Contents/PlugIns/libPdfExport.dylib" [10:19:53.569] DEBUG: "CsvImport" loaded: "/Applications/SQLiteStudio.app/Contents/PlugIns/libCsvImport.dylib" [10:19:53.572] DEBUG: "DbSqliteCipher" loaded: "/Applications/SQLiteStudio.app/Contents/PlugIns/libDbSqliteCipher.dylib" [10:19:53.575] DEBUG: "DbSqliteWx" loaded: "/Applications/SQLiteStudio.app/Contents/PlugIns/libDbSqliteWx.dylib" [10:19:53.578] DEBUG: "Printing" loaded: "/Applications/SQLiteStudio.app/Contents/PlugIns/libPrinting.dylib" [10:19:53.581] DEBUG: "RegExpImport" loaded: "/Applications/SQLiteStudio.app/Contents/PlugIns/libRegExpImport.dylib" [10:19:53.583] DEBUG: "JsonExport" loaded: "/Applications/SQLiteStudio.app/Contents/PlugIns/libJsonExport.dylib" [10:19:53.585] DEBUG: "HtmlExport" loaded: "/Applications/SQLiteStudio.app/Contents/PlugIns/libHtmlExport.dylib" [10:19:53.586] DEBUG: Loading form file: ":/forms/CsvExport.ui" [10:19:53.586] DEBUG: Loading form file: ":/forms/CsvImportOptions.ui" [10:19:53.586] DEBUG: Loading form file: ":/forms/htmlexport.ui" [10:19:53.586] DEBUG: Loading form file: ":/forms/jsonexport.ui" [10:19:53.586] DEBUG: Loading form file: ":/forms/pdfexport.ui" [10:19:53.587] DEBUG: Loading form file: ":/forms/plugins/populateconstant.ui" [10:19:53.587] DEBUG: Loading form file: ":/forms/plugins/populatedictionary.ui" [10:19:53.587] DEBUG: Loading form file: ":/forms/plugins/populaterandom.ui" [10:19:53.587] DEBUG: Loading form file: ":/forms/plugins/populaterandomtext.ui" [10:19:53.587] DEBUG: Loading form file: ":/forms/plugins/populatescript.ui" [10:19:53.587] DEBUG: Loading form file: ":/forms/plugins/populatesequence.ui" [10:19:53.587] DEBUG: Loading form file: ":/forms/regexpimport.ui" [10:19:53.587] DEBUG: Loading form file: ":/forms/sqlenterpriseformatter.ui" [10:19:53.587] DEBUG: Loading form file: ":/forms/SqlExportCommon.ui" [10:19:53.588] DEBUG: Loading form file: ":/forms/SqlExportQuery.ui" [10:19:53.588] DEBUG: Loading form file: ":/forms/XmlExport.ui"

@pawelsalawa

This comment has been minimized.

Copy link
Owner

commented Sep 10, 2019

Okay, so it tried to create following 2 files and failed:

/Users/username/.config/sqlitestudio/settings3
/Applications/SQLiteStudio.app/Contents/MacOS/sqlitestudio-cfg/settings3

The first one is default and is located in your home directory (the /Users/username is extracted from HOME environment variable). The .config/sqlitestudio directories are attempted to be created (if do not exist) and finally the settings3 file is attempted to be created for storing configuration.

Can you figure out why the application is unable to create such file? Can you try creating it yourself?

The second path is considered optionally for case when you create a directory named sqlitestudio-cfg right next to the application executable. In this case such directory will be used to store configuration. For our purpose we shell ignore the second one and focus on first one.

Please let me know what you find out about the first one.

@pawelsalawa pawelsalawa added the bug label Sep 13, 2019

@pawelsalawa pawelsalawa added this to the 3.2.2 milestone Sep 13, 2019

@pawelsalawa

This comment has been minimized.

Copy link
Owner

commented Sep 13, 2019

Regardless of answer on the above, there should be a way to walk around it and run application anyway. Probably good idea would be to skip language selection dialog if config file could not be initialized properly.

pawelsalawa added a commit that referenced this issue Sep 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.