st.write throws value is null when string is too big
See original GitHub issueSummary
calling st.write
with a string that is too big will result on an error message on the front end with message “value is null”
Steps to reproduce
- create a script with a variable that holds a string that’s more than weights more than 50mb
- streamlit run yourscript.py
- message will appear on the front end
Expected behavior:
The error message should be clearer.
Actual behavior:
Error message does not point to the string length constrain of st.write
.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Why does .ToString() on a null string cause a null error, when ...
Because string type's null really points to nothing, there isn't any object in memory. But int? type(nullable) even with value set to null...
Read more >st.write - Streamlit Docs
Write arguments to the app. This is the Swiss Army knife of Streamlit commands: it does different things depending on what you throw...
Read more >How do it don't substring when value = null - CodeProject
Generally, in cases like yours, if the value is null, you provide a default value. It seems your code already has it.
Read more >Bug descriptions — spotbugs 4.7.3 documentation
FALSE or null is an accident waiting to happen. This method can be invoked as though it returned a value of type boolean,...
Read more >B.3.4.3 Problems with NULL Values - MySQL :: Developer Zone
The concept of the NULL value is a common source of confusion for newcomers to SQL, who often think that NULL is the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Running into the same problem with
st.video()
, will try to reproduce later.Hi @brey – Loading large datasets isn’t exactly the same issue. We’re still working on a major overhaul of the dataframe processing code. See #1021 for updates.