drawio-desktop icon indicating copy to clipboard operation
drawio-desktop copied to clipboard

Missing menu items on systems with no network interface

Open smcgu opened this issue 1 year ago • 6 comments

Preflight Checklist

  • [X] I agree to follow the Code of Conduct that this project adheres to.
  • [X] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.

Describe the bug

Templates and other menu items are not available when the drawio app is run on a system with no network. A portion of this bug was previously reported: https://github.com/jgraph/drawio-desktop/issues/678#issuecomment-1575005432

To Reproduce

Steps to reproduce the behavior:

  1. Network isolate system
  2. Download AppImage
  3. Open draw.io app
  4. Create New Diagram
  5. Observe no template pop-up
  6. Arrange > Insert
  7. Observe no Template menu option
  8. Open Help menu
  9. Observe missing help menu items, it only contains "Keyboard shortcuts" and "v26.0.9"

Expected behavior

Templates, the help menu, and other menu items should be visible offline and online.

Screenshots

Missing insert templates

Missing insert templates

Broken help menu

Broken help menu

Some screenshots are available on the other comment: https://github.com/jgraph/drawio-desktop/issues/678#issuecomment-1575005432

draw.io versions (In the Help->About menu of the draw.io editor):

  • draw.io version 26.0.9
  • draw.io version 26.0.16
  • draw.io version 26.1.1

Desktop (please complete the following information):

  • OS: Linux AppImage

Additional context

Edited to add additional affected versions.

smcgu avatar Feb 07 '25 01:02 smcgu

Correction. This behavior will exhibit at any time while the app is running if the network interfaces change. Access to the Internet is not required. This seems to be solely based on whether there is a network interface.

If there is only a loopback interface, then the menus are broken.

$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

If you add an interface (even without actual connectivity to the Internet), the menus work correctly (without needing to restart the app).

$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group 1 qlen 1000
    link/ether aa:bb:cc:dd:ee:ff brd ff:ff:ff:ff:ff:ff

smcgu avatar Feb 07 '25 02:02 smcgu

If you then remove the network interface, the menu items will return to their broken, abbreviated state.

smcgu avatar Feb 07 '25 02:02 smcgu

I have updated the original issue with screenshots of the behavior.

smcgu avatar Feb 10 '25 20:02 smcgu

The issue is still present in the latest release: 26.0.16

smcgu avatar Mar 10 '25 21:03 smcgu