[GH-ISSUE #4629] strata desctop dont asuppoer smx v100 16gb? #2098

Closed
opened 2026-11-04 01:56:40 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @wertrigone on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4629

strata desctop dont asuppoer smx v100 16gb?

Originally created by @wertrigone on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4629 strata desctop dont asuppoer smx v100 16gb?
Author
Owner

@github-actions[bot] commented on GitHub (Oct 29, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".
  • Describe it in the issue body: what happened, what you expected, and the exact error if there is one. The issue forms (New issue > Bug report) list what to include.
  • Add the Strata version (Settings > About, or strata --version).

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6504098015 --> @github-actions[bot] commented on GitHub (Oct 29, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". - [ ] Describe it in the issue body: what happened, what you expected, and the exact error if there is one. The issue forms (New issue > Bug report) list what to include. - [ ] Add the Strata version (Settings > About, or `strata --version`). Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@wertrigone commented on GitHub (Oct 30, 2026):

fix:

Subject: Bug 0.2.8: on a Windows PC with a Russian (non-ASCII) system locale the bundled Control crashes with 'NoneType' object has no attribute 'splitlines' — the app can't see an installed engine and can't install one from a file

Environment

  • Strata Desktop 0.2.8 (installed via the installer to H:\Strata), Control 0.1.54, engine 0.1.54 (windows-x86_64-cuda-cuda12)
  • Windows 10 22H2 (10.0.19045), Russian system locale
  • GPU: NVIDIA Tesla V100-SXM2-16GB (sm_70, Volta), driver 581.80 (driver reports CUDA 13.0)

Symptoms

  1. First-run card says "Strata can't pick an engine for this PC from its update list"; "Choose a downloaded file..." fails
    instantly with "The update didn't finish and nothing was changed. ..." and Details: AttributeError: 'NoneType' object has no
    attribute 'splitlines' (desktop-*.log: update · install-engine-file failed: AttributeError: ...)
  2. Installing the engine through the app's own CLI works fine and succeeds —
    `python control\python\python.exe control\strata.py components install-file ".tar.gz" installs it — but the app still
    prints "[host] inference · No Strata engine" on every start and keeps showing the welcome card.
  3. GET /api/native returns: "available": false, "summary": "Connect a local Strata installation.",
    "error": "AttributeError: 'NoneType' object has no attribute 'splitlines'"

Full traceback (reproduced by the app's own command in the app's environment:
set PYTHONUTF8=1 && python control\strata.py components engine --output json):

File "H:\Strata\control\strata_cli\cli.py", line 2020, in _components_engine
report = engine_component.status(root, backend=a.backend, full=a.full)
File "H:\Strata\control\strata_control\engine_component.py", line 1024, in status
detected, how = detect_backend()
File "H:\Strata\control\strata_control\engine_component.py", line 462, in detect_backend
adapters = windows_display_adapters() if host_platform().startswith("windows") else []
File "H:\Strata\control\strata_control\engine_component.py", line 659, in windows_display_adapters
present = {(a["vendor"], a["device"]) for a in _windows_adapters_cim()}
File "H:\Strata\control\strata_control\engine_component.py", line 639, in _windows_adapters_cim
for line in done.stdout.splitlines():
AttributeError: 'NoneType' object has no attribute 'splitlines'

Right above it is the real root cause — an exception in the stdout reader thread:

File "H:\Strata\control\python\Lib\subprocess.py", line 1599, in _readerthread
buffer.append(fh.read())
File "", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x81 in position 259: invalid start byte

Root-cause chain

  • control-runtime.mjs controlEnvironment() sets PYTHONUTF8=1 for every child Control process.
  • windows_adapters_cim() (strata_control/engine_component.py, ~line 632) runs PowerShell
    "Get-CimInstance Win32_VideoController | ForEach-Object { $
    .PNPDeviceID + '|' + $.Name + '|' + $.AdapterRAM }"
    via subprocess.run(capture_output=True, text=True) with no encoding/errors override.
  • On a Russian-locale machine PowerShell emits localized/non-ASCII adapter names in a legacy console codepage; with
    PYTHONUTF8=1 the child's stdout is decoded as UTF-8 and decoding fails in the reader thread.
  • subprocess.run() then completes "successfully" but leaves stdout=None; the caller does done.stdout.splitlines()
    unguarded → AttributeError. Because detect_backend() is on every hardware-touching path (strata_status{hardware:true},
    components engine, install-engine-file), the whole Control status crashes: snapshot.available=false, the app believes there
    is no engine, keeps offering "Update engine"/"Choose a downloaded file", and repeats forever on each start.

Local workaround (verified: works)
Two spots in strata_control/engine_component.py:

  • _windows_adapters_cim(): for line in done.stdout.splitlines(): → for line in (done.stdout or "").splitlines():
  • _smi_query(): ...for line in done.stdout.splitlines()... → (done.stdout or "").splitlines()
    After the fix: /api/native returns "Strata Control is ready; engine 0.1.54 (windows-x86_64-cuda)";
    [host] inference · Strata engine 0.1.54 is installed; no model is loaded yet.

Suggested proper fixes

  1. Strictly on the Russian variant: pass subprocess.run(..., encoding="mbcs", errors="replace") for PowerShell calls, or make
    PowerShell emit UTF-8 by prefixing the command: "[Console]::OutputEncoding=[Text.Encoding]::UTF8;"
    (alternatively use encoding="utf-8", errors="replace" if UTF-8 output is negotiated from the child side).
  2. Audit every subprocess.run(..., capture_output=True, text=True) in strata_control/ and tools/strata_mcp.py: anything that
    may print non-ASCII/localized output (GPU/device/driver names) has the same failure mode.
    tools/strata_mcp.py run_quiet() already does ".stdout or ''" — a shared helper for the same pattern would keep it consistent.
  3. That a UnicodeDecodeError in _readerthread surfaces as a Python-internal traceback in the reader thread makes diagnosis
    awkward; catching/mitigating it close to the subprocess.run call would help.
  4. UX note: the card's message ("can't pick an engine for this PC from its update list") is misleading in this scenario — the
    actual reason is that the Control status snapshot is unavailable because of the exception above. When Control is unusable it
    would be honest to say so (e.g. "Strata Control is unavailable") and show the technical error (details) directly, not only
    behind a vague update-page message.

Additional note: the update feed itself is fine — strata update --check selects
0.1.54 windows-x86_64-cuda-cuda12 for a V100 (sm_70) correctly; the cuda13 package is правильно skipped (sm_75+ only).
The failure is purely in the detection paths that call windows_display_adapters() → PowerShell.

<!-- gh-comment-id:6525197994 --> @wertrigone commented on GitHub (Oct 30, 2026): fix: Subject: Bug 0.2.8: on a Windows PC with a Russian (non-ASCII) system locale the bundled Control crashes with 'NoneType' object has no attribute 'splitlines' — the app can't see an installed engine and can't install one from a file Environment - Strata Desktop 0.2.8 (installed via the installer to H:\Strata), Control 0.1.54, engine 0.1.54 (windows-x86_64-cuda-cuda12) - Windows 10 22H2 (10.0.19045), Russian system locale - GPU: NVIDIA Tesla V100-SXM2-16GB (sm_70, Volta), driver 581.80 (driver reports CUDA 13.0) Symptoms 1. First-run card says "Strata can't pick an engine for this PC from its update list"; "Choose a downloaded file..." fails instantly with "The update didn't finish and nothing was changed. ..." and Details: AttributeError: 'NoneType' object has no attribute 'splitlines' (desktop-*.log: update · install-engine-file failed: AttributeError: ...) 2. Installing the engine through the app's own CLI works fine and succeeds — `python control\python\python.exe control\strata.py components install-file "<package>.tar.gz" installs it — but the app still prints "[host] inference · No Strata engine" on every start and keeps showing the welcome card. 3. GET /api/native returns: "available": false, "summary": "Connect a local Strata installation.", "error": "AttributeError: 'NoneType' object has no attribute 'splitlines'" Full traceback (reproduced by the app's own command in the app's environment: set PYTHONUTF8=1 && python control\strata.py components engine --output json): File "H:\Strata\control\strata_cli\cli.py", line 2020, in _components_engine report = engine_component.status(root, backend=a.backend, full=a.full) File "H:\Strata\control\strata_control\engine_component.py", line 1024, in status detected, how = detect_backend() File "H:\Strata\control\strata_control\engine_component.py", line 462, in detect_backend adapters = windows_display_adapters() if host_platform().startswith("windows") else [] File "H:\Strata\control\strata_control\engine_component.py", line 659, in windows_display_adapters present = {(a["vendor"], a["device"]) for a in _windows_adapters_cim()} File "H:\Strata\control\strata_control\engine_component.py", line 639, in _windows_adapters_cim for line in done.stdout.splitlines(): AttributeError: 'NoneType' object has no attribute 'splitlines' Right above it is the real root cause — an exception in the stdout reader thread: File "H:\Strata\control\python\Lib\subprocess.py", line 1599, in _readerthread buffer.append(fh.read()) File "<frozen codecs>", line 322, in decode UnicodeDecodeError: 'utf-8' codec can't decode byte 0x81 in position 259: invalid start byte Root-cause chain - control-runtime.mjs controlEnvironment() sets PYTHONUTF8=1 for every child Control process. - _windows_adapters_cim() (strata_control/engine_component.py, ~line 632) runs PowerShell "Get-CimInstance Win32_VideoController | ForEach-Object { $_.PNPDeviceID + '|' + $_.Name + '|' + $_.AdapterRAM }" via subprocess.run(capture_output=True, text=True) with no encoding/errors override. - On a Russian-locale machine PowerShell emits localized/non-ASCII adapter names in a legacy console codepage; with PYTHONUTF8=1 the child's stdout is decoded as UTF-8 and decoding fails in the reader thread. - subprocess.run() then completes "successfully" but leaves stdout=None; the caller does done.stdout.splitlines() unguarded → AttributeError. Because detect_backend() is on every hardware-touching path (strata_status{hardware:true}, components engine, install-engine-file), the whole Control status crashes: snapshot.available=false, the app believes there is no engine, keeps offering "Update engine"/"Choose a downloaded file", and repeats forever on each start. Local workaround (verified: works) Two spots in strata_control/engine_component.py: - _windows_adapters_cim(): for line in done.stdout.splitlines(): → for line in (done.stdout or "").splitlines(): - _smi_query(): ...for line in done.stdout.splitlines()... → (done.stdout or "").splitlines() After the fix: /api/native returns "Strata Control is ready; engine 0.1.54 (windows-x86_64-cuda)"; [host] inference · Strata engine 0.1.54 is installed; no model is loaded yet. Suggested proper fixes 1. Strictly on the Russian variant: pass subprocess.run(..., encoding="mbcs", errors="replace") for PowerShell calls, or make PowerShell emit UTF-8 by prefixing the command: "[Console]::OutputEncoding=[Text.Encoding]::UTF8;" (alternatively use encoding="utf-8", errors="replace" if UTF-8 output is negotiated from the child side). 2. Audit every subprocess.run(..., capture_output=True, text=True) in strata_control/ and tools/strata_mcp.py: anything that may print non-ASCII/localized output (GPU/device/driver names) has the same failure mode. tools/strata_mcp.py run_quiet() already does ".stdout or ''" — a shared helper for the same pattern would keep it consistent. 3. That a UnicodeDecodeError in _readerthread surfaces as a Python-internal traceback in the reader thread makes diagnosis awkward; catching/mitigating it close to the subprocess.run call would help. 4. UX note: the card's message ("can't pick an engine for this PC from its update list") is misleading in this scenario — the actual reason is that the Control status snapshot is unavailable because of the exception above. When Control is unusable it would be honest to say so (e.g. "Strata Control is unavailable") and show the technical error (details) directly, not only behind a vague update-page message. Additional note: the update feed itself is fine — `strata update --check` selects 0.1.54 windows-x86_64-cuda-cuda12 for a V100 (sm_70) correctly; the cuda13 package is правильно skipped (sm_75+ only). The failure is purely in the detection paths that call windows_display_adapters() → PowerShell.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 4, 2026):

Closing this issue because it still did not follow the format after 5 days. That is housekeeping, not a rejection.

To bring it back: fix the title (area prefix) and the missing parts, then comment /reopen. A check runs and reopens it, or tells you what is still missing. See CONTRIBUTING.md.

<!-- gh-comment-id:6622495690 --> @github-actions[bot] commented on GitHub (Nov 4, 2026): Closing this issue because it still did not follow the format after 5 days. That is housekeeping, not a rejection. To bring it back: fix the title (area prefix) and the missing parts, then comment `/reopen`. A check runs and reopens it, or tells you what is still missing. See [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2098
No description provided.