AzureStorageExplorer icon indicating copy to clipboard operation
AzureStorageExplorer copied to clipboard

terminate called after throwing an instance of 'std::out_of_range'

Open AndreRicardo-Zoetis opened this issue 1 year ago • 1 comments

Preflight Checklist

Storage Explorer Version

1.36

Regression From

No response

Architecture

x64

Storage Explorer Build Number

20241012.1

Platform

Linux (snap)

OS Version

Ubuntu 22.04

Bug Description

Crashes when opening.

Steps to Reproduce

$ storage-explorer
[2024-10-17T14:55:11.031Z] (main:3383672) <NONE> Log file: /home/andre/snap/storage-explorer/63/.config/StorageExplorer/logs/2024-10-17_155511/2024-10-17_155511_main_3383672.log
[2024-10-17T14:55:11.055Z] (main:3383672) <NONE> Log level: info
[2024-10-17T14:55:11.056Z] (main:3383672) <INFO> Startup app state:  {
    lastWindowState: {
      rect: { x: 2266, y: 260, width: 1000, height: 768 },
      maximized: true
    },
    disableGpu: false,
    dialogAutoResponse: {}
  }
Gtk-Message: 15:55:11.353: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[2024-10-17T14:55:11.863Z] (main:3383672) <INFO> No proxy environment variables exist on startup
[2024-10-17T14:55:11.867Z] (main:3383672) <INFO> Applying proxy configuration
[2024-10-17T14:55:11.872Z] (main:3383672) <INFO> Proxy configuration source set to: systemProxy
[2024-10-17T14:55:11.872Z] (main:3383672) <INFO> Proxy configuration set to: undefined
[2024-10-17T14:55:11.874Z] (main:3383672) <INFO> Initializing user accounts manager account store...
[2024-10-17T14:55:13.075Z] (main:3383672) <WARN> An implementation of 'Environment.Theming.onThemeChanged' has already been registered by another provider, this most recent implementation will be ignored unless 'Environment.Theming.onThemeChanged is used as an event'.
[2024-10-17T14:55:13.075Z] (main:3383672) <WARN> An implementation of 'Environment.Zoom.onZoomChanged' has already been registered by another provider, this most recent implementation will be ignored unless 'Environment.Zoom.onZoomChanged is used as an event'.
[2024-10-17T14:55:13.077Z] (main:3383672) <INFO> Initializing extension manager...
[2024-10-17T14:55:13.078Z] (main:3383672) <INFO> Done looking for extensions to open or debug.
[2024-10-17T14:55:13.084Z] (main:3383672) <INFO> Loading 17 extensions
[2024-10-17T14:55:13.269Z] (main:3383672) <INFO> Extensions loaded
[2024-10-17T14:55:13.928Z] (queue-extension:3383927) <NONE> Log file: /home/andre/snap/storage-explorer/63/.config/StorageExplorer/logs/2024-10-17_155511/2024-10-17_155511_queue-extension_3383927.log
[2024-10-17T14:55:13.932Z] (queue-extension:3383927) <NONE> Log level: info
[2024-10-17T14:55:13.950Z] (queue-extension:3383927) <INFO> Loading SSL Settings
[2024-10-17T14:55:13.950Z] (queue-extension:3383927) <INFO> Injecting certs found in /home/andre/snap/storage-explorer/63/.config/StorageExplorer/certs/
[2024-10-17T14:55:13.951Z] (queue-extension:3383927) <INFO> Sending init acks back to parent process
[2024-10-17T14:55:13.999Z] (table-extension:3383935) <NONE> Log file: /home/andre/snap/storage-explorer/63/.config/StorageExplorer/logs/2024-10-17_155511/2024-10-17_155511_table-extension_3383935.log
[2024-10-17T14:55:14.003Z] (table-extension:3383935) <NONE> Log level: info
[2024-10-17T14:55:14.020Z] (table-extension:3383935) <INFO> Loading SSL Settings
[2024-10-17T14:55:14.020Z] (table-extension:3383935) <INFO> Injecting certs found in /home/andre/snap/storage-explorer/63/.config/StorageExplorer/certs/
[2024-10-17T14:55:14.020Z] (table-extension:3383935) <INFO> Sending init acks back to parent process
[2024-10-17T14:55:14.044Z] (adls2-extension:3383924) <NONE> Log file: /home/andre/snap/storage-explorer/63/.config/StorageExplorer/logs/2024-10-17_155511/2024-10-17_155511_adls2-extension_3383924.log
[2024-10-17T14:55:14.058Z] (adls2-extension:3383924) <NONE> Log level: info
[2024-10-17T14:55:14.091Z] (adls2-extension:3383924) <INFO> Loading SSL Settings
[2024-10-17T14:55:14.091Z] (adls2-extension:3383924) <INFO> Injecting certs found in /home/andre/snap/storage-explorer/63/.config/StorageExplorer/certs/
[2024-10-17T14:55:14.092Z] (adls2-extension:3383924) <INFO> Sending init acks back to parent process
Open XDisplay
terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::substr: __pos (which is 446) > this->size() (which is 441)
[1]    3383672 IOT instruction (core dumped)  storage-explorer

