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
I am experiencing ReadOnlyMemoryError when reading the results of a query into a DataFrame.
Code excerpt:
const conn_str = "DRIVER={ODBC Driver 18 for SQL Server};SERVER=$server;DATABASE=$database;Uid=$username;Pwd=$password;Authentication=ActiveDirectoryServicePrincipal;Encrypt=yes;"
_getconnection() = ODBC.Connection(conn_str)
data = DBInterface.execute(_getconnection(), longquerystr) |> DataFrame
My overall code structure is following this suggestion, where I am using Revise and Oxygen to give me hot reload of server code.
This happens consistently if I do the following:
Stop Julia
Make any edit to the server module
Execute the server start script in VS CODE REPL
This starts Julia, triggers precompile, and launches the server, Oxygen then listens on http
Hit the endpoint triggering the query.
ReadOnlyMemoryError (stacktrace below)
A second trigger of the endpoint works fine. Updates to the server while running (that triggers Revise updates) works fine.
Then restarting Julia, running the server script again (which triggers recompile), and error happens again.
When preparing a minimal reproducible example I discovered that it also depends on the query. Trivial queries do not trigger the error, so perhaps the timing of the response from the server is influencing this. (I am hitting a Microsoft Fabric Warehouse SQL endpoint with ODBC). Also, some minor changes, like reading the query string from file just prior to launching the query stops the error from occurring. Some strange race condition, this.
As others won't have access to the same database I am hitting, it will be difficult for others to recreate the bug using the example, unfortunately.
I am experiencing
ReadOnlyMemoryError
when reading the results of a query into a DataFrame.Code excerpt:
My overall code structure is following this suggestion, where I am using Revise and Oxygen to give me hot reload of server code.
This happens consistently if I do the following:
A second trigger of the endpoint works fine. Updates to the server while running (that triggers Revise updates) works fine.
Then restarting Julia, running the server script again (which triggers recompile), and error happens again.
When preparing a minimal reproducible example I discovered that it also depends on the query. Trivial queries do not trigger the error, so perhaps the timing of the response from the server is influencing this. (I am hitting a Microsoft Fabric Warehouse SQL endpoint with ODBC). Also, some minor changes, like reading the query string from file just prior to launching the query stops the error from occurring. Some strange race condition, this.
As others won't have access to the same database I am hitting, it will be difficult for others to recreate the bug using the example, unfortunately.
Stacktrace:
Minor edits sometimes also result in this error, which is not easier to understand.
The text was updated successfully, but these errors were encountered: