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

未关闭
#524 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
linux, python

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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
主要语言
Python
星标
21
派生
33
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

FreeCAD/AddonManager 的其他 Issue

查看 FreeCAD/AddonManager 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。