[Bug Report] FreeCAD tools stop working after switching windows

When I first open FreeCAD from the official repos, the tools all work correctly. As soon as I switch away from FreeCAD to another window and come back, the tools stop doing what they’re supposed to. For instance, the create line tool will start rotating my view and only draws lines sometimes. Or, I can’t get the constrain coincident tool to work at all. As far as I can tell, all the tools stop working after switching windows.

I’m using the KDE version with 2 1080p monitors. I had FreeCAD open on one, and Firefox open on the other. Switching between them caused the issue.

For now, installing the Flatpak has solved the issue. Neither reinstalling FreeCAD or restarting the computer solved the issue.

Here’s my system information in case you need it:

System:
  Kernel: 6.1.1-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1-x86_64
    root=UUID=46e000a2-314c-41ff-a746-64e06bd2e040 ro quiet apparmor=1
    security=apparmor resume=UUID=1d2fc98a-2791-4f92-9628-4eae2792826a
    udev.log_priority=3
  Desktop: KDE Plasma v: 5.26.4 tk: Qt v: 5.15.7 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 81SS v: Lenovo IdeaPad FLEX-14API
    serial: <superuser required> Chassis: type: 10 v: Lenovo IdeaPad FLEX-14API
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: SDK0J40709 WIN
    serial: <superuser required> UEFI: LENOVO v: AGCN28WW(V1.11) date: 01/27/2021
Battery:
  ID-1: BAT1 charge: 30.3 Wh (100.0%) condition: 30.3/45.0 Wh (67.3%)
    volts: 16.9 min: 15.4 model: 0x43 0x65 0x6C 0x78 0x70 0x 0x4C 0x31 0x38 0x43
    0x34 0x50 0x4500 type: Li-ion serial: <filter> status: full cycles: 759
  Device-1: wacom_battery_0 model: Wacom HID 51C7 serial: N/A charge: 0%
    rechargeable: yes status: N/A
