You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey! I'm starting to use Plugin.BLE and I wrote a simple program to scan BLE devices, but for some reason it crashes when I start to find devices (await Adapter.StartScanningForDevicesAsync( );)
Thanks in advance for any clues that help me solve it.
Yours sincerely
Steps to reproduce
using Plugin.BLE;
using Plugin.BLE.Abstractions.Contracts;
using System.Collections.ObjectModel;
using Debug = System.Diagnostics.Debug;
System.BadImageFormatException: Read out of bounds.
Crashlog
[OpenGLRenderer] Davey! duration=4664ms; Flags=0, FrameTimelineVsyncId=28142, IntendedVsync=2140444609546, Vsync=2145094609360, InputEventId=-539398772, HandleInputStart=2145100340013, AnimationStart=2145101394752, PerformTraversalsStart=2145102048086, DrawStart=2145102496471, FrameDeadline=2140477942878, FrameInterval=2145100204179, FrameStartTime=16666666, SyncQueued=2145103465898, SyncStart=2145103858294, IssueDrawCommandsStart=2145103927825, SwapBuffers=2145104553502, FrameCompleted=2145109194961, DequeueBufferDuration=18073, QueueBufferDuration=1429843, GpuCompleted=2145109194961, SwapBuffersCompleted=2145106315534, DisplayPresentTime=-5476376617024650016,
Read out of bounds.
System.BadImageFormatException: Read out of bounds.
at System.Reflection.Throw.OutOfBounds()
at System.Reflection.Metadata.Ecma335.MethodDebugInformationTableReader.GetDocument(MethodDebugInformationHandle handle)
at Mono.Debugging.Soft.PortablePdbData.GetDebugInfoFromPdb(MethodMirror method) in D:\a_work\1\s\External\debugger-libs\Mono.Debugging.Soft\PortablePdbData.cs:line 186
at Mono.Debugging.Soft.SoftDebuggerBacktrace.CreateStackFrame(StackFrame frame, Int32 frameIndex) in D:\a_work\1\s\External\debugger-libs\Mono.Debugging.Soft\SoftDebuggerBacktrace.cs:line 157
at Mono.Debugging.Soft.SoftDebuggerBacktrace.GetStackFrames(Int32 firstIndex, Int32 lastIndex) in D:\a_work\1\s\External\debugger-libs\Mono.Debugging.Soft\SoftDebuggerBacktrace.cs:line 128
at Mono.Debugging.Client.Backtrace.GetFrame(Int32 index, Int32 fetchMultipleCount) in D:\a_work\1\s\External\debugger-libs\Mono.Debugging\Mono.Debugging.Client\Backtrace.cs:line 61
at Mono.Debugging.Client.Backtrace..ctor(IBacktrace serverBacktrace) in D:\a_work\1\s\External\debugger-libs\Mono.Debugging\Mono.Debugging.Client\Backtrace.cs:line 27
at Mono.Debugging.Soft.SoftDebuggerSession.HandleBreakEventSet(Event[] es, Boolean dequeuing) in D:\a_work\1\s\External\debugger-libs\Mono.Debugging.Soft\SoftDebuggerSession.cs:line 2186
at Mono.Debugging.Soft.SoftDebuggerSession.EventHandler() in D:\a_work\1\s\External\debugger-libs\Mono.Debugging.Soft\SoftDebuggerSession.cs:line 1802
Configuration
**Version of the Plugin:**3.0.0
Platform: Android 12.0 API 31
Device: Samsung SM-M515F
The text was updated successfully, but these errors were encountered:
I'm the friendly issue checker.
Thanks for using the issue template 🌟
I appreciate it very much. I'm sure, the maintainers of this repository will answer, soon.
The exception that is thrown when the file image of a dynamic link library (DLL) or an executable program is invalid.
So you're doing something weird, apparently. Maybe the above page helps you to understand why this happens. I strongly doubt that this is caused by Plugin.BLE and I'm afraid we cannot help you much here ...
Hey! I'm starting to use Plugin.BLE and I wrote a simple program to scan BLE devices, but for some reason it crashes when I start to find devices (await Adapter.StartScanningForDevicesAsync( );)
Thanks in advance for any clues that help me solve it.
Yours sincerely
Steps to reproduce
using Plugin.BLE;
using Plugin.BLE.Abstractions.Contracts;
using System.Collections.ObjectModel;
using Debug = System.Diagnostics.Debug;
namespace MauiAppBLEV1;
public partial class MainPage : ContentPage
{
Expected behavior
Get the list of BLE devices
Actual behavior
System.BadImageFormatException: Read out of bounds.
Crashlog
[OpenGLRenderer] Davey! duration=4664ms; Flags=0, FrameTimelineVsyncId=28142, IntendedVsync=2140444609546, Vsync=2145094609360, InputEventId=-539398772, HandleInputStart=2145100340013, AnimationStart=2145101394752, PerformTraversalsStart=2145102048086, DrawStart=2145102496471, FrameDeadline=2140477942878, FrameInterval=2145100204179, FrameStartTime=16666666, SyncQueued=2145103465898, SyncStart=2145103858294, IssueDrawCommandsStart=2145103927825, SwapBuffers=2145104553502, FrameCompleted=2145109194961, DequeueBufferDuration=18073, QueueBufferDuration=1429843, GpuCompleted=2145109194961, SwapBuffersCompleted=2145106315534, DisplayPresentTime=-5476376617024650016,
Read out of bounds.
System.BadImageFormatException: Read out of bounds.
at System.Reflection.Throw.OutOfBounds()
at System.Reflection.Metadata.Ecma335.MethodDebugInformationTableReader.GetDocument(MethodDebugInformationHandle handle)
at Mono.Debugging.Soft.PortablePdbData.GetDebugInfoFromPdb(MethodMirror method) in D:\a_work\1\s\External\debugger-libs\Mono.Debugging.Soft\PortablePdbData.cs:line 186
at Mono.Debugging.Soft.SoftDebuggerBacktrace.CreateStackFrame(StackFrame frame, Int32 frameIndex) in D:\a_work\1\s\External\debugger-libs\Mono.Debugging.Soft\SoftDebuggerBacktrace.cs:line 157
at Mono.Debugging.Soft.SoftDebuggerBacktrace.GetStackFrames(Int32 firstIndex, Int32 lastIndex) in D:\a_work\1\s\External\debugger-libs\Mono.Debugging.Soft\SoftDebuggerBacktrace.cs:line 128
at Mono.Debugging.Client.Backtrace.GetFrame(Int32 index, Int32 fetchMultipleCount) in D:\a_work\1\s\External\debugger-libs\Mono.Debugging\Mono.Debugging.Client\Backtrace.cs:line 61
at Mono.Debugging.Client.Backtrace..ctor(IBacktrace serverBacktrace) in D:\a_work\1\s\External\debugger-libs\Mono.Debugging\Mono.Debugging.Client\Backtrace.cs:line 27
at Mono.Debugging.Soft.SoftDebuggerSession.HandleBreakEventSet(Event[] es, Boolean dequeuing) in D:\a_work\1\s\External\debugger-libs\Mono.Debugging.Soft\SoftDebuggerSession.cs:line 2186
at Mono.Debugging.Soft.SoftDebuggerSession.EventHandler() in D:\a_work\1\s\External\debugger-libs\Mono.Debugging.Soft\SoftDebuggerSession.cs:line 1802
Configuration
**Version of the Plugin:**3.0.0
Platform: Android 12.0 API 31
Device: Samsung SM-M515F
The text was updated successfully, but these errors were encountered: