antares-sql / antares

A modern, fast and productivity driven SQL client with a focus in UX
https://antares-sql.app
MIT License
1.6k stars 111 forks source link

Selecting all rows in a large database (10.000.000+ lines) crashes the app #771

Open abcRede opened 3 months ago

abcRede commented 3 months ago

Describe the bug If you open any database and manually issue a query to select all rows in a large table, it crashes the application with the following log:

Flatpak install: [dev@dev-abcrede-2 ~]$ flatpak run it.fabiodistasio.AntaresSQL Wayland socket is available, running natively on Wayland. To disable, remove the --socket=wayland permission. Passing the following arguments to Electron: --enable-gpu-rasterization --enable-zero-copy --enable-gpu-compositing --enable-native-gpu-memory-buffers --enable-oop-rasterization --disable-gpu-blocklist --ozone-platform-hint=auto --enable-features=UseSkiaRenderer, WaylandWindowDecorations [3 zypak-helper] Wait found events, but sd-event found none [3:0304/082402.084125:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: Arquivo ou diretório inexistente [3:0304/082403.072401:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: Arquivo ou diretório inexistente [3:0304/082403.072434:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: Arquivo ou diretório inexistente [3:0304/082403.573575:ERROR:object_proxy.cc(590)] Failed to call method: org.kde.KWallet.isEnabled: object_path= /modules/kwalletd5: org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown [3:0304/082403.573591:ERROR:kwallet_dbus.cc(107)] Error contacting kwalletd5 (isEnabled) [3:0304/082403.573686:ERROR:object_proxy.cc(590)] Failed to call method: org.kde.KLauncher.start_service_by_desktop_name: object_path= /KLauncher: org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown [3:0304/082403.573691:ERROR:kwallet_dbus.cc(79)] Error contacting klauncher to start kwalletd5 [3:0304/082403.573766:ERROR:object_proxy.cc(590)] Failed to call method: org.kde.KWallet.close: object_path= /modules/kwalletd5: org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown [3:0304/082403.573771:ERROR:kwallet_dbus.cc(459)] Error contacting kwalletd5 (close) /app/bin/startantares, linha 30: 3 Trace/breakpoint trap (imagem do núcleo gravada)zypak-wrapper /app/main/antares "${FLAGS[@]}" "$@"

AUR (bin) install: [dev@dev-abcrede-2 ~]$ antares-sql Trace/breakpoint trap (imagem do núcleo gravada)

To Reproduce

Expected behavior The application should either paginate the results, like DataGrip, or handle the exception and show an error to the user, instead of closing the application. Application (please complete the following information):

Environment (please complete the following information):

Additional context I have checked that:

abcRede commented 3 months ago

Might be related:

Fabio286 commented 3 months ago

I think the implementation of an auto pagination would be the best solution.