ITADN

System.ArgumentOutOfRangeException: 该值必须大于或等于零,且必须小于控制台缓冲区在该维度的大小。

#5143Open2172635904 创建于 2026-05-10
Needs-Triage :mag:
2
2172635904commented
### Prerequisites - [x] Write a descriptive title. - [x] Make sure you are able to repro it on the [latest released version](https://www.powershellgallery.com/packages/PSReadLine) - [x] Search the existing issues, especially the pinned issues. ### Exception report ```console 哎呀,出现问题。请在报告此 Bug 时添加以下详细信息。 在 GitHub 上报告: https://github.com/lzybkr/PSReadLine/issues/new ----------------------------------------------------------------------- 上 1 个密钥: & 异常: System.ArgumentOutOfRangeException: 该值必须大于或等于零,且必须小于控制台缓冲区在该维度的大小。 参数名: left 实际值是 -2。 在 System.Console.SetCursorPosition(Int32 left, Int32 top) 在 Microsoft.PowerShell.Internal.VirtualTerminal.set_CursorLeft(Int32 value) 在 Microsoft.PowerShell.PSConsoleReadLine.ForceRender() 在 Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c) 在 Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable`1 key, Object arg) 在 Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg) 在 Microsoft.PowerShell.PSConsoleReadLine.InputLoop() 在 Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics) ----------------------------------------------------------------------- PS C:\Users\21726\Desktop\123> & D:/python3.9.13/python.exe c:/Users/21726/Desktop/123/1.py { "acc": "0", "gapps": "1", "Serialno": "", "mmuid": "", "isRoot": "0", "screen": "720x1544", "device_type": "android", "hw": "bad66bc55598d11eff31246014c99c87", "osversion_int": "28", "RAMSize": "3824400", "password": "", "current_wifi": "02:00:00:00:00:00", "model": "PDBM00", "lat": "0", "androidId": "be0674ffa006f391", "_uid_": "9708226442d12a076e26b85afc51d44a", "phone_type": "CDMA", "lng": "0", "CpuInfo": "0-7", "MacInfo": "02:00:00:00:00:00", "utdid": "DVxv0cRSEQVVwmK24FZSZYfN", "_iid": "f64905d46be6cf1d7719ea030bae5cd9", "version": "9565", "apksign": "4f3a531caff3e37c278659cc78bfaecc", "_net_": "wifi", "KernelVersion": "", "router_mac": "02:00:00:00:00:00", "network_class": "wifi", "SerialNumber": "IUXV42PV9N89OENR", "smscode": "123456", "sensorNames": "G1$T1$L1$A1$M1$D1$W0$P0$Qe0$vb0$1$2c51857ff32ea2ff96a80d7e1004d6e5", "BootSerialno": "", "buildnumber": "PPR1.180610.011/1641904128", "imsi": "unknown", "emu": "04f776dd01a654bf8ed1cccfc3ef09cc", "mac": "02:00:00:00:00:00", "manufacture": "OPPO", "rom": "9", "uid": "9708226442d12a076e26b85afc51d44a", "BaseBandVersion": "", "market_source": "14", "etype": "2", "oaid": "57525987-fb75-e4c5-c326-aa2a45720bec", "phone_netWork": "0", "dpp": "d41c29e38a598687133c03b9ec8bde22", "bindSource": "bind_source_login", "_uidType": "androidid", "imei": "0123897077241", "account": "+8613800138000" } ``` ### Screenshot 哎呀,出现问题。请在报告此 Bug 时添加以下详细信息。 在 GitHub 上报告: https://github.com/lzybkr/PSReadLine/issues/new ----------------------------------------------------------------------- 上 1 个密钥: & 异常: System.ArgumentOutOfRangeException: 该值必须大于或等于零,且必须小于控制台缓冲区在该维度的大小。 参数名: left 实际值是 -2。 在 System.Console.SetCursorPosition(Int32 left, Int32 top) 在 Microsoft.PowerShell.Internal.VirtualTerminal.set_CursorLeft(Int32 value) 在 Microsoft.PowerShell.PSConsoleReadLine.ForceRender() 在 Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c) 在 Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable`1 key, Object arg) 在 Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg) 在 Microsoft.PowerShell.PSConsoleReadLine.InputLoop() 在 Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics) ----------------------------------------------------------------------- PS C:\Users\21726\Desktop\123> & D:/python3.9.13/python.exe c:/Users/21726/Desktop/123/1.py { "acc": "0", "gapps": "1", "Serialno": "", "mmuid": "", "isRoot": "0", "screen": "720x1544", "device_type": "android", "hw": "bad66bc55598d11eff31246014c99c87", "osversion_int": "28", "RAMSize": "3824400", "password": "", "current_wifi": "02:00:00:00:00:00", "model": "PDBM00", "lat": "0", "androidId": "be0674ffa006f391", "_uid_": "9708226442d12a076e26b85afc51d44a", "phone_type": "CDMA", "lng": "0", "CpuInfo": "0-7", "MacInfo": "02:00:00:00:00:00", "utdid": "DVxv0cRSEQVVwmK24FZSZYfN", "_iid": "f64905d46be6cf1d7719ea030bae5cd9", "version": "9565", "apksign": "4f3a531caff3e37c278659cc78bfaecc", "_net_": "wifi", "KernelVersion": "", "router_mac": "02:00:00:00:00:00", "network_class": "wifi", "SerialNumber": "IUXV42PV9N89OENR", "smscode": "123456", "sensorNames": "G1$T1$L1$A1$M1$D1$W0$P0$Qe0$vb0$1$2c51857ff32ea2ff96a80d7e1004d6e5", "BootSerialno": "", "buildnumber": "PPR1.180610.011/1641904128", "imsi": "unknown", "emu": "04f776dd01a654bf8ed1cccfc3ef09cc", "mac": "02:00:00:00:00:00", "manufacture": "OPPO", "rom": "9", "uid": "9708226442d12a076e26b85afc51d44a", "BaseBandVersion": "", "market_source": "14", "etype": "2", "oaid": "57525987-fb75-e4c5-c326-aa2a45720bec", "phone_netWork": "0", "dpp": "d41c29e38a598687133c03b9ec8bde22", "bindSource": "bind_source_login", "_uidType": "androidid", "imei": "0123897077241", "account": "+8613800138000" } ### Environment data ```console 上 1 个密钥: & 异常: System.ArgumentOutOfRangeException: 该值必须大于或等于零,且必须小于控制台缓冲区在该维度的大小。 参数名: left 实际值是 -2。 在 System.Console.SetCursorPosition(Int32 left, Int32 top) 在 Microsoft.PowerShell.Internal.VirtualTerminal.set_CursorLeft(Int32 value) 在 Microsoft.PowerShell.PSConsoleReadLine.ForceRender() 在 Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c) 在 Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable`1 key, Object arg) 在 Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg) 在 Microsoft.PowerShell.PSConsoleReadLine.InputLoop() 在 Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics) ``` ### Steps to reproduce 哎呀,出现问题。请在报告此 Bug 时添加以下详细信息。 在 GitHub 上报告: https://github.com/lzybkr/PSReadLine/issues/new ----------------------------------------------------------------------- 上 1 个密钥: & 异常: System.ArgumentOutOfRangeException: 该值必须大于或等于零,且必须小于控制台缓冲区在该维度的大小。 参数名: left 实际值是 -2。 在 System.Console.SetCursorPosition(Int32 left, Int32 top) 在 Microsoft.PowerShell.Internal.VirtualTerminal.set_CursorLeft(Int32 value) 在 Microsoft.PowerShell.PSConsoleReadLine.ForceRender() 在 Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c) 在 Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable`1 key, Object arg) 在 Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg) 在 Microsoft.PowerShell.PSConsoleReadLine.InputLoop() 在 Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics) ----------------------------------------------------------------------- PS C:\Users\21726\Desktop\123> & D:/python3.9.13/python.exe c:/Users/21726/Desktop/123/1.py { "acc": "0", "gapps": "1", "Serialno": "", "mmuid": "", "isRoot": "0", "screen": "720x1544", "device_type": "android", "hw": "bad66bc55598d11eff31246014c99c87", "osversion_int": "28", "RAMSize": "3824400", "password": "", "current_wifi": "02:00:00:00:00:00", "model": "PDBM00", "lat": "0", "androidId": "be0674ffa006f391", "_uid_": "9708226442d12a076e26b85afc51d44a", "phone_type": "CDMA", "lng": "0", "CpuInfo": "0-7", "MacInfo": "02:00:00:00:00:00", "utdid": "DVxv0cRSEQVVwmK24FZSZYfN", "_iid": "f64905d46be6cf1d7719ea030bae5cd9", "version": "9565", "apksign": "4f3a531caff3e37c278659cc78bfaecc", "_net_": "wifi", "KernelVersion": "", "router_mac": "02:00:00:00:00:00", "network_class": "wifi", "SerialNumber": "IUXV42PV9N89OENR", "smscode": "123456", "sensorNames": "G1$T1$L1$A1$M1$D1$W0$P0$Qe0$vb0$1$2c51857ff32ea2ff96a80d7e1004d6e5", "BootSerialno": "", "buildnumber": "PPR1.180610.011/1641904128", "imsi": "unknown", "emu": "04f776dd01a654bf8ed1cccfc3ef09cc", "mac": "02:00:00:00:00:00", "manufacture": "OPPO", "rom": "9", "uid": "9708226442d12a076e26b85afc51d44a", "BaseBandVersion": "", "market_source": "14", "etype": "2", "oaid": "57525987-fb75-e4c5-c326-aa2a45720bec", "phone_netWork": "0", "dpp": "d41c29e38a598687133c03b9ec8bde22", "bindSource": "bind_source_login", "_uidType": "androidid", "imei": "0123897077241", "account": "+8613800138000" } ### Expected behavior 哎呀,出现问题。请在报告此 Bug 时添加以下详细信息。 在 GitHub 上报告: https://github.com/lzybkr/PSReadLine/issues/new ----------------------------------------------------------------------- 上 1 个密钥: & 异常: System.ArgumentOutOfRangeException: 该值必须大于或等于零,且必须小于控制台缓冲区在该维度的大小。 参数名: left 实际值是 -2。 在 System.Console.SetCursorPosition(Int32 left, Int32 top) 在 Microsoft.PowerShell.Internal.VirtualTerminal.set_CursorLeft(Int32 value) 在 Microsoft.PowerShell.PSConsoleReadLine.ForceRender() 在 Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c) 在 Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable`1 key, Object arg) 在 Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg) 在 Microsoft.PowerShell.PSConsoleReadLine.InputLoop() 在 Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics) ----------------------------------------------------------------------- PS C:\Users\21726\Desktop\123> & D:/python3.9.13/python.exe c:/Users/21726/Desktop/123/1.py { "acc": "0", "gapps": "1", "Serialno": "", "mmuid": "", "isRoot": "0", "screen": "720x1544", "device_type": "android", "hw": "bad66bc55598d11eff31246014c99c87", "osversion_int": "28", "RAMSize": "3824400", "password": "", "current_wifi": "02:00:00:00:00:00", "model": "PDBM00", "lat": "0", "androidId": "be0674ffa006f391", "_uid_": "9708226442d12a076e26b85afc51d44a", "phone_type": "CDMA", "lng": "0", "CpuInfo": "0-7", "MacInfo": "02:00:00:00:00:00", "utdid": "DVxv0cRSEQVVwmK24FZSZYfN", "_iid": "f64905d46be6cf1d7719ea030bae5cd9", "version": "9565", "apksign": "4f3a531caff3e37c278659cc78bfaecc", "_net_": "wifi", "KernelVersion": "", "router_mac": "02:00:00:00:00:00", "network_class": "wifi", "SerialNumber": "IUXV42PV9N89OENR", "smscode": "123456", "sensorNames": "G1$T1$L1$A1$M1$D1$W0$P0$Qe0$vb0$1$2c51857ff32ea2ff96a80d7e1004d6e5", "BootSerialno": "", "buildnumber": "PPR1.180610.011/1641904128", "imsi": "unknown", "emu": "04f776dd01a654bf8ed1cccfc3ef09cc", "mac": "02:00:00:00:00:00", "manufacture": "OPPO", "rom": "9", "uid": "9708226442d12a076e26b85afc51d44a", "BaseBandVersion": "", "market_source": "14", "etype": "2", "oaid": "57525987-fb75-e4c5-c326-aa2a45720bec", "phone_netWork": "0", "dpp": "d41c29e38a598687133c03b9ec8bde22", "bindSource": "bind_source_login", "_uidType": "androidid", "imei": "0123897077241", "account": "+8613800138000" } ### Actual behavior 哎呀,出现问题。请在报告此 Bug 时添加以下详细信息。 在 GitHub 上报告: https://github.com/lzybkr/PSReadLine/issues/new ----------------------------------------------------------------------- 上 1 个密钥: & 异常: System.ArgumentOutOfRangeException: 该值必须大于或等于零,且必须小于控制台缓冲区在该维度的大小。 参数名: left 实际值是 -2。 在 System.Console.SetCursorPosition(Int32 left, Int32 top) 在 Microsoft.PowerShell.Internal.VirtualTerminal.set_CursorLeft(Int32 value) 在 Microsoft.PowerShell.PSConsoleReadLine.ForceRender() 在 Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c) 在 Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable`1 key, Object arg) 在 Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg) 在 Microsoft.PowerShell.PSConsoleReadLine.InputLoop() 在 Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics) ----------------------------------------------------------------------- PS C:\Users\21726\Desktop\123> & D:/python3.9.13/python.exe c:/Users/21726/Desktop/123/1.py { "acc": "0", "gapps": "1", "Serialno": "", "mmuid": "", "isRoot": "0", "screen": "720x1544", "device_type": "android", "hw": "bad66bc55598d11eff31246014c99c87", "osversion_int": "28", "RAMSize": "3824400", "password": "", "current_wifi": "02:00:00:00:00:00", "model": "PDBM00", "lat": "0", "androidId": "be0674ffa006f391", "_uid_": "9708226442d12a076e26b85afc51d44a", "phone_type": "CDMA", "lng": "0", "CpuInfo": "0-7", "MacInfo": "02:00:00:00:00:00", "utdid": "DVxv0cRSEQVVwmK24FZSZYfN", "_iid": "f64905d46be6cf1d7719ea030bae5cd9", "version": "9565", "apksign": "4f3a531caff3e37c278659cc78bfaecc", "_net_": "wifi", "KernelVersion": "", "router_mac": "02:00:00:00:00:00", "network_class": "wifi", "SerialNumber": "IUXV42PV9N89OENR", "smscode": "123456", "sensorNames": "G1$T1$L1$A1$M1$D1$W0$P0$Qe0$vb0$1$2c51857ff32ea2ff96a80d7e1004d6e5", "BootSerialno": "", "buildnumber": "PPR1.180610.011/1641904128", "imsi": "unknown", "emu": "04f776dd01a654bf8ed1cccfc3ef09cc", "mac": "02:00:00:00:00:00", "manufacture": "OPPO", "rom": "9", "uid": "9708226442d12a076e26b85afc51d44a", "BaseBandVersion": "", "market_source": "14", "etype": "2", "oaid": "57525987-fb75-e4c5-c326-aa2a45720bec", "phone_netWork": "0", "dpp": "d41c29e38a598687133c03b9ec8bde22", "bindSource": "bind_source_login", "_uidType": "androidid", "imei": "0123897077241", "account": "+8613800138000" }
5 条评论