Memory:
  RAM: total: 9.66 GiB used: 3.55 GiB (36.7%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx bits: 64
    type: MT MCP arch: Zen/Zen+ note: check gen: 1 level: v3 note: check
    built: 2019 process: GF 12nm family: 0x17 (23) model-id: 0x18 (24)
    stepping: 1 microcode: 0x8108109
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 384 KiB desc: d-4x32 KiB; i-4x64 KiB L2: 2 MiB desc: 4x512 KiB L3: 4 MiB
    desc: 1x4 MiB
  Speed (MHz): avg: 2410 high: 2944 min/max: 1400/2300 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 2524 2: 2523
    3: 2926 4: 2846 5: 2943 6: 2944 7: 1175 8: 1400 bogomips: 36750
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
    bmi2 bpext clflush clflushopt clzero cmov cmp_legacy constant_tsc cpb
    cpuid cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c
    flushbyasid fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb irperf
    lahf_lm lbrv lm mca mce misalignsse mmx mmxext monitor movbe msr mtrr
    mwaitx nonstop_tsc nopl npt nrip_save nx osvw overflow_recov pae pat
    pausefilter pclmulqdq pdpe1gb perfctr_core perfctr_llc perfctr_nb
    pfthreshold pge pni popcnt pse pse36 rapl rdrand rdseed rdtscp rep_good
    sep sev sev_es sha_ni skinit smap smca smep ssbd sse sse2 sse4_1 sse4_2
    sse4a ssse3 succor svm svm_lock syscall tce topoext tsc tsc_scale
    v_vmsave_vmload vgif vmcb_clean vme vmmcall wdt xgetbv1 xsave xsavec
    xsaveerptr xsaveopt xsaves
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed mitigation: untrained return thunk; SMT vulnerable
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, STIBP:
    disabled, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Picasso/Raven 2 [Radeon Vega Series / Radeon Mobile Series]
    vendor: Lenovo driver: amdgpu v: kernel arch: GCN-5 code: Vega
    process: GF 14nm built: 2017-20 pcie: gen: 3 speed: 8 GT/s lanes: 16 ports:
    active: HDMI-A-1,eDP-1 empty: none bus-ID: 04:00.0 chip-ID: 1002:15d8
    class-ID: 0300 temp: 53.0 C
  Device-2: Syntek Integrated Camera type: USB driver: uvcvideo bus-ID: 1-4:4
    chip-ID: 174f:2426 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.6 compositor: kwin_x11 driver: X:
    loaded: amdgpu unloaded: modesetting alternate: fbdev,vesa dri: radeonsi
    gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x2160 s-dpi: 96 s-size: 506x570mm (19.92x22.44")
    s-diag: 762mm (30.01")
  Monitor-1: HDMI-A-1 mapped: HDMI-A-0 pos: top model: Dell E2414H
    serial: <filter> built: 2015 res: 1920x1080 hz: 60 dpi: 92 gamma: 1.2
    size: 531x299mm (20.91x11.77") diag: 609mm (24") ratio: 16:9 modes:
    max: 1920x1080 min: 720x400
  Monitor-2: eDP-1 mapped: eDP pos: primary,bottom model: BOE Display 0x06f2
    built: 2016 res: 1920x1080 hz: 60 dpi: 158 gamma: 1.2
    size: 309x173mm (12.17x6.81") diag: 354mm (13.9") ratio: 16:9 modes:
    max: 1920x1080 min: 640x480
  API: OpenGL v: 4.6 Mesa 22.3.1 renderer: AMD Radeon Vega 10 Graphics
    (raven LLVM 14.0.6 DRM 3.49 6.1.1-1-MANJARO) direct render: Yes
Audio:
  Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 04:00.1 chip-ID: 1002:15de class-ID: 0403
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Lenovo
    driver: snd_pci_acp3x v: kernel
    alternate: snd_rn_pci_acp3x,snd_pci_acp5x,snd_pci_acp6x,snd_acp_pci,snd_rpl_pci_acp6x,snd_pci_ps,snd_sof_amd_renoir,snd_sof_amd_rembrandt
    pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 04:00.5 chip-ID: 1022:15e2
    class-ID: 0480
  Device-3: AMD Family 17h/19h HD Audio vendor: Lenovo driver: snd_hda_intel
    v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 04:00.6
    chip-ID: 1022:15e3 class-ID: 0403
  Sound API: ALSA v: k6.1.1-1-MANJARO running: yes
  Sound Server-1: JACK v: 1.9.21 running: no
  Sound Server-2: PulseAudio v: 16.1 running: yes
  Sound Server-3: PipeWire v: 0.3.63 running: yes
Network:
  Device-1: Realtek RTL8822BE 802.11a/b/g/n/ac WiFi adapter
    vendor: Lenovo ThinkPad E595 driver: rtw_8822be v: N/A modules: rtw88_8822be
    pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 2000 bus-ID: 02:00.0
    chip-ID: 10ec:b822 class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  IF-ID-1: tun0 state: unknown speed: 10 Mbps duplex: full mac: N/A
  IP v4: <filter> scope: global
  IP v6: <filter> virtual: stable-privacy scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Realtek RTL8822BE Bluetooth 4.2 Adapter type: USB driver: btusb
    v: 0.8 bus-ID: 3-2:3 chip-ID: 0bda:b023 class-ID: e001 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 3 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 476.94 GiB used: 330.09 GiB (69.2%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: MZVLB512HAJQ-000L2
    size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: 5L1QEXA7 temp: 26.9 C scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 465.94 GiB size: 457.55 GiB (98.20%)
    used: 330.09 GiB (72.1%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2
    label: N/A uuid: 46e000a2-314c-41ff-a746-64e06bd2e040
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 312 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 label: N/A
    uuid: 1978-C925
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 10.7 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p3 maj-min: 259:3 label: N/A
    uuid: 1d2fc98a-2791-4f92-9628-4eae2792826a
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-2:2 info: Primax HP USB Keyboard type: Keyboard,HID
    driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 1.5 Mb/s power: 98mA
    chip-ID: 0461:4e8e class-ID: 0300
  Device-2: 1-3:3 info: Areson Corp 2.4G Receiver type: Keyboard,Mouse
    driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 12 Mb/s power: 100mA
    chip-ID: 25a7:fa23 class-ID: 0301
  Device-3: 1-4:4 info: Syntek Integrated Camera type: Video driver: uvcvideo
    interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 174f:2426
    class-ID: 0e02 serial: <filter>
  Hub-2: 2-0:1 info: Super-speed hub ports: 4 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Hub-3: 3-0:1 info: Hi-speed hub with single TT ports: 2 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-4: 3-1:2 info: Genesys Logic Hub ports: 4 rev: 2.0 speed: 480 Mb/s
    power: 100mA chip-ID: 05e3:0608 class-ID: 0900
  Device-1: 3-1.2:4 info: Shenzhen Goodix Fingerprint Reader
    type: <vendor specific> driver: N/A interfaces: 1 rev: 2.0 speed: 480 Mb/s
    power: 100mA chip-ID: 27c6:55b4 class-ID: ef00
  Device-2: 3-2:3 info: Realtek RTL8822BE Bluetooth 4.2 Adapter
    type: Bluetooth driver: btusb interfaces: 2 rev: 1.1 speed: 12 Mb/s
    power: 500mA chip-ID: 0bda:b023 class-ID: e001 serial: <filter>
  Hub-5: 4-0:1 info: Super-speed hub ports: 1 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 53.2 C mobo: N/A gpu: amdgpu temp: 53.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 271 Uptime: 43m wakeups: 4 Init: systemd v: 252 default: graphical
  tool: systemctl Compilers: gcc: 12.2.0 alt: 11 clang: 14.0.6 Packages: 1708
  pm: pacman pkgs: 1640 libs: 425 tools: octopi,pamac,yay pm: flatpak pkgs: 52
  pm: snap pkgs: 16 Shell: Zsh v: 5.9 default: Bash v: 5.1.16
  running-in: konsole inxi: 3.3.24

Sorry, “borked” is not a valid “bug report”.

Please see the following and edit your topic title and post accordingly.

@Yochanan I have edited the title, and explained what happens with the bug in my original post. Sorry the title was not helpful. I guess I was prioritizing keeping the title short a bit too much.

As far as I’m aware, I’ve explained the issue in an understandable way and given all necessary info to replicate the bug. After your post, I’ve added some more information that I didn’t think was needed, but might be helpful. If I’m mistaken and you need more information, please let me know what it is, and I would be happy to provide it. I’m not a developer of any sort, so I’m not aware of what information you need, other than showing how to replicate it.

If there’s more specific articles on posting bug reports, that may be helpful. The ones you mentioned only went over posting in general.

Thank you for doing that. :+1:

There are currently no open Arch bug reports for freecad. Maybe check the upstream issues and see if anyone has a similar issue.

I’ve tested the Flatpak, Snap, and the AppImage from freecadweb.org. All of those packaging formats are working correctly. This is only an issue with the Manjaro packaged version of FreeCAD. It seems to me that the most logical cause of the issue is that something went wrong with the packaging process for the Manjaro repos version. Thus, this would be an issue that should be reported to the Manjaro team, rather than the FreeCAD team or someone else.

If there is another more likely cause, please explain why. I’m still trying to learn how all of this works.

We do not package it ourselves. Like most repository packages, we import freecad directly from Arch.

Is there a guide or something on how this can be reported to the Arch community?

In order to submit an Arch bug report, the issue must be reproduced on Arch.

1 Like