FreeCAD 26.3rc2 AppImage: Addon Manager startup worker crashes with AttributeError on InitializeNetworkManager

Đang mở
#524 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
linux, python
Lĩnh vực
desktop-dev, networking

Hướng nghiên cứu

Start with addonmanager_workers_startup.py and follow get_constraints().reload() into addonmanager_python_constraints.py, then inspect blocking_get() in addonmanager_utilities.py where NetworkManager is used. Reproduce by launching the FreeCAD 26.3rc2 AppImage on Ubuntu and watching the startup worker logs. The change is done when the worker no longer raises the AttributeError or QSslSocket: device not open errors and the Addon Manager completes its constraint check and package index loading.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Problem description

Description:
When launching the FreeCAD 26.3rc2 AppImage on Ubuntu 24.04.5 LTS Linux, the Addon Manager startup worker throws an AttributeError during initialization, preventing the constraint check from completing and triggering SSL socket errors.

Environment:
FreeCAD Version: 26.3.0, Libs: 26.3.0RC2R20261018 (Git shallow)
Operating System: Ubuntu Linux (AppImage bundle)
Installation method: AppImage

Traceback / Log:

Traceback (most recent call last):
File "/tmp/.mount_FreeCAKfGjKk/usr/Mod/AddonManager/addonmanager_workers_startup.py", line 963, in run
get_constraints().reload()
File "/tmp/.mount_FreeCAKfGjKk/usr/Mod/AddonManager/addonmanager_python_constraints.py", line 77, in reload
self._versions = self._parse(self._fetch_or_read_cache())
File "/tmp/.mount_FreeCAKfGjKk/usr/Mod/AddonManager/addonmanager_python_constraints.py", line 90, in _fetch_or_read_cache
text = self._fetch(location)
File "/tmp/.mount_FreeCAKfGjKk/usr/Mod/AddonManager/addonmanager_python_constraints.py", line 100, in _fetch
data = blocking_get(location)
File "/tmp/.mount_FreeCAKfGjKk/usr/Mod/AddonManager/addonmanager_utilities.py", line 672, in blocking_get
NetworkManager.InitializeNetworkManager()
AttributeError: 'NoneType' object has no attribute 'InitializeNetworkManager'
QIODevice::read (QSslSocket): device not open

Workbench affected?

None

Steps to reproduce

Download and run FreeCAD 26.3rc2 AppImage on Linux.

Observe startup logs or open Addon Manager.

The background worker crashes immediately upon trying to fetch constraints via blocking_get().

Expected behavior

The Addon Manager should initialize its network worker successfully upon startup without throwing Python AttributeError exceptions or SSL socket errors, allowing the background checks and package index to load normally.

Actual behavior

Upon launching FreeCAD, the startup background worker immediately fails to fetch or parse constraints. The call to blocking_get() triggers an AttributeError because NetworkManager evaluates to None, accompanied by SSL socket read errors (QSslSocket: device not open). As a result, the addon constraints reload fails entirely.

Development version About Info (in Safe Mode)
**Development version About Info (in Safe Mode):**
OS: Ubuntu 24.04.5 LTS (Noble Numbat)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 26.3.0RC2R20261018 (Git shallow)
Build type: Release
Branch: (HEAD detached at 26.3rc2)
Hash: [Hier den Git-Hash aus dem Dialog einfügen, falls angezeigt]
Python 3.x.x, Qt 5.x / 6.x, Coin 4.x.x, Vtk 9.x.x, OCC 7.x.x
Last known good version (optional)
any
Ngôn ngữ chính
Python
Star
21
Fork
33
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của FreeCAD/AddonManager

Tất cả issue của FreeCAD/AddonManager

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.