You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fork of TagStudio 9.4.0 (see #479) to support Ubuntu 20.04
Operating System & Version
Ubuntu 20.04
Description
I noticed that when I open TagStudio and then close it again without creating a library, it crashes. Same goes when I click File -> Close Library.
Expected Behavior
Trying to close a nonexistant library shouldn't crash the program.
Steps to Reproduce
Open program without a library defined.
Either click File -> Close Library or just close the program.
Notice exceptions / crash in the log.
Logs
$ ./tagstudio
2024-09-09 19:21:46 [info ] resources registered count=4
2024-09-09 19:21:46 [info ] Config File not specified, using default one filename=/home/myusername/.config/TagStudio/TagStudio.ini
qt.multimedia.ffmpeg.libsymbolsresolver: Couldn't load OpenSsl library
2024-09-09 19:21:48 [info ] update_widgets selected=[]
Traceback (most recent call last):
File "src/qt/ts_qt.py", line 326, in <lambda>
File "src/qt/ts_qt.py", line 571, in close_library
AttributeError: 'Library' object has no attribute 'library_dir'
Traceback (most recent call last):
File "tag_studio.py", line 66, in main
File "src/qt/ts_qt.py", line 491, in start
self.shutdown()
File "src/qt/ts_qt.py", line 556, in shutdown
if self.lib and self.lib.library_dir:
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Library' object has no attribute 'library_dir'
TagStudio Frontend (Qt) Crashed! Press Enter to Continue...
QThread: Destroyed while thread is still running
Abgebrochen (Speicherabzug geschrieben)
The text was updated successfully, but these errors were encountered:
This does not seem like a v9.4 log, this looks like it's from main which is based on v9.3.x and has recently had an initial SQL conversion pulled into it (#332).
As of Pull Request #332 (SQLite Migration) the main branch will be an open test bed to get full JSON to SQL parity operational. Existing TagStudio libraries are not yet compatible with this change, however they will NOT be corrupted or deleted if opened with these versions. Once parity is reached and a stable conversion tool in place, this notice will be removed.
For the most recent stable feature release branch, see the Alpha-v9.4 branch. These v9.4 specific features are currently being backported to the SQL-ized main branch.
This is the best I've been able to make contributors coming from GitHub aware of this change and the state of the branches, however it can still be missed. It's easier to keep people in the loop over in the Discord server where I post important updates and announcements to the for things like this, and keep important events like branch changes or impeding refactors pinned in the #tagsdtudio-dev channel.
Oh damn. I did read that note about the SQL migration but missed the part about main not being the most recent branch. I will re-test with the Alpha-v9.4 branch and report back.
Checklist
TagStudio Version
Fork of TagStudio 9.4.0 (see #479) to support Ubuntu 20.04
Operating System & Version
Ubuntu 20.04
Description
I noticed that when I open TagStudio and then close it again without creating a library, it crashes. Same goes when I click File -> Close Library.
Expected Behavior
Trying to close a nonexistant library shouldn't crash the program.
Steps to Reproduce
Logs
The text was updated successfully, but these errors were encountered: