mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4629] strata desctop dont asuppoer smx v100 16gb? #2098
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2098
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?
@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:
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
@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
Symptoms
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: ...)
`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.
"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
"Get-CimInstance Win32_VideoController | ForEach-Object { $.PNPDeviceID + '|' + $.Name + '|' + $.AdapterRAM }"
via subprocess.run(capture_output=True, text=True) with no encoding/errors override.
PYTHONUTF8=1 the child's stdout is decoded as UTF-8 and decoding fails in the reader thread.
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:
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
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).
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.
awkward; catching/mitigating it close to the subprocess.run call would help.
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 --checkselects0.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.
@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.