question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

st.write throws value is null when string is too big

See original GitHub issue

Summary

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”

Screen Shot 2019-10-16 at 3 57 57 PM

Steps to reproduce

  1. create a script with a variable that holds a string that’s more than weights more than 50mb
  2. streamlit run yourscript.py
  3. 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:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
changhsinleecommented, Jan 21, 2020

Running into the same problem with st.video(), will try to reproduce later.

0reactions
nthmostcommented, Jul 7, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found