Actual Experience

2024-10-17_155511_main_3383672.log Crashes when opening

Expected Experience

No response

Additional Context

No response

AndreRicardo-Zoetis avatar Oct 17 '24 15:10 AndreRicardo-Zoetis

@AndreRicardo-Zoetis Is this after an update or a fresh installation? If an update, does uninstalling then reinstalling resolve the issue?

craxal avatar Oct 21 '24 18:10 craxal

@AndreRicardo-Zoetis Is this after an update or a fresh installation? If an update, does uninstalling then reinstalling resolve the issue?

It was after an update. I had a lot of hanging StorageExplorerExe still running on the background.

killall StorageExplorerExe did fix the issue, but a the same time I also reinstalled.

AndreRicardo-Zoetis avatar Oct 25 '24 17:10 AndreRicardo-Zoetis

@AndreRicardo-Zoetis Is your issue resolved after killing the lingering processes?

craxal avatar Oct 25 '24 17:10 craxal

@craxal, FWIW I'm seeing the same issue with a slightly different error on 1.36.1:

terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::substr: __pos (which is 7) > this->size() (which is 3)
Aborted (core dumped)

Killing any StorageExplorer or StorageExplorerExe processes doesn't resolve the issue. Occasionally, after a lot of retries, it'll start up but then intermittenly crash with the above error.

PsypherPunk avatar Oct 29 '24 11:10 PsypherPunk

@PsypherPunk Just a shot in the dark: What happens if you restart your machine and then try launching Storage Explorer again? Restarting should guarantee no lingering processes that might have been missed.

craxal avatar Oct 29 '24 16:10 craxal

@craxal, it does, albeit only temporarily, and it eventually starts with the same issue. Similarly, just ignoring things for a while and trying later seems to allow it to launch.

Both of which hint at what you're suggesting, some lingering resource/contention, but not sure as to what.

PsypherPunk avatar Oct 30 '24 10:10 PsypherPunk

@PsypherPunk Interesting. Are there any other details about your system you might be able to share? VM environment? Custom OS components? Method of snap installation?

craxal avatar Oct 30 '24 17:10 craxal

Standard Ubuntu 22.04 OS:

❯ cat /etc/os-release 
PRETTY_NAME="Ubuntu 22.04.5 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.5 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

snap 2.65.3+22.04, apparently:

❯ snap --version
snap    2.65.3+22.04
snapd   2.65.3+22.04
series  16
ubuntu  22.04
kernel  5.15.0-124-generic

IIRC, there are a couple of connects involved:

sudo snap connect storage-explorer:password-manager-service :password-manager-service
snap connect storage-explorer:removable-media :removable-media

Errrr…that's all I can think of.

PsypherPunk avatar Oct 31 '24 09:10 PsypherPunk

@PsypherPunk Can you share your app logs? Might be worth sharing your settings file as well.

craxal avatar Oct 31 '24 17:10 craxal

@craxal, rather annoyingly (or not), it's been remarkably stable after that last round of crashes. Unless @AndreRicardo-Zoetis is finding otherwise, I'm going to assume this was a Snap/OS issue that's resolved itself.

PsypherPunk avatar Nov 06 '24 14:11 PsypherPunk

We'll keep this issue open for a little while longer then. If you encounter it again, let us know, otherwise we'll eventually close.

craxal avatar Nov 06 '24 17:11 craxal

I encountered this exact same issue, I think. First time after boot the storage explorer opens fine, but then it crashes every time. Also, sometimes when I change workspace (i3 WM), the app crashes in background.

[2024-12-20T08:51:11.878Z] (main:63238) <NONE> Log file: /home/aleksi/snap/storage-explorer/65/.config/StorageExplorer/logs/2024-12-20_105111/2024-12-20_105111_main_63238.log
[2024-12-20T08:51:11.884Z] (main:63238) <NONE> Log level: info
[2024-12-20T08:51:11.885Z] (main:63238) <INFO> Startup app state:  {
    lastWindowState: { rect: { x: 0, y: 0, width: 2560, height: 1401 }, maximized: false },
    disableGpu: false,
    dialogAutoResponse: {}
  }
Gtk-Message: 10:51:11.984: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[2024-12-20T08:51:12.275Z] (main:63238) <INFO> No proxy environment variables exist on startup
[2024-12-20T08:51:12.277Z] (main:63238) <INFO> Applying proxy configuration
[2024-12-20T08:51:12.278Z] (main:63238) <INFO> Proxy configuration source set to: none
[2024-12-20T08:51:12.278Z] (main:63238) <INFO> Proxy configuration set to: undefined
[2024-12-20T08:51:12.280Z] (main:63238) <INFO> Setting SERVICEHUBTRACELEVEL to ALL
[2024-12-20T08:51:12.280Z] (main:63238) <INFO> Initializing user accounts manager account store...
[2024-12-20T08:51:12.862Z] (main:63238) <WARN> An implementation of 'Environment.Theming.onThemeChanged' has already been registered by another provider, this most recent implementation will be ignored unless 'Environment.Theming.onThemeChanged is used as an event'.
[2024-12-20T08:51:12.863Z] (main:63238) <WARN> An implementation of 'Environment.Zoom.onZoomChanged' has already been registered by another provider, this most recent implementation will be ignored unless 'Environment.Zoom.onZoomChanged is used as an event'.
[2024-12-20T08:51:12.865Z] (main:63238) <INFO> Initializing extension manager...
[2024-12-20T08:51:12.865Z] (main:63238) <INFO> Done looking for extensions to open or debug.
[2024-12-20T08:51:12.869Z] (main:63238) <INFO> Loading 17 extensions
[2024-12-20T08:51:12.963Z] (main:63238) <INFO> Extensions loaded
[2024-12-20T08:51:13.374Z] (blob-extension:63509) <NONE> Log file: /home/aleksi/snap/storage-explorer/65/.config/StorageExplorer/logs/2024-12-20_105111/2024-12-20_105111_blob-extension_63509.log
[2024-12-20T08:51:13.380Z] (blob-extension:63509) <NONE> Log level: info
[2024-12-20T08:51:13.401Z] (blob-extension:63509) <INFO> Loading SSL Settings
[2024-12-20T08:51:13.401Z] (blob-extension:63509) <INFO> Injecting certs found in /home/aleksi/snap/storage-explorer/65/.config/StorageExplorer/certs/
[2024-12-20T08:51:13.402Z] (blob-extension:63509) <INFO> Sending init acks back to parent process
[2024-12-20T08:51:13.389Z] (adls2-extension:63508) <NONE> Log file: /home/aleksi/snap/storage-explorer/65/.config/StorageExplorer/logs/2024-12-20_105111/2024-12-20_105111_adls2-extension_63508.log
[2024-12-20T08:51:13.402Z] (adls2-extension:63508) <NONE> Log level: info
[2024-12-20T08:51:13.423Z] (adls2-extension:63508) <INFO> Loading SSL Settings
[2024-12-20T08:51:13.423Z] (adls2-extension:63508) <INFO> Injecting certs found in /home/aleksi/snap/storage-explorer/65/.config/StorageExplorer/certs/
[2024-12-20T08:51:13.424Z] (adls2-extension:63508) <INFO> Sending init acks back to parent process
[2024-12-20T08:51:13.413Z] (file-extension:63510) <NONE> Log file: /home/aleksi/snap/storage-explorer/65/.config/StorageExplorer/logs/2024-12-20_105111/2024-12-20_105111_file-extension_63510.log
[2024-12-20T08:51:13.418Z] (file-extension:63510) <NONE> Log level: info
[2024-12-20T08:51:13.428Z] (file-extension:63510) <INFO> Loading SSL Settings
[2024-12-20T08:51:13.428Z] (file-extension:63510) <INFO> Injecting certs found in /home/aleksi/snap/storage-explorer/65/.config/StorageExplorer/certs/
[2024-12-20T08:51:13.429Z] (file-extension:63510) <INFO> Sending init acks back to parent process
[2024-12-20T08:51:13.422Z] (queue-extension:63511) <NONE> Log file: /home/aleksi/snap/storage-explorer/65/.config/StorageExplorer/logs/2024-12-20_105111/2024-12-20_105111_queue-extension_63511.log
[2024-12-20T08:51:13.430Z] (queue-extension:63511) <NONE> Log level: info
[2024-12-20T08:51:13.439Z] (queue-extension:63511) <INFO> Loading SSL Settings
[2024-12-20T08:51:13.439Z] (queue-extension:63511) <INFO> Injecting certs found in /home/aleksi/snap/storage-explorer/65/.config/StorageExplorer/certs/
[2024-12-20T08:51:13.440Z] (queue-extension:63511) <INFO> Sending init acks back to parent process
[2024-12-20T08:51:13.435Z] (storage-account-extension:63518) <NONE> Log file: /home/aleksi/snap/storage-explorer/65/.config/StorageExplorer/logs/2024-12-20_105111/2024-12-20_105111_storage-account-extension_63518.log
[2024-12-20T08:51:13.440Z] (storage-account-extension:63518) <NONE> Log level: info
[2024-12-20T08:51:13.452Z] (storage-account-extension:63518) <INFO> Loading SSL Settings
[2024-12-20T08:51:13.453Z] (storage-account-extension:63518) <INFO> Injecting certs found in /home/aleksi/snap/storage-explorer/65/.config/StorageExplorer/certs/
[2024-12-20T08:51:13.454Z] (storage-account-extension:63518) <INFO> Sending init acks back to parent process
[2024-12-20T08:51:13.541Z] (table-extension:63526) <NONE> Log file: /home/aleksi/snap/storage-explorer/65/.config/StorageExplorer/logs/2024-12-20_105111/2024-12-20_105111_table-extension_63526.log
[2024-12-20T08:51:13.547Z] (table-extension:63526) <NONE> Log level: info
[2024-12-20T08:51:13.556Z] (table-extension:63526) <INFO> Loading SSL Settings
[2024-12-20T08:51:13.556Z] (table-extension:63526) <INFO> Injecting certs found in /home/aleksi/snap/storage-explorer/65/.config/StorageExplorer/certs/
[2024-12-20T08:51:13.557Z] (table-extension:63526) <INFO> Sending init acks back to parent process
Open XDisplay
terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::substr: __pos (which is 871) > this->size() (which is 869)
Aborted (core dumped)

