https://bugs.kde.org/show_bug.cgi?id=528270

            Bug ID: 528270
           Summary: Saved SQL connection delays Kate startup
    Classification: Applications
           Product: kate
      Version First 26.08.1
       Reported In:
          Platform: Manjaro
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

DESCRIPTION
After adding a connection to a remote database, Kate takes significantly longer
to start up.

STEPS TO REPRODUCE
1. Enable SQL plugin.
2. Enable "Save and restore connections in Kate session" in the plugin
settings.
3. Create a new session.
4. Add SQL connection.
5. Close Kate.
6. Open Kate with the same session.

OBSERVED RESULT
The main window does not appear until the SQL connection attempt finishes.

EXPECTED RESULT
Kate should open without waiting for the SQL connection.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 6.7.5
KDE Frameworks Version: 6.30.0
Qt Version: 6.11.2

ADDITIONAL INFORMATION
The delay is more noticeable with a slow connection to the server. It also
occurs when opening another project in the same session, even when SQL is not
being used. When there are no saved connections, or when the internet is
disconnected, Kate launches quickly. I am using PostgreSQL on a remote server.

The stack trace was captured by pressing Ctrl+C during the startup delay:

(gdb) thread 1
[Switching to thread 1 (Thread 0x7fffee072400 (LWP 43263))]
#0  0x00007ffff56a08f2 in ?? () from /usr/lib/libc.so.6
(gdb) backtrace
#0  0x00007ffff56a08f2 in ?? () from /usr/lib/libc.so.6
#1  0x00007ffff57112e5 in poll () from /usr/lib/libc.so.6
#2  0x00007fffe4278b40 in PQsocketPoll ()
   from /usr/lib/qt6/plugins/sqldrivers/../../../libpq.so.5
#3  0x00007fffe427eaa2 in ?? ()
   from /usr/lib/qt6/plugins/sqldrivers/../../../libpq.so.5
#4  0x00007fffe4277172 in ?? ()
   from /usr/lib/qt6/plugins/sqldrivers/../../../libpq.so.5
#5  0x00007fffe42772ac in PQconnectdb ()
   from /usr/lib/qt6/plugins/sqldrivers/../../../libpq.so.5
#6  0x00007fffe42cfda8 in ?? ()
   from /usr/lib/qt6/plugins/sqldrivers/libqsqlpsql.so
#7  0x00007fffe4556a63 in QSqlDatabase::open() () from /usr/lib/libQt6Sql.so.6
#8  0x00007fffe455d4d7 in ?? () from /usr/lib/libQt6Sql.so.6
#9  0x00007fffe455d635 in QSqlDatabase::database(QString const&, bool) ()
   from /usr/lib/libQt6Sql.so.6
#10 0x00007fffe45dd9a0 in ?? ()
   from /usr/lib/qt6/plugins/kf6/ktexteditor/katesqlplugin.so
#11 0x00007fffe4606b2f in ?? ()
   from /usr/lib/qt6/plugins/kf6/ktexteditor/katesqlplugin.so
#12 0x00007fffe45bf50b in ?? ()
   from /usr/lib/qt6/plugins/kf6/ktexteditor/katesqlplugin.so
#13 0x00007ffff5feeff3 in ?? () from /usr/lib/libQt6Core.so.6
#14 0x00007ffff747278a in ?? () from /usr/lib/libQt6Widgets.so.6
#15 0x00007ffff747a727 in ?? () from /usr/lib/libQt6Widgets.so.6
#16 0x00007ffff747af90 in QComboBox::setCurrentIndex(int) ()
   from /usr/lib/libQt6Widgets.so.6
#17 0x00007ffff5feeff3 in ?? () from /usr/lib/libQt6Core.so.6
#18 0x00007ffff6210f0f in QAbstractItemModel::endInsertRows() ()
   from /usr/lib/libQt6Core.so.6
#19 0x00007fffe45d1e83 in ?? ()
   from /usr/lib/qt6/plugins/kf6/ktexteditor/katesqlplugin.so
#20 0x00007fffe45d85ca in ?? ()
   from /usr/lib/qt6/plugins/kf6/ktexteditor/katesqlplugin.so
#21 0x00007fffe45df53f in ?? ()
   from /usr/lib/qt6/plugins/kf6/ktexteditor/katesqlplugin.so
#22 0x00007fffe45beddb in ?? ()
   from /usr/lib/qt6/plugins/kf6/ktexteditor/katesqlplugin.so
#23 0x00007ffff7e68be9 in ?? () from /usr/lib/libkateprivate.so.26.08.1
#24 0x00007ffff7e68f5f in ?? () from /usr/lib/libkateprivate.so.26.08.1
#25 0x00007ffff7e3d431 in KateMainWindow::KateMainWindow(KConfig const*,
QString const&, bool) () from /usr/lib/libkateprivate.so.26.08.1
#26 0x00007ffff7e1e617 in KateApp::newMainWindow(KConfig*, QString const&,
bool)
    () from /usr/lib/libkateprivate.so.26.08.1
#27 0x00007ffff7df8c77 in
KateSessionManager::loadSession(QExplicitlySharedDataPointer<KateSession>
const&) const () from /usr/lib/libkateprivate.so.26.08.1
#28 0x00007ffff7e06274 in ?? () from /usr/lib/libkateprivate.so.26.08.1
#29 0x00007ffff7dfba42 in KateSessionManager::activateSession(QString const&,
bool, bool) () from /usr/lib/libkateprivate.so.26.08.1
#30 0x00007ffff7e0681b in KateSessionManager::chooseSession() ()
   from /usr/lib/libkateprivate.so.26.08.1
#31 0x00007ffff7e1f1e2 in KateApp::startupKate() ()
   from /usr/lib/libkateprivate.so.26.08.1
#32 0x00007ffff7e20216 in KateApp::init() ()
   from /usr/lib/libkateprivate.so.26.08.1
#33 0x000055555555d2fb in ?? ()
#34 0x00007ffff5627781 in ?? () from /usr/lib/libc.so.6
#35 0x00007ffff56278b9 in __libc_start_main () from /usr/lib/libc.so.6
#36 0x0000555555560225 in ?? ()

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to