Skip to content

App goes blank when creating element (st.tabs, st.columns) within a container in a spinner context #13658

@tenokami11

Description

@tenokami11

Checklist

  • I have searched the existing issues for similar issues.
  • I added a very descriptive title to this issue.
  • I have provided sufficient information below to help reproduce this issue.

Summary

Within the spinner context, if a container is created and an element within the container, (columns or tabs both create the issue) the app goes to a blank white page. This only happens if the spinner is rendered in the app, so doesn't happen if the code is ran without the sleep.

Reproducible Code Example

https://issues.streamlit.app/?issue=gh-13658

import time
import streamlit as st

with st.spinner("Running..."):
    time.sleep(2)
    st.container().columns(2)

Steps To Reproduce

  1. Run above code
  2. App goes blank spinner goes away after loading

Expected Behavior

Shouldn't go blank

Current Behavior

Goes blank with console error:

index.DFT9nVK6.js:9 Error: Bad delta path index 1 (should be between [0, 0])
at SetNodeByDeltaPathVisitor.visitBlockNode (index.DFT9nVK6.js:45:10951)
at BlockNode.accept (index.DFT9nVK6.js:24:2501)
at SetNodeByDeltaPathVisitor.visitBlockNode (index.DFT9nVK6.js:45:11236)
at BlockNode.accept (index.DFT9nVK6.js:24:2501)
at SetNodeByDeltaPathVisitor.visitBlockNode (index.DFT9nVK6.js:45:11236)
at BlockNode.accept (index.DFT9nVK6.js:24:2501)
at SetNodeByDeltaPathVisitor.visitBlockNode (index.DFT9nVK6.js:45:11236)
at BlockNode.accept (index.DFT9nVK6.js:24:2501)
at SetNodeByDeltaPathVisitor.setNodeAtPath (index.DFT9nVK6.js:45:11659)
at AppRoot.addBlock (index.DFT9nVK6.js:45:15142)
Vl @ index.DFT9nVK6.js:9
index.DFT9nVK6.js:9 Uncaught Error: Bad delta path index 1 (should be between [0, 0])
at SetNodeByDeltaPathVisitor.visitBlockNode (index.DFT9nVK6.js:45:10951)
at BlockNode.accept (index.DFT9nVK6.js:24:2501)
at SetNodeByDeltaPathVisitor.visitBlockNode (index.DFT9nVK6.js:45:11236)
at BlockNode.accept (index.DFT9nVK6.js:24:2501)
at SetNodeByDeltaPathVisitor.visitBlockNode (index.DFT9nVK6.js:45:11236)
at BlockNode.accept (index.DFT9nVK6.js:24:2501)
at SetNodeByDeltaPathVisitor.visitBlockNode (index.DFT9nVK6.js:45:11236)
at BlockNode.accept (index.DFT9nVK6.js:24:2501)
at SetNodeByDeltaPathVisitor.setNodeAtPath (index.DFT9nVK6.js:45:11659)
at AppRoot.addBlock (index.DFT9nVK6.js:45:15142)

Is this a regression?

  • Yes, this used to work in a previous version.

Debug info

  • Streamlit version: 1.53.0
  • Python version: 3.13.7
  • Operating System: Windows 11
  • Browser: Chrome

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:st.columnsRelated to the `st.columns` containerfeature:st.containerRelated to the `st.container` elementfeature:st.spinnerRelated to `st.spinner` elementpriority:P1High priority - fix within two weeksstatus:confirmedBug has been confirmed by the Streamlit teamtype:bugSomething isn't working as expectedtype:regressionThis bug is a regression from previous behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions