Hi All,
I have no idea why this is happening. All of a sudden I am receiving the following exception when I run my App with the debugger attached:
08-08 12:11:58.490 D/SensorManager(11983): unregisterListener::
08-08 12:11:58.490 D/Sensors (11983): Remain listener = Sending .. normal delay 200ms
08-08 12:11:58.500 I/Sensors (11983): sendDelay --- 200000000
08-08 12:11:58.510 D/SensorManager(11983): JNI - sendDelay
08-08 12:11:58.510 I/SensorManager(11983): Set normal delay = true
08-08 12:11:58.580 W/IInputConnectionWrapper(11983): getCursorCapsMode on inactive InputConnection
08-08 12:11:58.620 W/IInputConnectionWrapper(11983): getSelectedText on inactive InputConnection
08-08 12:11:58.620 W/IInputConnectionWrapper(11983): setComposingText on inactive InputConnection
08-08 12:12:00.662 I/Choreographer(11983): Skipped 54 frames! The application may be doing too much work on its main thread.
08-08 12:12:00.692 D/BRCM_EGL(11983): eglMakeCurrent(0x521f1228, 0x55258f38, 0x55258f38) Thread: 11983
08-08 12:12:00.692 D/BRCM_EGL(11983): eglMakeCurrent(NULL) Thread: 11983
08-08 12:12:00.692 D/BRCM_EGL(11983): eglMakeCurrent(0x521f1228, 0x532e13d0, 0x532e13d0) Thread: 11983
Resolved pending breakpoint at 'f:\SourceCode\Xamarin\MyApp\MyApp\MyApp\MyApp\ViewModels\LoginViewModel.cs:149,1' to void MyApp.ViewModels.LoginViewModel.ctor>b__2>d__d.MoveNext () [0x00021].
08-08 12:12:02.834 F/ (11983): * Assertion at /Users/builder/data/lanes/monodroid-mlion-monodroid-4.14-series/a5d57087/source/mono/mono/mini/debugger-agent.c:7703, condition `mono_error_ok (&error)' not met
08-08 12:12:02.834 E/mono-rt (11983): Stacktrace:
08-08 12:12:02.834 E/mono-rt (11983):
08-08 12:12:02.834 E/mono-rt (11983):
08-08 12:12:02.834 E/mono-rt (11983): =================================================================
08-08 12:12:02.834 E/mono-rt (11983): Got a SIGSEGV while executing native code. This usually indicates
08-08 12:12:02.834 E/mono-rt (11983): a fatal error in the mono runtime or one of the native libraries
08-08 12:12:02.834 E/mono-rt (11983): used by your application.
08-08 12:12:02.834 E/mono-rt (11983): =================================================================
08-08 12:12:02.834 E/mono-rt (11983):
08-08 12:12:02.834 F/libc (11983): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 12003 (tdata.MyApp)
The program 'Mono' has exited with code 0 (0x0).
What's interesting is that the App doesn't crash when I run it on the device as a Debug build, but without the Debugger attached. I have turned off linking on my Android Project (via Project Properties -> Android Options) and setting the Linking Drop down list to None, but the issue has continued.
Now the scenario is that I have 2 Xamarin Forms (Login and T&Cs). When the user logs in successfully, they are presented with the T&C's form, from which they click the Accept or Decline buttons. This issue sometimes happens when the Login button is clicked on the Login Form, and sometimes it happens when the Accept/ Decline buttons are clicked on the T&Cs Form. These buttons are bound to view Models using the Command Binding as follows:
<Button Text="Login"
TextColor="{x:Static resources:ColourResources.ButtonTextColour}" BackgroundColor ="#77D065" HeightRequest="50" HorizontalOptions="FillAndExpand" WidthRequest="35" Font="{x:Static resources:FontResources.Medium}" Command="{Binding LoginCommand}"/>
<Button Text="Accept" Grid.Row="0" Grid.Column="0"
TextColor="{x:Static resources:ColourResources.ButtonTextColour}" VerticalOptions="Center" BackgroundColor ="#77D065" HeightRequest="50" HorizontalOptions="FillAndExpand" WidthRequest="35" Font="{x:Static resources:FontResources.Medium}" Command="{Binding AcceptCommand}"/>
and the commands are defined in the ViewModel as:
this.LoginCommand = new Command(async () =>
{
/// Do Login stuff like display T&C's
});
this.AcceptCommand = new Command(() =>
{
///Do stuff
});
How do I get to the bottom of this? I can't think of any code that has changed in relation to these for over a week. I updated to Xamarin Xamarin 3.3.47.0 (0b2a123923812a88ed3091909478dbe9e0111f00) yesterday and this is the first time I have tried the Login code since then, so I am wondering if it has something to do with this? The debugger seems to have no issue when debugging code in my Android project, just within the PCL.
Any help would be appreciated.
Thanks