Storage explorer version 1.36.2, x86_64

snap    2.66.1+24.04
snapd   2.66.1+24.04
series  16
ubuntu  24.04
kernel  6.8.0-51-generic

atarv avatar Dec 20 '24 09:12 atarv

@atarv We've encountered problems with Ubuntu 24 before. Unfortunately, not all of our dependencies or tools have been updated for Ubuntu 24 yet, so support is a bit spotty.

craxal avatar Dec 20 '24 17:12 craxal

Any updates on this issue? I'm having hard times with Azure these days. I just installed it with flatpak. It kinda works, but with some time open the program starts to crash, and then I have to run pkill StorageExplorer to stop dangling processes.

My config (using ArtixLinux, arch-based):

Linux arjuna 6.6.65-1-lts #1 SMP PREEMPT_DYNAMIC Wed, 11 Dec 2024 19:48:03 +0000 x86_64 GNU/Linux

Flatpak package config:

> flatpak info com.microsoft.AzureStorageExplorer

Azure Storage Explorer - Graphical tool to manage Azure cloud storage resources

        ID: com.microsoft.AzureStorageExplorer
       Ref: app/com.microsoft.AzureStorageExplorer/x86_64/stable
      Arch.: x86_64
      Branch: stable
    Version: v1.36.2
   License: LicenseRef-proprietary=https://github.com/microsoft/AzureStorageExplorer/blob/main/LICENSE/
    Origem: flathub
   Collection: org.flathub.Stable
Installation: user
 Installed: 98,3 MB
   Runtime: org.freedesktop.Platform/x86_64/23.08
       Sdk: org.freedesktop.Sdk/x86_64/23.08

    Commit: efaeb6fe3ce98556da7b611a846773a69ab68ab3a74c19831a438521a5a84989
       Parent: 322572d10137f41fe0ca37b23ab07bb6525609769c84146ea27a4db64a4675eb
   Subject: storage-explorer: Update storage-explorer.tar.gz to v1.36.2 (7612cbdf)
      Date: 2024-10-30 08:33:37 +0000

Lakshamana avatar Dec 27 '24 18:12 Lakshamana

@AndreRicardo-Zoetis Is your issue resolved after killing the lingering processes?

Not always, which is strange. I suspect the issue is related to AzureSubscriptionsManager, usually the problem starts after a drop in connection in my corporate VPN.

In 1.36.2

$ storage-explorer
[2024-12-30T17:00:58.007Z] (main:3665439) <NONE> Log file: /home/andre/snap/storage-explorer/65/.config/StorageExplorer/logs/2024-12-30_170058/2024-12-30_170058_main_3665439.log
[2024-12-30T17:00:58.010Z] (main:3665439) <NONE> Log level: info
[2024-12-30T17:00:58.011Z] (main:3665439) <INFO> Startup app state:  {
    lastWindowState: {
      rect: { x: 1142, y: 90, width: 1517, height: 695 },
      maximized: false
    },
    disableGpu: false,
    dialogAutoResponse: {}
  }
Gtk-Message: 17:00:58.059: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[2024-12-30T17:00:58.237Z] (main:3665439) <INFO> No proxy environment variables exist on startup
[2024-12-30T17:00:58.237Z] (main:3665439) <INFO> Applying proxy configuration
[2024-12-30T17:00:58.237Z] (main:3665439) <INFO> Proxy configuration source set to: systemProxy
[2024-12-30T17:00:58.238Z] (main:3665439) <INFO> Proxy configuration set to: undefined
[2024-12-30T17:00:58.239Z] (main:3665439) <INFO> Initializing user accounts manager account store...
[2024-12-30T17:00:58.612Z] (main:3665439) <WARN> An implementation of 'Environment.Theming.onThemeChanged' has already been registered by another provider, this most recent implementation will be ignored unless 'Environment.Theming.onThemeChanged is used as an event'.
[2024-12-30T17:00:58.613Z] (main:3665439) <WARN> An implementation of 'Environment.Zoom.onZoomChanged' has already been registered by another provider, this most recent implementation will be ignored unless 'Environment.Zoom.onZoomChanged is used as an event'.
[2024-12-30T17:00:58.613Z] (main:3665439) <INFO> Initializing extension manager...
[2024-12-30T17:00:58.614Z] (main:3665439) <INFO> Done looking for extensions to open or debug.
[2024-12-30T17:00:58.616Z] (main:3665439) <INFO> Loading 17 extensions
[2024-12-30T17:00:58.661Z] (main:3665439) <INFO> Extensions loaded
[2024-12-30T17:00:58.872Z] (adls2-extension:3665702) <NONE> Log file: /home/andre/snap/storage-explorer/65/.config/StorageExplorer/logs/2024-12-30_170058/2024-12-30_170058_adls2-extension_3665702.log
[2024-12-30T17:00:58.879Z] (adls2-extension:3665702) <NONE> Log level: info
[2024-12-30T17:00:58.885Z] (adls2-extension:3665702) <INFO> Loading SSL Settings
[2024-12-30T17:00:58.885Z] (adls2-extension:3665702) <INFO> Injecting certs found in /home/andre/snap/storage-explorer/65/.config/StorageExplorer/certs/
[2024-12-30T17:00:58.886Z] (adls2-extension:3665702) <INFO> Sending init acks back to parent process
[2024-12-30T17:00:58.890Z] (blob-extension:3665703) <NONE> Log file: /home/andre/snap/storage-explorer/65/.config/StorageExplorer/logs/2024-12-30_170058/2024-12-30_170058_blob-extension_3665703.log
[2024-12-30T17:00:58.896Z] (blob-extension:3665703) <NONE> Log level: info
[2024-12-30T17:00:58.906Z] (blob-extension:3665703) <INFO> Loading SSL Settings
[2024-12-30T17:00:58.906Z] (blob-extension:3665703) <INFO> Injecting certs found in /home/andre/snap/storage-explorer/65/.config/StorageExplorer/certs/
[2024-12-30T17:00:58.907Z] (blob-extension:3665703) <INFO> Sending init acks back to parent process
[2024-12-30T17:00:58.902Z] (storage-account-extension:3665712) <NONE> Log file: /home/andre/snap/storage-explorer/65/.config/StorageExplorer/logs/2024-12-30_170058/2024-12-30_170058_storage-account-extension_3665712.log
[2024-12-30T17:00:58.906Z] (storage-account-extension:3665712) <NONE> Log level: info
[2024-12-30T17:00:58.912Z] (storage-account-extension:3665712) <INFO> Loading SSL Settings
[2024-12-30T17:00:58.912Z] (storage-account-extension:3665712) <INFO> Injecting certs found in /home/andre/snap/storage-explorer/65/.config/StorageExplorer/certs/
[2024-12-30T17:00:58.912Z] (storage-account-extension:3665712) <INFO> Sending init acks back to parent process
[2024-12-30T17:00:58.902Z] (queue-extension:3665705) <NONE> Log file: /home/andre/snap/storage-explorer/65/.config/StorageExplorer/logs/2024-12-30_170058/2024-12-30_170058_queue-extension_3665705.log
[2024-12-30T17:00:58.907Z] (queue-extension:3665705) <NONE> Log level: info
[2024-12-30T17:00:58.912Z] (queue-extension:3665705) <INFO> Loading SSL Settings
[2024-12-30T17:00:58.912Z] (queue-extension:3665705) <INFO> Injecting certs found in /home/andre/snap/storage-explorer/65/.config/StorageExplorer/certs/
[2024-12-30T17:00:58.912Z] (queue-extension:3665705) <INFO> Sending init acks back to parent process
[2024-12-30T17:00:58.911Z] (file-extension:3665704) <NONE> Log file: /home/andre/snap/storage-explorer/65/.config/StorageExplorer/logs/2024-12-30_170058/2024-12-30_170058_file-extension_3665704.log
[2024-12-30T17:00:58.914Z] (file-extension:3665704) <NONE> Log level: info
[2024-12-30T17:00:58.919Z] (file-extension:3665704) <INFO> Loading SSL Settings
[2024-12-30T17:00:58.919Z] (file-extension:3665704) <INFO> Injecting certs found in /home/andre/snap/storage-explorer/65/.config/StorageExplorer/certs/
[2024-12-30T17:00:58.919Z] (file-extension:3665704) <INFO> Sending init acks back to parent process
[2024-12-30T17:00:58.935Z] (table-extension:3665717) <NONE> Log file: /home/andre/snap/storage-explorer/65/.config/StorageExplorer/logs/2024-12-30_170058/2024-12-30_170058_table-extension_3665717.log
[2024-12-30T17:00:58.938Z] (table-extension:3665717) <NONE> Log level: info
[2024-12-30T17:00:58.942Z] (table-extension:3665717) <INFO> Loading SSL Settings
[2024-12-30T17:00:58.943Z] (table-extension:3665717) <INFO> Injecting certs found in /home/andre/snap/storage-explorer/65/.config/StorageExplorer/certs/
[2024-12-30T17:00:58.943Z] (table-extension:3665717) <INFO> Sending init acks back to parent process
[2024-12-30T17:00:58.975Z] (main:3665439) <INFO> SubscriptionCache found V2 cache, using it.
[2024-12-30T17:00:59.112Z] (start-panel:3665848) <NONE> Log file: /home/andre/snap/storage-explorer/65/.config/StorageExplorer/logs/2024-12-30_170058/2024-12-30_170058_start-panel_3665848.log
[2024-12-30T17:00:59.115Z] (start-panel:3665848) <NONE> Log level: info
[2024-12-30T17:00:59.119Z] (start-panel:3665848) <INFO> Loading SSL Settings
[2024-12-30T17:00:59.119Z] (start-panel:3665848) <INFO> Injecting certs found in /home/andre/snap/storage-explorer/65/.config/StorageExplorer/certs/
[2024-12-30T17:00:59.120Z] (start-panel:3665848) <INFO> Sending init acks back to parent process
[2024-12-30T17:00:59.131Z] (main:3665439) <INFO> AzureSubscriptionsManager checking for new accounts...
Open XDisplay
terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::substr: __pos (which is 7) > this->size() (which is 6)
[1]    3665439 IOT instruction (core dumped)  storage-explorer

