Exception when switching buffer after resize
See original GitHub issueProblem
An exception is thrown (latest master and probably before) if we resize the screen to a bigger dimension while being in the alt
screen buffer. Once the alt
screen buffer exists and we switch back to the normal
buffer, the exception will show up, and the terminal will stop working (blank screen).
I think this has the same root cause as #838 and likely others where the line or row data is an undefined
reference.
How to reproduce
- Start the demo
- Run a command that uses the alt screen buffer (e.g.
vim
) - Change the rows and/or cols value to a higher value (it happens in both cases)
- Exit the app to switch back to the normal buffer
Demo
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Swapping render buffers after resizing window causes problems
void Renderer::Render() const { if (Resizingoccur) // In WindowProc() When the Resizing happen change the value of Resizingoccur to be true ...
Read more >Resize buffers - OptiX - NVIDIA Developer Forums
Hi all, I have crashes at launch after resizing buffers. I have several buffers that I have to resize from time to time....
Read more >[C++] [Win32] [DirectX11] SetFullscreenState & ResizeBuffers ...
The normal behavior is that you resize the backbuffers according to the target ( window ) size. The mode switch behavior is that...
Read more >Solved: Logging buffer size - Cisco Community
Solved: Hello, We have a few switches that only show a small amount of info when I run the command 'show logging' maybe...
Read more >[UWP] App triggers an exception when resizing UWP window ...
Switch platform to UWP 3. ... [UWP] App triggers an exception when resizing UWP window after ... Expected results: Window is resized.
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
You’re a genius, thanks @Tyriar!
The same also breaks when rows change in the other direction, the scrollbar shows there is more content but you can’t scroll it (because they’re blank lines).