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.

Exception when switching buffer after resize

See original GitHub issue

Problem

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.

screen shot 2017-08-06 at 01 31 28

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

crash

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
mofuxcommented, Aug 6, 2017

You’re a genius, thanks @Tyriar!

1reaction
Tyriarcommented, Aug 6, 2017

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).

Read more comments on GitHub >

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

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