Skip to content

R crashes if calling duck-ui with an overwritten connection object #1147

@mns-nordicals

Description

@mns-nordicals

First create a duckdb connection and open the duck-ui

con <- DBI::dbConnect(duckdb::duckdb())
DBI::dbExecute(con, "CALL start_ui()")

close the browser and overwrite / create a new connection to duckdb

con <- DBI::dbConnect(duckdb::duckdb())

Now call the duckui again

DBI::dbExecute(con, "CALL start_ui()")

In positron I can get this error message / log

2025-05-06 23:37:53.749 [info] ** Begin kernel log for session R 4.5.0 (r-efa4682b) at 5/6/2025, 11:37:53 PM **
Streaming kernel log file: C:\Users\XXX\AppData\Local\Temp\kernel-G7luwG\kernel.log
terminate called after throwing an instance of 'duckdb::Exception'

what(): {"exception_type":"Settings","exception_message":"Setting "ui_polling_interval" not found"}

terminate called after throwing an instance of 'duckdb::Exception'

This will also crash in Rstudio.

I don't know if this is a duckdb-r issue, a duckdb issue or simply a user issue 😅

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions