Crashes running on 22.04

I’m not sure what has changed, but I can no longer start JouleScope on Ubuntu 22.04. Previously I was able to run version 1.1.10, but now it crashes (details below).

I’ve also tried 1.1.11 (downloaded from https://download.joulescope.com/joulescope_install/1/1/11/joulescope_1_1_11.tar.gz) and 1.1.12 (instructions at joulescope · PyPI). I get similar errors and a crash during startup.

$ uname -a
Linux joulescope 6.8.0-48-generic #48~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct  7 11:24:13 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

joulescope_1_1_11$ ./joulescope_launcher
*****************************
* Joulescope User Interface *
* UI Version = 1.1.11       *
*****************************

info = {
  "joulescope": {
    "ui_version": "1.1.11"
  },
  "platform": {
    "name": "linux",
    "python_version": "3.11.10 (main, Sep  9 2024, 03:20:25) [GCC 11.4.0]",
    "platform": "Linux-6.8.0-48-generic-x86_64-with-glibc2.35",
    "processor": "x86_64",
    "executable": "/home/ae/Desktop/joulescope_1_1_11/joulescope_launcher",
    "is_release": true
  }
}

=====
QEGLPlatformContext: Failed to create context: 3009
QRhiGles2: Failed to create temporary context
... <many lines like this>

$ tail /var/log/syslog
Nov  5 17:07:35 joulescope kernel: [ 7591.128838] [drm:vmw_msg_ioctl [vmwgfx]] *ERROR* Failed to open channel.
Nov  5 17:07:35 joulescope kernel: [ 7591.128891] [drm:vmw_msg_ioctl [vmwgfx]] *ERROR* Failed to open channel.
Nov  5 17:07:40 joulescope gnome-shell[1512]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Nov  5 17:07:50 joulescope kernel: [ 7605.973652] [drm:vmw_context_define.isra.0 [vmwgfx]] *ERROR* Out of hw context ids.
Nov  5 17:07:50 joulescope kernel: [ 7605.973767] joulescope_laun[4873]: segfault at 28 ip 000071dd7d06f578 sp 00007ffecfacb840 error 4 in vmwgfx_dri.so[71dd7ca96000+1300000] likely on CPU 0 (core 0, socket 0)
Nov  5 17:07:50 joulescope kernel: [ 7605.973792] Code: 24 00 00 00 00 48 89 e2 89 44 24 08 c7 44 24 0c 01 00 01 00 48 89 cf ff 91 80 03 00 00 48 8b 73 28 eb 16 0f 1f 80 00 00 00 00 <48> 8b 77 28 48 85 f6 74 22 80 7f 1c 00 74 b5 48 8b 03 48 89 c7 ff

Any ideas?

Hii @ae1234 and welcome to the Joulescope forum! I am not sure what exactly is happening, but the errors are related to graphics. Has something changed with your graphics setup? The errors indicate that you are using a VM, which we don’t support. While some people have been successful with VMs, VMs often have issues with USB throughput and graphics.

If you want, you can try clearing the Joulescope UI config. You can delete ~/.joulescope directory.

Thank you for the reply. Deleting ~/.joulescope fixed my problem and the UI opens properly now. I’m all set, thanks for the help!

Some more background on other things that I tried first. I don’t think that any of these solved the problem, since it didn’t work before I deleted the folder, but started to work immediately after that. I’m adding this section just in case it helps someone in the future.

  1. Firstly, I didn’t realize that running in a VM was not supported. I needed to do this because my host system runs Ubuntu 20.04, and only 22.04 is supported by Joulescope. I got it to work by adding a USB Device Filter in the VM configuration. That setting looks like the attached screenshot.

  2. I think that the think that the problem might have been introduced by updating the host graphics drivers. I’m surprised that this would affect the guest, but I can’t think of anything else that has changed with my graphics. I re-installed the VirtualBox guest additions into the VM.

These are the only two other things that I tried. Once again, deleting the ~/.joulescope folder is what seemed to fix things.

Thanks for your help!

1 Like