Skip to content

project/lua_editor crash when websocket port in use #5031

@WolfGangS

Description

@WolfGangS

Environment

Second Life Project Lua Editor 7.2.3.19450656087 (64bit)

Description

Viewer crashes when pressing the edit button on a script preview floater to edit externally, if the port is in use.
This primarily will affect users that run more than 1 copy of the viewer
But could also affect users that have that port in use by another process.

Suggest that when catching that port is in use, viewer pops up a notice saying something along the lines of.

Failed to open web socket port {port} already in use

Reproduction steps

  1. Use Project lua editor viewer
  2. Open instance of viewer
  3. Make sure websocket features is enabled in preferences > advanced > script development
  4. Make sure you have an external editor configured there too
  5. Check option in preferences > advanced > allow multiple viewers
  6. Open second instance
  7. Login to sl on both
  8. Create a prim, add a script, and open it on both
  9. Press Edit... button to open externally on first viewer instance
  10. Press Edit... button to open externally on second viewer instance


This repo is using Opire - what does it mean? 👇
💵 Everyone can add rewards for this issue commenting /reward 100 (replace 100 with the amount).
🕵️‍♂️ If someone starts working on this issue to earn the rewards, they can comment /try to let everyone know!
🙌 And when they open the PR, they can comment /claim #5031 either in the PR description or in a PR's comment.

🪙 Also, everyone can tip any user commenting /tip 20 @WolfGangS (replace 20 with the amount, and @WolfGangS with the user to tip).

📖 If you want to learn more, check out our documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageFlags issues that need to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions