Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phoenix IDE freezes when opening large single-line JSON file with 300k+ columns #2057

Open
charlypa opened this issue Jan 15, 2025 · 0 comments
Labels
bug Something isn't working crash app crash / unusable

Comments

@charlypa
Copy link
Contributor

Describe the bug

When attempting to open a JSON file containing a single line with more than 300,000 columns, Phoenix becomes non-responsive. After force-closing Phoenix, subsequent launches automatically reopen the same large file, causing the IDE to freeze again and making it completely unusable.

Reproduction

  1. Create or obtain a JSON file containing a single line with 300,000+ columns
  2. Open Phoenix IDE
  3. Open the large JSON file
  4. Observe Phoenix becoming unresponsive
  5. Force-close Phoenix
  6. Attempt to reopen Phoenix IDE

Expected behavior

Phoenix should either:

  • Successfully open and handle large single-line JSON files
  • Gracefully warn users about file size limitations
  • Provide an option to prevent automatic reopening of problematic files from previous sessions

OS, Browser and Phoenix versions

Saw it in Linux ubuntu

logs or debug stack trace if any

No response

Additional context

This issue creates a feedback loop where Phoenix becomes unusable because it continuously attempts to reopen the problematic file on startup. The only current workaround is to manually delete Phoenix's session data to prevent it from reopening the file

@charlypa charlypa added the bug Something isn't working label Jan 15, 2025
@abose abose added the crash app crash / unusable label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working crash app crash / unusable
Projects
None yet
Development

No branches or pull requests

2 participants