Open storaman opened 3 years ago
Can you try running. You can read more about execution policy on the readme page.
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force
I have never seen this happen before.
Sorry., Same again.
I will try to remove the script and re install again.
I set the policy as bypass. Command doesn't give any error but it doesn't create any window now.
Scope ExecutionPolicy
----- ---------------
MachinePolicy Undefined UserPolicy Undefined Process Undefined CurrentUser Undefined LocalMachine Bypass
Interesting. Can you tell me more about your setup. Windows version and powershell version. You are installing the module from the Powershell gallery right?
Install-Module -Repository PSGallery -Name PSChiaPlotter
I have seen similar issues with OpenGL and WPF in the past. I would start by making sure you have .Net installed (type "turn windows features on or off in your search bar if using windows 10) also update your graphics drivers (don't think this is the cause but will not hurt). Please let us know what OS you are using and what version of PowerShell by running the following commands.
Get-Host | Select-Object Version
systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
I had the same and still have the same issue when i connect remotely to a pc without monitor connected to the pc, as soon i connect a monitor all works like a charm, connected through anydesk and team viewer same story same result
@GeoWeb-Pro that is an interesting find. The 4 servers I have it installed on and running on for testing are all headless and I use RDP to connect to them. They all work just fine.
Could you test something for me as I can not replicate the issue?
Create a DWORD registry value at
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Avalon.Graphics\DisableHWAcceleration
Then setting it to 1 and restart your computer.
Here is a Microsoft doc that got me to the point above. From what I am reading it should automagaically switch to software rendering if needed which is what lead me to think it was a .Net issue before.
https://docs.microsoft.com/en-us/archive/blogs/jgoldb/
More specifically
https://docs.microsoft.com/en-us/archive/blogs/jgoldb/software-rendering-usage-in-wpf
Interesting. Can you tell me more about your setup. Windows version and powershell version. You are installing the module from the Powershell gallery right?
Install-Module -Repository PSGallery -Name PSChiaPlotter
Hi,
Windows Version is W10Ver1809 OSBuild 17763.1817 and PS Version is 5.1.17763.1490.
I had the same and still have the same issue when i connect remotely to a pc without monitor connected to the pc, as soon i connect a monitor all works like a charm, connected through anydesk and team viewer same story same result
Yes, I am also using a remote connection. I use Chrome Remote Desktop but since it is a Laptop it has a display by default. The issue is I close the lid when I leave it alone... :)
I have seen similar issues with OpenGL and WPF in the past. I would start by making sure you have .Net installed (type "turn windows features on or off in your search bar if using windows 10) also update your graphics drivers (don't think this is the cause but will not hurt). Please let us know what OS you are using and what version of PowerShell by running the following commands.
Get-Host | Select-Object Version systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
.NET is installed. Not fully but the core components are there.
@storaman you could try that registry entry above. I will try using Chrome remote desktop if I have time today and test a few solutions.
@storaman you could try that registry entry above. I will try using Chrome remote desktop if I have time today and test a few solutions.
I did so, but it is the same. When I run the Show-PSChiaPlotter command, no window pops-up.
I had try as well with no luck, unfortunately i don't have RDP as i run win 10 home edition on both
For the life of me I can not replicate this. I installed chrome on my test machine set up remote access, logged in from my main machine and everything works. I am using Chrome on Server 2019 and on my main machine that I use to connect I use Edge. If anyone has any other ideas on how to replicate this issue I will gladly test and see if we can get this resolved.
I would start with reinstalling or updating your video card drivers and making sure DirectX is installed / not corrupted.
For those that have this issue can you click on "Start" or "Search" then type "dxdiag" and run it. If you can please post a screen capture of the System & Display tab.
I'm also going to place suspicion on the Powershell version. That, or the GPU driver.
If I don't remember wrong, the case was like this:
Here is the DxDiag output:
------------------
System Information
------------------
Time of this report: 6/21/2021, 09:31:12
Operating System: Windows 10 Enterprise 64-bit (10.0, Build 17763) (17763.rs5_release.180914-1434)
Language: Turkish (Regional Setting: Turkish)
System Manufacturer: LENOVO
BIOS: N2HET58W (1.41 ) (type: UEFI)
Processor: Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz (8 CPUs), ~2.1GHz
Memory: 16384MB RAM
Available OS Memory: 16124MB RAM
Page File: 14657MB used, 12219MB available
Windows Dir: C:\windows
DirectX Version: DirectX 12
DX Setup Parameters: Not found
User DPI Setting: 120 DPI (125 percent)
System DPI Setting: 144 DPI (150 percent)
DWM DPI Scaling: UnKnown
Miracast: Available, with HDCP
Microsoft Graphics Hybrid: Not Supported
DxDiag Version: 10.00.17763.0001 64bit Unicode
------------
DxDiag Notes
------------
Display Tab 1: No problems found.
Sound Tab 1: No problems found.
Input Tab: No problems found.
--------------------
DirectX Debug Levels
--------------------
Direct3D: 0/4 (retail)
DirectDraw: 0/4 (retail)
DirectInput: 0/5 (retail)
DirectMusic: 0/5 (retail)
DirectPlay: 0/9 (retail)
DirectSound: 0/5 (retail)
DirectShow: 0/6 (retail)
---------------
Display Devices
---------------
Card name: Intel(R) UHD Graphics 620
Manufacturer: Intel Corporation
Chip type: Intel(R) UHD Graphics Family
DAC type: Internal
Device Type: Full Device (POST)
Device Key: Enum\PCI\VEN_8086&DEV_3EA0&SUBSYS_229217AA&REV_02
Device Status: 0180200A [DN_DRIVER_LOADED|DN_STARTED|DN_DISABLEABLE|DN_NT_ENUMERATOR|DN_NT_DRIVER]
Device Problem Code: No Problem
Driver Problem Code: Unknown
Display Memory: 8190 MB
Dedicated Memory: 128 MB
Shared Memory: 8062 MB
Current Mode: 1920 x 1080 (32 bit) (60Hz)
HDR Support: Unknown
Display Topology: Internal
Display Color Space: DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Color Primaries: Red(0.000000,0.000000), Green(0.000000,0.000000), Blue(0.000000,0.000000), White Point(0.000000,0.000000)
Display Luminance: Min Luminance = 0.000000, Max Luminance = 0.000000, MaxFullFrameLuminance = 0.000000
Driver Name: C:\windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_f4adeb80f59beec6\igdumdim64.dll,C:\windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_f4adeb80f59beec6\igd10iumd64.dll,C:\windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_f4adeb80f59beec6\igd10iumd64.dll,C:\windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_f4adeb80f59beec6\igd12umd64.dll
Driver File Version: 27.20.0100.8729 (English)
Driver Version: 27.20.100.8729
DDI Version: 12
Feature Levels: 12_1,12_0,11_1,11_0,10_1,10_0,9_3,9_2,9_1
Driver Model: WDDM 2.5
Graphics Preemption: Triangle
Compute Preemption: Thread
Miracast: Supported
Hybrid Graphics GPU: Integrated
Power P-states: Not Supported
Virtualization: Paravirtualization
Block List: No Blocks
Catalog Attributes: Universal:False Declarative:True
Driver Attributes: Final Retail
Driver Date/Size: 11.09.2020 03:00:00, 1465280 bytes
WHQL Logo'd: Yes
WHQL Date Stamp: Unknown
Device Identifier: {D7B78E66-7DE0-11CF-0356-F602B9C2D635}
Vendor ID: 0x8086
Device ID: 0x3EA0
SubSys ID: 0x229217AA
Revision ID: 0x0002
Driver Strong Name: oem90.inf:5f63e5345b9625c8:iWHL_w10_DS:27.20.100.8729:PCI\VEN_8086&DEV_3EA0&SUBSYS_229217AA
Rank Of Driver: 00CF0001
Video Accel: ModeMPEG2_A ModeMPEG2_C ModeWMV9_C ModeVC1_C
D3D9 Overlay: Supported
DXVA-HD: Supported
DDraw Status: Enabled
D3D Status: Enabled
AGP Status: Enabled
MPO MaxPlanes: 1
MPO Caps: Not Supported
MPO Stretch: Not Supported
MPO Media Hints: Not Supported
MPO Formats: Not Supported
PanelFitter Caps: Not Supported
PanelFitter Stretch: Not Supported
Extension Drivers:
Driver Name: C:\windows\System32\DriverStore\FileRepository\iigd_ext.inf_amd64_bc7901e05f10a373\iigd_ext.inf
Driver Version: 27.20.100.8729
Driver Date: 09/11/2020
Driver Provider: Intel Corporation
Catalog Attributes: Universal:N/A Declarative:True
Driver Name: C:\windows\System32\DriverStore\FileRepository\iigd_ext.inf_amd64_33471acad937ebdf\iigd_ext.inf
Driver Version: 27.20.100.8187
Driver Date: 04/17/2020
Driver Provider: Intel Corporation
Catalog Attributes: Universal:N/A Declarative:True
Component Drivers:
Driver Name: Unknown
Driver Version: Unknown
Driver Date: Unknown
Driver Provider: Unknown
Catalog Attributes: N/A
Driver Name: Unknown
Driver Version: Unknown
Driver Date: Unknown
Driver Provider: Unknown
Catalog Attributes: N/A
How about trying to launch the program after changing Windows to a different language (i.e. English), and then restarting? Not sure how localization would affect Powershell in this instance.
While I'm not convinced this will solve anything I do see that your graphics driver is 9 months old. Below is a link to updated drivers. I still think its a hardware / software rendering issue, but until I can replicate it I cant really do any in-depth analysis. I do have a spare laptop with Intel integrated graphics. Give me a bit and I will setup everything on that and see what happens. Thank you for the updated information.
@storaman @GeoWeb-Pro I was finally able to recreate the issue and tested a fix. My suggestion with adding the DisableHWAcceleration to the registry works. I will include screen grabs of before and after. Please make sure you are not mistyping anything and that you are in the right place.
Create a DWORD registry value DisableHWAcceleration at
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Avalon.Graphics
Then set it to 1 and restart your computer. This must be done on the machine running the plotter. Here are screen grabs to show you it works and to give visual aid of the instructions.
@MrPig91 possible to use some sort of detection and if needed force software rendering in the application? Much better than a global registry setting. Here are some useful links, hope these help.
SystemParameters.IsRemotelyControlled Property
SystemParameters.IsRemoteSession Property
How do you determine if WPF is using Hardware or Software Rendering?
@storaman @GeoWeb-Pro Any Update?
To be fair i got it working some how after quite a bit of google but not sure what worked might have ben the above
@storaman @GeoWeb-Pro I was finally able to recreate the issue and tested a fix. My suggestion with adding the DisableHWAcceleration to the registry works. I will include screen grabs of before and after. Please make sure you are not mistyping anything and that you are in the right place.
Create a DWORD registry value DisableHWAcceleration at
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Avalon.Graphics
Then set it to 1 and restart your computer. This must be done on the machine running the plotter. Here are screen grabs to show you it works and to give visual aid of the instructions.
Thanks for putting in the time to test this bug and find a fix, I just started using this tool recently and had this problem. I plot using 3 machines all controlled using a remote desktop suite and this issue came up after a while. Anyways, the registry edit did the trick. thanks again.
Hi,
When I run the Show-PSChiaPlotter command (as administrator and Policy as Bypass) I get this blank scrren.
If you need more information, I can provide.