Skip to content

Use LECPython on Raspberry Pi 5 : Fatal error #1

@yuguoups

Description

@yuguoups

Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at System.Globalization.CultureInfo.get_CurrentCulture()
at System.Convert.ChangeType(System.Object, System.Type)
at N6MajIjsXlrNn2FKE45N.YSXjAfTElbZ(System.Object, System.Type, N6MajIjsXlrNn2FKE45N)
at LECPythonLib.DeviceProfinetCommunication.Y09s9mRtoB[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]
at LECPythonLib.DeviceProfinetCommunication.WriteNodeValues(HslCommunication.Core.IReadWriteNet, System.String, System.String, System.Object[])
at DynamicClass.InvokeStub_DeviceProfinetCommunication.WriteNodeValues(System.Object, System.Span`1<System.Object>)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
at Python.Runtime.MethodBinder.Invoke(Python.Runtime.BorrowedReference, Python.Runtime.BorrowedReference, Python.Runtime.BorrowedReference, System.Reflection.MethodBase, System.Reflection.MethodBase[])
at Python.Runtime.MethodObject.Invoke(Python.Runtime.BorrowedReference, Python.Runtime.BorrowedReference, Python.Runtime.BorrowedReference, System.Reflection.MethodBase)
at Python.Runtime.MethodBinding.tp_call(Python.Runtime.BorrowedReference, Python.Runtime.BorrowedReference, Python.Runtime.BorrowedReference)

当我连续调用写入(WriteNodeValues)操作时,顺序执行,也不存在多线程竞争问题,就会在第三次调用之后出现这个报错。请问是什么原因导致的?
When I continuously call the write operation (WriteNodeValues), which is executed sequentially and there is no issue of multithreaded competition, this error will occur after the third call. Could you please tell me what causes this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions