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.

lwsm save doesn't work

See original GitHub issue

My Environment

  • Version used: 3.0.1
  • Operating Systtem and version: 18.04.3 LTS(ubuntu), gnome-shell(3.28.4)
  • Desktop Environment:
  • Node version: v12.10.0 I followed guide provided by this article article.

After installation, I wanted to save my session using ‘lwsm save’ command in gnome shell, I got below error instead.

(node:13700) UnhandledPromiseRejectionWarning: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds at boundsError (internal/buffer.js:70:11) at Buffer.readUInt32LE (internal/buffer.js:206:5) at Buffer.unpack (/home/user/.npm-packages/lib/node_modules/linux-window-session-manager/node_modules/x11/lib/unpackbuffer.js:44:32) at /home/user/.npm-packages/lib/node_modules/linux-window-session-manager/dist/index.js:589:45 at step (/home/user/.npm-packages/lib/node_modules/linux-window-session-manager/dist/index.js:63:23) at Object.next (/home/user/.npm-packages/lib/node_modules/linux-window-session-manager/dist/index.js:44:53) at /home/user/.npm-packages/lib/node_modules/linux-window-session-manager/dist/index.js:37:71 at new Promise (<anonymous>) at __awaiter (/home/user/.npm-packages/lib/node_modules/linux-window-session-manager/dist/index.js:33:12) at _decodeProperty (/home/user/.npm-packages/lib/node_modules/linux-window-session-manager/dist/index.js:542:12) (node:13700) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (node:13700) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I can’t understand meaning of RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds at boundsError. Is this for not enough ram?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
johannesjocommented, Oct 11, 2019

This hopefully should be fixed now. Thanks for all your help! Let me know if this persists for you or if you encounter any other issues.

1reaction
johannesjocommented, Oct 8, 2019

Meanwhile I suggest to use version v2.1.31 instead. The error should not occur there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

johannesjo/linux-window-session-manager: A tool to ... - GitHub
A tool to store and reload open windows and window positions for x11 desktops ... session to ~/.config/lwsm/sessionData/DEFAULT.json lwsm save # save the ......
Read more >
Cannot get Window Session Manager to work - Ask Ubuntu
I then executed the instructions in the Git repository, but still no luck: when I save a session, I get the error lwsm:...
Read more >
Manage AD Bridge Enterprise Services - BeyondTrust
This guide explores the commands you can run with the Service Manager, using a single command line utility.
Read more >
Another Window Session Manager : r/gnome - Reddit
Someone may want to save open windows automatically when clicking the Power Off button. I tried to resolve these two problems, but failed...
Read more >
Restore applications and their positions from the command ...
LWSM is an open source library / command line tool that lets you save and reload your opened progra... Tagged with linux, node,...
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