AndreRicardo-Zoetis avatar Dec 30 '24 17:12 AndreRicardo-Zoetis

What version of .NET do you have installed?

craxal avatar Jan 06 '25 20:01 craxal

What version of .NET do you have installed?

$ dotnet --info
You must install or update .NET to run this application.

App: /usr/share/dotnet/sdk/8.0.401/dotnet.dll
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '8.0.8' (x64)
.NET location: /usr/share/dotnet/

No frameworks were found.

Learn more:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=8.0.8&arch=x64&rid=linux-x64&os=ubuntu.22.04

Host:
  Version:      8.0.8
  Architecture: x64
  Commit:       08338fcaa5
  RID:          linux-x64

.NET SDKs installed:
  8.0.401 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  No runtimes were found.

Other architectures found:
  None

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

PS: I'm using snap and the package upgraded recently 1.37.0, will report back if this version also continues to crash.

$ snap list storage-explorer
Name              Version  Rev  Tracking       Publisher            Notes
storage-explorer  1.37.0   66   latest/stable  msft-storage-tools✓  -

AndreRicardo-Zoetis avatar Jan 09 '25 14:01 AndreRicardo-Zoetis

I can't say for sure, but assuming the log is showing the proper sequence of events up to the error, it seems the termination is happening while Storage Explorer is attempting to retrieve user accounts. User accounts are managed by a .NET component (which is why I asked about your .NET installation), and from what I've heard, it uses a little bit of native code. It's possible that's where the error is occurring.

Was this working with a previous version at any point? If so, here's something else you can try:

  1. Revert to the version that was working.
  2. Launch Storage Explorer.
  3. Select Help > Reset, check only Authentication, and click Reset.
  4. Make sure you're signed out of all accounts, then close Storage Explorer.
  5. Install the current version of Storage Explorer again.
  6. Launch Storage Explorer, make sure it doesn't crash. Try signing into your accounts again.

If you can't get previous versions working, try following the steps given in the troubleshooting guide. And if that doesn't work, you might try a clean install.

craxal avatar Jan 09 '25 19:01 craxal

Actually, there may be another bit of native code unrelated to user accounts that looks highly suspicious. We have some native code that checks the clipboard contents periodically, and part of that code looks like this:

std::string filePath = allFileUris.substr(start + 7, uriLength - 8);

The code here is extracting file paths from URLs on the clipboard, and it is assumed URLs always start with the protocol "file://". Interestingly, the magic numbers in use here coincide with the std::out_of_range. So, it seems like not all the URLs are adhering to our assumptions. Give us some time to look into this further and work on a potential fix, and we'll get a preview build out for you to try.

Out of curiosity, do you know what's on your system clipboard when trying to launch Storage Explorer?

craxal avatar Jan 09 '25 20:01 craxal

@AndreRicardo-Zoetis Did you get a chance to answer the additional questions I had? Would you like a build to test a potential fix?

craxal avatar Feb 12 '25 23:02 craxal

@AndreRicardo-Zoetis We have merged a fix, which should be available later this month in 1.38.0. If you upgrade to this version and continue to experience issues, please leave a comment here with any information you can provide.

craxal avatar Mar 08 '25 01:03 craxal