condition 'klass' not met when loading my page - xamarin.forms

When I start my app on iPhone with a synchronized mac with visual studio 2019, I get the error :
error: * Assertion at ../../../../../mono/metadata/class-init.c:4109, condition `klass' not met
I assume it is related to my page because it crashes at the MainPage = new myPage(); in App.cs.
I can add the whole error print if required.
Any help ?
Edit : a few more informations about the code :
The page's constructor does the following :
InitializeComponent();
A database call using WebRequest, StreamWriter, WebResponse
Uses JObject to parse the anwser and update some Label
Add Grid to my Layout : The Grid is using :
AbsoluteLayout, StackLayout, Frame, TapGestureRecognizer, Image, Button, Label
The xaml :
<ContentPage.Content>
<StackLayout x:Name="stackMainWrapper"
BackgroundColor="White">
<StackLayout x:Name="stackPageHeader"
Padding="20,10,20,0" >
<StackLayout x:Name="stackHeaderNavigation"
Orientation="Horizontal">
<myApp:SvgIcon x:Name="svgBtnUser"
ResourceId="myApp.assets.icons.svg.menu.svg"
WidthRequest="25"
Margin="0,0,10,0"
VerticalOptions="Center">
<myApp:SvgIcon.GestureRecognizers>
<TapGestureRecognizer Tapped="GoToMenu" />
</myApp:SvgIcon.GestureRecognizers>
</myApp:SvgIcon>
<Label x:Name="labelPageName"
Text=""
Style="{StaticResource TitleLabelStyle}"
VerticalOptions="Center" />
<Button x:Name="btncreate"
Text=""
Style="{StaticResource ButtonRegularBlue}"
Margin="0,10"
Clicked=""
HorizontalOptions="EndAndExpand"/>
<myApp:SvgIcon x:Name="svgBtnFilterResults"
ResourceId="myApp.assets.icons.svg.search.svg"
WidthRequest="25"
Margin="10,0,0,0"
CornerRadius="50"
Padding="10,0"
IsVisible="False"
BackgroundColor="{StaticResource LightGreyStyled}"
HorizontalOptions="End"
VerticalOptions="Center">
<myApp:SvgIcon.GestureRecognizers>
<TapGestureRecognizer
Tapped="BtnFilterResults_Clicked" />
</myApp:SvgIcon.GestureRecognizers>
</myApp:SvgIcon>
</StackLayout>
</StackLayout>
<controls:ShadowLine />
<ScrollView x:Name="scrollPageBody"
Margin="0">
<StackLayout x:Name="PageBody"
Padding="20" >
<Label x:Name=""
Text=""
Style="{StaticResource RegularLabelStyle}"
HorizontalTextAlignment="Center"
Margin="0,0,0,20"/>
</StackLayout>
</ScrollView>
</StackLayout>
</ContentPage.Content>
</ContentPage>
Edit : Adding the exception trace :
2019-06-13 11:25:52.743 myapp.iOS[682:181626] error: * Assertion at
../../../../../mono/metadata/class-init.c:4109, condition `klass' not
met
================================================================= Native Crash Reporting
================================================================= Got a SIGABRT while executing native code. This usually indicates a fatal
error in the mono runtime or one of the native libraries used by your
application.
================================================================= Basic Fault Adddress Reporting
================================================================= Memory around native instruction pointer (0x1d3bb20dc):0x1d3bb20cc fd
7b c1 a8 c0 03 5f d6 10 29 80 d2 01 10 00 d4 .{...._..)......
0x1d3bb20dc c3 00 00 54 fd 7b bf a9 fd 03 00 91 55 d6 ff 97
...T.{......U...
0x1d3bb20ec bf 03 00 91 fd 7b c1 a8 c0 03 5f d6 90 29 80 d2
.....{.. .._..).. 0x1d3bb20fc 01 10 00 d4 c3 00 00 54 fd 7b bf a9 fd
03 00 91 .......T.{.... ..
================================================================= Native stacktrace:
================================================================= 0x1005752fc -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: (null) 0x10056bc1c -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: (null) 0x1d3c259ec - /usr/lib/system/libsystem_platform.dylib :
0x1d3c2b094 - /usr/lib/system/libsystem_pthread.dylib :
0x1d3b0bea8 - /usr/lib/system/libsystem_c.dylib : abort
0x1006f1c7c -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_find_protocol_wrapper_type 0x1006d2018 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: mono_pmip 0x1006d20a4 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: mono_pmip 0x1005adc78 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: mono_pmip 0x100713638 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_ L'exécution de l'application est terminée.
localized_string_format_9 0x100710edc -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x100702b78 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x100706ad8 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x100706ad8 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x100703a80 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x100701e50 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x10057c294 -
/var/containers/Bundle/Applic
ation/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS :
mono_pmip 0x10061794c -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: mono_pmip 0x10061af84 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: mono_pmip 0x10047904c -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: (null) 0x100479844 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: (null) 0x2007d0594 -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
Échec de l'arrêt de l'application : An error occurred on
client IDB1610517 while executing a reply for topic
xvs/idb/16.1.0.517/stop-app 0x2007d5d20 -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
0x2000992dc -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
L'exécution de l'application est terminée. 0x2000a1874 -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
0x200098f60 -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
0x200099850 -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
0x200097b9c -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
0x200097864 -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
0x20009c3a4 -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
0x20009d188 -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
_performActionsWithDelayForTransitionContext 0x20009c25c - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
0x2007cee30 -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
0x2000a0f5c -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
0x2007d4328 -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
0x2003d0ba8 -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
0x1d69909fc -
/System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices
: 0x1d699a40c -
/System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices
: 0x1d6999c14 -
/System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices
: 0x1d3a557d4 - /usr/lib/system/libdispatch.dylib :
0x1d39fa5d8 - /usr/lib/system/libdispatch.dylib :
0x1d69cb040 -
/System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices
: 0x1d69cacdc -
/System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices
: 0x1d69cb294 -
/System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices
: 0x1d3fa7018 -
/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation :
0x1d3fa6f98 -
/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation :
0x1d3fa6880 -
/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation :
0x1d3fa17bc -
/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation :
0x1d3fa10b0 -
/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation :
CFRunLoopRunSpecific 0x1d61a179c -
/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
: GSEventRunModal 0x2007d7978 -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
UIApplicationMain 0x10071128c -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x10070343c -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x100703a80 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x100703a80 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x100703a80 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x100703a80 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x100701e50 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x10057c294 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: mono_pmip 0x10061794c -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/enVisit
4> at <0xffffffff> at
UIKit.UIApplication:UIApplicationMain <0x000bc> at
UIKit.UIApplication:Main <0x0002a> at UIKit.UIApplication:Main
<0x0006a> at myapp.iOS.Application:Main <0x00016> at
:runtime_invoke_direct_void_string[] <0x00082>
================================================================= e360.iOS.app/myapp.iOS : mono_pmip 0x10061cf68 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: mono_pmip 0x100560c64 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: (null) 0x100700be0 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x10052adfc -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: (null) 0x1d3a668e0 - /usr/lib/system/libdyld.dylib :
================================================================= Managed Stacktrace:
================================================================= at <0xffffffff> at myapp.App:.ctor <0x0002c> at
myapp.iOS.AppDelegate:FinishedLaunching <0x0006e> at
:runtime_invoke_direct_bool__this___UIApplication_NSDictionary
<0x000b

I managed to take apart the crashing code, and by uncommenting line after line to see what is breaking, apparently, using dynamic on Xamarin iOS make the app crash.
So well.. avoid using dynamic I guess...

You must initialize the page before assigning to mainPage.
MainPage = new myPage();

Related

Xamarin.forms ios Native Crash in custom ButtonRenderer

I updated Xamarin.forms package from nuget to 5.0.0.2244. The package has been updated both in common and iOS projects.
I created a custom renderer for a button element. The first lines of the renderer are:
[assembly: ExportRenderer(typeof(AppButton), typeof(AppButtonRenderer))]
namespace com.app.iOS.Renderers
{
public class AppButtonRenderer : ButtonRenderer
{
protected override void OnElementChanged(ElementChangedEventArgs<Button> e)
{
try
{
base.OnElementChanged(e);
Before the update, when execution executed base.OnElementChanged method everything has gone right, but now I'm getting a stack trace like the one following this issue. Same thing happens with Xamarin.Forms 5.0.0.2196. What's wrong?
Infos:
Visual Studio: 16.11.7
Thank you in advance
=================================================================
Native Crash Reporting
=================================================================
Got a segv while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
=================================================================
Native stacktrace:
=================================================================
0x1043f81e0 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_dump_native_crash_info
0x1043eec5c - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_handle_native_crash
0x1044aee08 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_runtime_invoke
0x10458a0e0 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : xamarin_invoke_trampoline
0x10458f9d4 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : xamarin_arch_trampoline
0x104590548 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : xamarin_arm64_common_trampoline
0x104591748 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : interp_runtime_invoke
0x1043fee70 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_jit_runtime_invoke
0x1044ab984 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_runtime_invoke_checked
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1abaa6180 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1abaa6544 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_jit_runtime_invoke
0x1044ab984 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_runtime_invoke_checked
0x1044aee08 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_runtime_invoke
0x10458a0e0 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : xamarin_invoke_trampoline
0x10458f9d4 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : xamarin_arch_trampoline
0x104590548 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : xamarin_arm64_common_trampoline
0x1abaa1958 -
0x10459dc04 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : do_icall
0x10459c2c4 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : do_icall_wrapper
0x1045931b8 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : interp_exec_method_full
0x1abaabbe0 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1abaac3a0 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ab98bddc - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ab991ea0 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1043fbbb8 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_sigsegv_signal_handler_debug
0x1f527c29c - /usr/lib/system/libsystem_platform.dylib : <redacted>
0x1aaa53d94 - /System/Library/Frameworks/Foundation.framework/Foundation : <redacted>
0x10459dc34 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : do_icall
0x10459c2c4 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : do_icall_wrapper
0x1045931b8 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : interp_exec_method_full
0x104591748 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : interp_runtime_invoke
0x1043fee70 - /private/var
0x10459db78 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : do_icall
0x10459c2c4 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : do_icall_wrapper
0x1045931b8 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : interp_exec_method_full
0x1ab98b664 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ab988984 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ac20fd7c - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ac20f444 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ac210348 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ac221888 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
e
0x104591748 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : interp_runtime_invoke
0x1043fee70 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_jit_runtime_invoke
0x1044ab984 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_runtime_invoke_checked
0x1044aee08 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_runtime_invoke
0x10458a0e0 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : xamarin_invoke_trampoline
0x10458f9d4 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : xamarin_arch_trampolin
0x104590548 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : xamarin_arm64_common_trampoline
0x1ac1caa08 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ac1cc49c - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ac1d25e8 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ab826598 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1abd8f634 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : _UIScenePerformActionsWithLifecycleActionMask
0x1ab827130 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ab826bf0 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ab826f40 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ab82677c - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ab82ecc0 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1abc9d04c - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1abda8444 - /System/Library/PrivateFrameworks/UIKitCore.framework/
UIKitCore : _UISceneSettingsDiffActionPerformChangesWithTransitionContext
0x1ab82e9b8 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ab6568a0 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ab655220 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ab6564c8 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ac1d0788 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1abcc66ac - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1b8d495d8 - /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices : <redacted>
0x1b8d74d44 - /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices : <redacted>
0x1b8d586a4 - /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices : <redacted>
0x1b8d74a0c - /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices : <redacted>
0x1a93da7ec - /usr/lib/system/libdispatch.dylib : <redacted>
0x1a93de2dc - /usr/lib/system/libdispatch.dylib : <redacted>
0x1b8d9cfa0 - /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices : <redacted>
0x1b8d9cc30 - /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices : <redacted>
0x1b8d9d184 - /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices : <redacted>
0x1a9767848 - /System/Library/Framewo
rks/CoreFoundation.framework/CoreFoundation : <redacted>
0x1a9767744 - /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation : <redacted>
0x1a9766ab4 - /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation : <redacted>
0x1a9760a28 - /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation : <redacted>
0x1a97601c0 - /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation : CFRunLoopRunSpecific
0x1c0d48734 - /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices : GSEventRunModal
0x1ac1ce7e4 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ac1d4054 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : UIApplicationMain
0x10459db90 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : do_icall
0x10459c2c4 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS
.app/Xamarin.PreBuilt.iOS : do_icall_wrapper
0x1045931b8 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : interp_exec_method_full
0x104591748 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : interp_runtime_invoke
0x1043fee70 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_jit_runtime_invoke
0x1044ab984 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_runtime_invoke_checked
0x1044b2000 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_runtime_try_invoke_array
0x10445b4f0 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.
==============================================================
Memory around native instruction pointer (0x1f527c640):0x1f527c630 21 00 05 8b 20 04 40 ac 21 80 00 91 42 00 05 cb !... .#.!...B...
0x1f527c640 02 0c 00 ac 42 00 01 f1 e9 00 00 54 60 04 00 ac ....B......T`...
0x1f527c650 63 80 00 91 20 04 40 ac 21 80 00 91 42 80 00 f1 c... .#.!...B...
0x1f527c660 68 ff ff 54 21 00 02 8b 22 0c 40 ac 60 04 00 ac h..T!...".#.`...
=================================================================
Managed Stacktrace:
=================================================================
at <unknown> <0xffffffff>
at ObjCRuntime.Messaging:void_objc_msgSend_IntPtr_UIntPtr <0x00022>
at Foundation.NSMutableData:AppendBytes <0x00054>
at Foundation.NSData:FromStream <0x0010c>
at Xamarin.Forms.Platform.iOS.EmbeddedFontLoader:LoadFont <0x00016>
at Xamarin.Forms.Internals.FontRegistrar:HasFont <0x0013e>
at Xamarin.Forms.Platform.iOS.FontExtensions:CleanseFontName <0x0000c>
at Xamarin.Forms.Platform.iO
0x00228>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement <0x00010>
at Xamarin.Forms.Platform.iOS.Platform:CreateRenderer <0x00080>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:OnChildAdded <0x00084>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:Load <0x0005a>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:SetElement <0x00228>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement <0x00010>
at Xamarin.Forms.Platform.iOS.Platform:CreateRenderer <0x00080>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:OnChildAdded <0x00084>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:Load <0x0005a>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:SetElement <0x00228>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement <0x00010>
at Xamarin.Forms.Platform.iOS.Platform:Cre
S.FontExtensions:_ToNativeFont <0x00124>
at System.Func`4:invoke_TResult_T1_T2_T3 <0x000ae>
at Xamarin.Forms.Platform.iOS.FontExtensions:ToNativeFont <0x000b4>
at Xamarin.Forms.Platform.iOS.FontExtensions:ToNativeFont <0x0005c>
at Xamarin.Forms.Platform.iOS.FontExtensions:ToUIFont <0x0000a>
at Xamarin.Forms.Platform.iOS.ButtonRenderer:UpdateFont <0x00022>
at Xamarin.Forms.Platform.iOS.ButtonRenderer:OnElementChanged <0x00150>
at com.v2home.v2AppTool.iOS.Renderers.AppButtonRenderer:OnElementChanged <0x00012>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:SetElement <0x002a2>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement <0x00010>
at Xamarin.Forms.Platform.iOS.Platform:CreateRenderer <0x00080>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:OnChildAdded <0x00084>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:Load <0x0005a>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:SetElement <
iOS.app/Xamarin.PreBuilt.iOS : ves_icall_InternalInvoke
0x10446b780 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : ves_icall_InternalInvoke_raw
0x10459db90 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : do_icall
0x10459c2c4 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : do_icall_wrapper
0x1045931b8 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : interp_exec_method_full
0x104591748 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : interp_runtime_invoke
0x1043fee70 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.
PreBuilt.iOS : mono_jit_runtime_invoke
0x1044ab984 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_runtime_invoke_checked
0x1044b0bf8 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_runtime_exec_main_checked
0x1043e3850 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_jit_exec
0x10458f814 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : xamarin_main
0x1043ab4cc - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : main
0x1a941ccf8 - /usr/lib/system/libdyld.dylib : <redacted>
=================================================================
Basic Fault Address Reporting
===
ateRenderer <0x00080>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:OnChildAdded <0x00084>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:Load <0x0005a>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:SetElement <0x00228>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement <0x00010>
at Xamarin.Forms.Platform.iOS.Platform:CreateRenderer <0x00080>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:OnChildAdded <0x00084>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:Load <0x0005a>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:SetElement <0x00228>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement <0x00010>
at Xamarin.Forms.Platform.iOS.Platform:CreateRenderer <0x00080>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:OnChildAdded <0x00084>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:Load <0x0005a>
at Xamari
006e>
at com.v2home.v2AppTool.iOS.AppDelegate:FinishedLaunching <0x0006e>
at <Module>:runtime_invoke_direct_bool__this___UIApplication_NSDictionary <0x000c8>
at <unknown> <0xffffffff>
at UIKit.UIApplication:UIApplicationMain <0x000b8>
at UIKit.UIApplication:Main <0x00054>
at com.v2home.v2AppTool.iOS.Application:Main <0x00012>
at <Module>:runtime_invoke_direct_void_string[] <0x00092>
at <unknown> <0xffffffff>
at System.Reflection.RuntimeMethodInfo:InternalInvoke <0x00030>
at System.Reflection.RuntimeMethodInfo:Invoke <0x000fc>
at System.Reflection.MethodBase:Invoke <0x0001a>
at Xamarin.iOS.HotRestart.Application:Run <0x001c8>
at Xamarin.PreBuilt.iOS.Applications:Main <0x0005a>
at <Module>:runtime_invoke_direct_void_string[] <0x00092>
=================================================================
n.Forms.Platform.iOS.PageRenderer:ViewDidLoad <0x0010c>
at System.Object:runtime_invoke_direct_void__this__ <0x0008e>
at <unknown> <0xffffffff>
at ObjCRuntime.Messaging:IntPtr_objc_msgSendSuper <0x0001a>
at UIKit.UIViewController:get_View <0x0006c>
at Xamarin.Forms.Platform.iOS.PageRenderer:get_NativeView <0x00016>
at Xamarin.Forms.Platform.iOS.PageRenderer:SetElement <0x00096>
at Xamarin.Forms.Platform.iOS.Platform:CreateRenderer <0x00080>
at Xamarin.Forms.Platform.iOS.Platform:AddChild <0x00052>
at Xamarin.Forms.Platform.iOS.Platform:WillAppear <0x00086>
at Xamarin.Forms.Platform.iOS.PlatformRenderer:ViewWillAppear <0x00040>
at <Module>:runtime_invoke_direct_void__this___bool <0x0009e>
at <unknown> <0xffffffff>
at ObjCRuntime.Messaging:void_objc_msgSend <0x0001a>
at UIKit.UIWindow:MakeKeyAndVisible <0x00038>
at Xamarin.Forms.Platform.iOS.FormsApplicationDelegate:SetMainPage <0x00022>
at Xamarin.Forms.Platform.iOS.FormsApplicationDelegate:FinishedLaunching <0x0
Update
The problem is the font reference in this class
[assembly: ExportFont("Orbitron-Bold.ttf", Alias = "OrbitronBold")]
namespace com.App.Controls
{
public class AppButton:Button
{
public AppButton()
{
}
}
}
When I comment the font reference everything works. What I've to understand now is what happened during the library update because the code is exactly the same as before.
Check my last comment

iOS13 app generated from Xcode 11.3 is crashing while launching if I download and install from testflight.In simulator app is working fine

The iOS app is working fine when we download and install from testflight if I generate that app from Xcode 9.1 and MacOS 10.13.6(High Sierra)and uploaded to testflight.I have opened the same code from Xcode 11.3 on latest MacOS Catalina and generated iPA and uploaded to the testflight using proper distribution certificate. I was able to download and install app but app is crashing during app launch.
Please suggest me what could be the reason for this issue. I am adding some app crash logs from my iPhone.
{"app_name":"XXXX","app_cohort":"2|date=1586433600000&sf=143467&tid=e7af489f4214d36d52f2f775602345e93b2fd4cfcc690cd6ff09b0e7262ffdd7&ttype=i","app_version":"1.2.5","timestamp":"2020-04-09 17:59:31.50 +0530","slice_uuid":"45d30e88-5b71-32e7-854b-dcc2a43f5d99","adam_id":586832868,"build_version":"424","bundleID":"com.YYYY.XXXX","share_with_app_devs":false,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 13.3.1 (17D50)","incident_id":"C379DDCD-83EA-49AC-A4B5-24E0316D0681","is_beta":true,"name":"XXXX"}
Incident Identifier: C379DDCD-83EA-49AC-A4B5-24E0316D0681
Beta Identifier: 5438D6EC-9706-4D7C-9DED-0259D2ECBE6A
Hardware Model: iPhone11,8
Process: XXXX [51890]
Path: /private/var/containers/Bundle/Application/E8C2C24C-087A-49B9-B78E-E6BC18A44EC2/XXXX.app/XXXX
Identifier: com.YYYY.XXXX
Version: 424 (1.2.5)
AppStoreTools: 11E146
AppVariant: 1:iPhone11,8:13
Beta: YES
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.YYYY.XXXX [4881]
Date/Time: 2020-04-09 17:59:30.6770 +0530
Launch Time: 2020-04-09 17:59:30.4400 +0530
OS Version: iPhone OS 13.3.1 (17D50)
Release Type: User
Baseband Version: 2.04.03
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x8039c2a100000002 -> 0x0000002100000002 (possible pointer authentication failure)
VM Region Info: 0x2100000002 is not in any region. Bytes after previous region: 130459631619
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
MALLOC_NANO 0000000280000000-00000002a0000000 [512.0M] rw-/rwx SM=PRV
--->
UNUSED SPACE AT END
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [51890]
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_platform.dylib 0x00000001a6012798 0x1a600d000 + 22424
1 XXXX 0x00000001021e20d4 0x1020d4000 + 1106132
2 libobjc.A.dylib 0x00000001a602d3f8 0x1a601f000 + 58360
3 libdyld.dylib 0x00000001a6110168 0x1a6100000 + 65896
4 libdyld.dylib 0x00000001a61027e8 0x1a6100000 + 10216
5 libdyld.dylib 0x00000001a610fbf4 0x1a6100000 + 64500
6 libdyld.dylib 0x00000001a612aee4 0x1a6100000 + 175844
7 dyld 0x00000001024a4530 0x10249c000 + 34096
8 dyld 0x00000001024a298c 0x10249c000 + 27020
9 dyld 0x000000010249d22c 0x10249c000 + 4652
10 dyld 0x000000010249d038 0x10249c000 + 4152
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x8039c2a100000002 x1: 0x00000001022dab37 x2: 0x000000000000000a x3: 0xfffffffffffffffc
x4: 0x0000000000000052 x5: 0x0000000000000056 x6: 0x00000001e6b53848 x7: 0x00000000000004d0
x8: 0x000000028189c0c4 x9: 0x0000000000010000 x10: 0x0000000000000194 x11: 0x0000000000000001
x12: 0x0000000000000003 x13: 0x0000000000000000 x14: 0x00000000fffffffc x15: 0x0000000000000018
x16: 0x00000001a6012790 x17: 0x00000001eca7b3b0 x18: 0x0000000000000000 x19: 0x00000001022dab37
x20: 0x00000001022d7cd5 x21: 0x00000001022dab40 x22: 0x8039c2a100000002 x23: 0x0000000000000000
x24: 0x000000000000017f x25: 0x0000000000000000 x26: 0x0000000102329620 x27: 0x00000001022eb593
x28: 0x00000001ef76d4d8 fp: 0x000000016dd290f0 lr: 0x00000001021e20d4
sp: 0x000000016dd29090 pc: 0x00000001a6012798 cpsr: 0x00000000
esr: 0x92000004 (Data Abort) byte read Translation fault
Binary Images:
0x1020d4000 - 0x102307fff XXXX arm64 <45d30e885b7132e7854bdcc2a43f5d99> /var/containers/Bundle/Application/E8C2C24C-087A-49B9-B78E-E6BC18A44EC2/XXXX.app/XXXX
0x10249c000 - 0x102503fff dyld arm64e <e008b93875933f57b94a747bc6c3beb5> /usr/lib/dyld
0x1a5ee4000 - 0x1a5efafff libsystem_trace.dylib arm64e <1177e8a367aa3c8cb5605bcc40419d54> /usr/lib/system/libsystem_trace.dylib
0x1a5efb000 - 0x1a5f2efff libxpc.dylib arm64e <e2894301267b3872a3cd0aaf659353a9> /usr/lib/system/libxpc.dylib
0x1a5f2f000 - 0x1a5f2ffff libsystem_blocks.dylib arm64e <0fb3b7d281de30979e83b408b48e8b0e> /usr/lib/system/libsystem_blocks.dylib
0x1a5f30000 - 0x1a5faefff libsystem_c.dylib arm64e <8b9c0d18aeba3e24a95f2ec54f9fb4ef> /usr/lib/system/libsystem_c.dylib
0x1a5faf000 - 0x1a5febfff libdispatch.dylib arm64e <0c7a69cdf2ee3426bfd8742c903d3d07> /usr/lib/system/libdispatch.dylib
0x1a5fec000 - 0x1a600cfff libsystem_malloc.dylib arm64e <479f1b0225ee32ce8c0afaf20cd9e0c6> /usr/lib/system/libsystem_malloc.dylib
0x1a600d000 - 0x1a6013fff libsystem_platform.dylib arm64e <b07cc9f89c9f38b0bb974a77bf6a5db4> /usr/lib/system/libsystem_platform.dylib
0x1a6014000 - 0x1a601efff libsystem_pthread.dylib arm64e <637416f6a7a3339b96ed9ebc80d38988> /usr/lib/system/libsystem_pthread.dylib
0x1a601f000 - 0x1a604ffff libobjc.A.dylib arm64e <2c18c54e6c84310c851ff9602890d908> /usr/lib/libobjc.A.dylib
0x1a6050000 - 0x1a60bcfff libcorecrypto.dylib arm64e <9d52b5f81c483635ad32214f878e3e29> /usr/lib/system/libcorecrypto.dylib
0x1a60bd000 - 0x1a60d0fff libc++abi.dylib arm64e <b60e71f7dd75323c8831b1ca4d42e3cb> /usr/lib/libc++abi.dylib
0x1a60d1000 - 0x1a60fffff libsystem_kernel.dylib arm64e <ae36dce0999d39909eed01106f17dc90> /usr/lib/system/libsystem_kernel.dylib
0x1a6100000 - 0x1a6133fff libdyld.dylib arm64e <9d12204719b736a2a89227401f9e0e6c> /usr/lib/system/libdyld.dylib
0x1a6134000 - 0x1a613cfff libsystem_darwin.dylib arm64e <e2c1c480b2ec3bbea3fa4c70e4056c64> /usr/lib/system/libsystem_darwin.dylib
0x1a613d000 - 0x1a6197fff libc++.1.dylib arm64e <fff3d40d85a0308eac32908bca1188d0> /usr/lib/libc++.1.dylib
0x1a6198000 - 0x1a61d9fff libsystem_info.dylib arm64e <c2e15922d993340aaa5da454a57dfb76> /usr/lib/system/libsystem_info.dylib
0x1a61da000 - 0x1a6557fff CoreFoundation arm64e <dc2c95c6b95439e886a25e0af8801e87> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x1a6558000 - 0x1a65befff SystemConfiguration arm64e <9e1b636801ac32da9dabce33f20ce872> /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration
0x1a65bf000 - 0x1a688afff Foundation arm64e <7a7a96af79e43db1890442e61cae8999> /System/Library/Frameworks/Foundation.framework/Foundation
0x1a688b000 - 0x1a68bdfff libCRFSuite.dylib arm64e <15ee962961303d46964ecd419e64345a> /usr/lib/libCRFSuite.dylib
0x1a68be000 - 0x1a6a41fff CoreServices arm64e <9298be2d0bd93660bddcf43d32ea3872> /System/Library/Frameworks/CoreServices.framework/CoreServices
0x1a6a42000 - 0x1a6aa4fff libSparse.dylib arm64e <797932fbc17f372bbd2cb9bc2d55cac1> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libSparse.dylib
0x1a6aa5000 - 0x1a6f9efff ImageIO arm64e <b301e385830f311ebce0e786df524e8e> /System/Library/Frameworks/ImageIO.framework/ImageIO
0x1a6f9f000 - 0x1a6fa1fff ConstantClasses arm64e <96b656dd09a03e82b9c2917ab36a3fdd> /System/Library/PrivateFrameworks/ConstantClasses.framework/ConstantClasses
I have fixed this crash by renaming RKResponse class name of Restkit framework by adding some prefix to it. So that it will not conflict with RKResponseKit framework class RKResponse

WebServerException : Unable to start embedded Tomcat | Spring Boot Eureka Server

While learning spring MVC building with spring, I tried making a Eureka client and server using a tutorial, its a simple tutorial with a client and server main classes with just annotations and adding application properties. But even after following the tutorial the application wont run the tomcat. I can still run other projects i done in spring boot with tomcat at local server.
The tutorial i followed is,
https://dzone.com/articles/microservice-spring-cloud-eureka-server-configurat
2018-08-06 18:18:33.710 INFO 17919 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://localhost:8888
2018-08-06 18:18:33.810 INFO 17919 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Connect Timeout Exception on Url - http://localhost:8888. Will be trying the next url if available
2018-08-06 18:18:33.810 WARN 17919 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Could not locate PropertySource: I/O error on GET request for "http://localhost:8888/tuto-server/default": Connection refused (Connection refused); nested exception is java.net.ConnectException: Connection refused (Connection refused)
2018-08-06 18:18:33.811 INFO 17919 --- [ main] c.t.eurekatuto.EurekaTutoApplication : No active profile set, falling back to default profiles: default
2018-08-06 18:18:33.819 INFO 17919 --- [ main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext#15515c51: startup date [Mon Aug 06 18:18:33 IST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext#34f7234e
2018-08-06 18:18:34.426 INFO 17919 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=a5669830-fb3a-3b16-b157-1f80a6f9cbf9
2018-08-06 18:18:34.439 INFO 17919 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2018-08-06 18:18:34.488 INFO 17919 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$39babf2e] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-08-06 18:18:34.681 INFO 17919 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2018-08-06 18:18:34.695 INFO 17919 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2018-08-06 18:18:34.695 INFO 17919 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.32
2018-08-06 18:18:34.698 INFO 17919 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib]
2018-08-06 18:18:34.759 INFO 17919 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2018-08-06 18:18:34.760 INFO 17919 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 941 ms
2018-08-06 18:18:34.846 WARN 17919 --- [ost-startStop-1] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
2018-08-06 18:18:34.846 INFO 17919 --- [ost-startStop-1] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2018-08-06 18:18:34.851 INFO 17919 --- [ost-startStop-1] c.netflix.config.DynamicPropertyFactory : DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration#7c8e8b8f
2018-08-06 18:18:35.812 INFO 17919 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
2018-08-06 18:18:35.812 INFO 17919 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'webMvcMetricsFilter' to: [/*]
2018-08-06 18:18:35.812 INFO 17919 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2018-08-06 18:18:35.812 INFO 17919 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2018-08-06 18:18:35.812 INFO 17919 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]
2018-08-06 18:18:35.812 INFO 17919 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpTraceFilter' to: [/*]
2018-08-06 18:18:35.812 INFO 17919 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'servletContainer' to urls: [/eureka/*]
2018-08-06 18:18:35.812 INFO 17919 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Servlet dispatcherServlet mapped to [/]
2018-08-06 18:18:35.847 INFO 17919 --- [ost-startStop-1] c.s.j.s.i.a.WebApplicationImpl : Initiating Jersey application, version 'Jersey: 1.19.1 03/11/2016 02:08 PM'
2018-08-06 18:18:35.879 ERROR 17919 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Exception starting filter [servletContainer]
java.lang.TypeNotPresentException: Type javax.xml.bind.JAXBContext not present
at java.base/sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:117) ~[na:na]
at java.base/sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:125) ~[na:na]
at java.base/sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49) ~[na:na]
at java.base/sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:68) ~[na:na]
at java.base/sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:138) ~[na:na]
at java.base/sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49) ~[na:na]
at java.base/sun.reflect.generics.repository.ClassRepository.computeSuperInterfaces(ClassRepository.java:117) ~[na:na]
at java.base/sun.reflect.generics.repository.ClassRepository.getSuperInterfaces(ClassRepository.java:95) ~[na:na]
at java.base/java.lang.Class.getGenericInterfaces(Class.java:1114) ~[na:na]
at com.sun.jersey.core.reflection.ReflectionHelper.getClass(ReflectionHelper.java:629) ~[jersey-core-1.19.1.jar:1.19.1]
at com.sun.jersey.core.reflection.ReflectionHelper.getClass(ReflectionHelper.java:625) ~[jersey-core-1.19.1.jar:1.19.1]
at com.sun.jersey.core.spi.factory.ContextResolverFactory.getParameterizedType(ContextResolverFactory.java:202) ~[jersey-core-1.19.1.jar:1.19.1]
at com.sun.jersey.core.spi.factory.ContextResolverFactory.init(ContextResolverFactory.java:89) ~[jersey-core-1.19.1.jar:1.19.1]
at com.sun.jersey.server.impl.application.WebApplicationImpl._initiate(WebApplicationImpl.java:1332) ~[jersey-server-1.19.1.jar:1.19.1]
at com.sun.jersey.server.impl.application.WebApplicationImpl.access$700(WebApplicationImpl.java:180) ~[jersey-server-1.19.1.jar:1.19.1]
at com.sun.jersey.server.impl.application.WebApplicationImpl$13.f(WebApplicationImpl.java:799) ~[jersey-server-1.19.1.jar:1.19.1]
at com.sun.jersey.server.impl.application.WebApplicationImpl$13.f(WebApplicationImpl.java:795) ~[jersey-server-1.19.1.jar:1.19.1]
at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:193) ~[jersey-core-1.19.1.jar:1.19.1]
at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:795) ~[jersey-server-1.19.1.jar:1.19.1]
at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:790) ~[jersey-server-1.19.1.jar:1.19.1]
at com.sun.jersey.spi.container.servlet.ServletContainer.initiate(ServletContainer.java:509) ~[jersey-servlet-1.19.1.jar:1.19.1]
at com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.initiate(ServletContainer.java:339) ~[jersey-servlet-1.19.1.jar:1.19.1]
at com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:605) ~[jersey-servlet-1.19.1.jar:1.19.1]
at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:207) ~[jersey-servlet-1.19.1.jar:1.19.1]
at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:394) ~[jersey-servlet-1.19.1.jar:1.19.1]
at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:744) ~[jersey-servlet-1.19.1.jar:1.19.1]
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:285) ~[tomcat-embed-core-8.5.32.jar:8.5.32]
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:112) ~[tomcat-embed-core-8.5.32.jar:8.5.32]
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4637) [tomcat-embed-core-8.5.32.jar:8.5.32]
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5282) [tomcat-embed-core-8.5.32.jar:8.5.32]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [tomcat-embed-core-8.5.32.jar:8.5.32]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1421) [tomcat-embed-core-8.5.32.jar:8.5.32]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1411) [tomcat-embed-core-8.5.32.jar:8.5.32]
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) [na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135) [na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [na:na]
at java.base/java.lang.Thread.run(Thread.java:844) [na:na]
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBContext
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582) ~[na:na]
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190) ~[na:na]
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499) ~[na:na]
at java.base/java.lang.Class.forName0(Native Method) ~[na:na]
at java.base/java.lang.Class.forName(Class.java:374) ~[na:na]
at java.base/sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:114) ~[na:na]
... 36 common frames omitted
2018-08-06 18:18:35.880 ERROR 17919 --- [ost-startStop-1] o.apache.catalina.core.StandardContext : One or more Filters failed to start. Full details will be found in the appropriate container log file
2018-08-06 18:18:35.880 ERROR 17919 --- [ost-startStop-1] o.apache.catalina.core.StandardContext : Context [] startup failed due to previous errors
2018-08-06 18:18:35.883 WARN 17919 --- [ost-startStop-1] o.a.c.loader.WebappClassLoaderBase : The web application [ROOT] appears to have started a thread named [spring.cloud.inetutils] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.base#10.0.2/jdk.internal.misc.Unsafe.park(Native Method)
java.base#10.0.2/java.util.concurrent.locks.LockSupport.park(LockSupport.java:194)
java.base#10.0.2/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2075)
java.base#10.0.2/java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:435)
java.base#10.0.2/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1061)
java.base#10.0.2/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1121)
java.base#10.0.2/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
java.base#10.0.2/java.lang.Thread.run(Thread.java:844)
2018-08-06 18:18:35.887 ERROR 17919 --- [ main] o.apache.catalina.core.StandardService : Failed to start connector [Connector[HTTP/1.1-8080]]
org.apache.catalina.LifecycleException: Failed to start component [Connector[HTTP/1.1-8080]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) [tomcat-embed-core-8.5.32.jar:8.5.32]
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:440) ~[tomcat-embed-core-8.5.32.jar:8.5.32]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [tomcat-embed-core-8.5.32.jar:8.5.32]
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:793) [tomcat-embed-core-8.5.32.jar:8.5.32]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [tomcat-embed-core-8.5.32.jar:8.5.32]
at org.apache.catalina.startup.Tomcat.start(Tomcat.java:367) [tomcat-embed-core-8.5.32.jar:8.5.32]
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:107) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init>(TomcatWebServer.java:86) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:413) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:174) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:179) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:152) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544) [spring-context-5.0.8.RELEASE.jar:5.0.8.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:762) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:398) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:330) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1258) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1246) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at com.techgentsia.eurekatuto.EurekaTutoApplication.main(EurekaTutoApplication.java:12) [classes/:na]
Caused by: org.apache.catalina.LifecycleException: Protocol handler start failed
at org.apache.catalina.connector.Connector.startInternal(Connector.java:1020) ~[tomcat-embed-core-8.5.32.jar:8.5.32]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [tomcat-embed-core-8.5.32.jar:8.5.32]
... 19 common frames omitted
Caused by: java.net.BindException: Address already in use
at java.base/sun.nio.ch.Net.bind0(Native Method) ~[na:na]
at java.base/sun.nio.ch.Net.bind(Net.java:433) ~[na:na]
at java.base/sun.nio.ch.Net.bind(Net.java:425) ~[na:na]
at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:225) ~[na:na]
at java.base/sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) ~[na:na]
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:210) ~[tomcat-embed-core-8.5.32.jar:8.5.32]
at org.apache.tomcat.util.net.AbstractEndpoint.start(AbstractEndpoint.java:1150) ~[tomcat-embed-core-8.5.32.jar:8.5.32]
at org.apache.coyote.AbstractProtocol.start(AbstractProtocol.java:591) ~[tomcat-embed-core-8.5.32.jar:8.5.32]
at org.apache.catalina.connector.Connector.startInternal(Connector.java:1018) ~[tomcat-embed-core-8.5.32.jar:8.5.32]
... 20 common frames omitted
2018-08-06 18:18:35.888 INFO 17919 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2018-08-06 18:18:35.889 WARN 17919 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
2018-08-06 18:18:35.896 INFO 17919 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2018-08-06 18:18:35.900 ERROR 17919 --- [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:155) ~[spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544) ~[spring-context-5.0.8.RELEASE.jar:5.0.8.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:762) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:398) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:330) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1258) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1246) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at com.techgentsia.eurekatuto.EurekaTutoApplication.main(EurekaTutoApplication.java:12) [classes/:na]
Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:126) ~[spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init>(TomcatWebServer.java:86) ~[spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:413) ~[spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:174) ~[spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:179) ~[spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:152) ~[spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
... 8 common frames omitted
Caused by: java.lang.IllegalStateException: StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[] failed to start
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.rethrowDeferredStartupExceptions(TomcatWebServer.java:172) ~[spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:110) ~[spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
... 13 common frames omitted
Process finished with exit code 1
Try add his dependency to your pom/gradle:
Pom >>
<!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api -->
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.4.0-b180725.0427</version>
</dependency>
Gradle >>
// https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api
compile group: 'javax.xml.bind', name: 'jaxb-api', version: '2.4.0-b180725.0427'
Ok, so what happened is, Java used bundle up that dependency in the older Java versions (<=8). But now they no longer bundle it from the latest version (JDK >=9) of Java going forward. I hope that solves your problem.
Checkout this solution & this one as well

Error installing QtLocation

So I'm trying to install QtLocation.
I created the qt5vars.cmd in C:\QT exactly with the text stated.
This is my error:
C:\QT\QT5>REM Set up \Microsoft Visual Studio 2013, where <arch> is \c
amd64, \c x86, etc.
The syntax of the command is incorrect.
C:\QT\QT5>CALL "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\
vcvarsall.bat" <arch>
C:\QT\QT5>configure -debug -nomake examples -opensource
'configure' is not recognized as an internal or external command,
operable program or batch file.
C:\QT\QT5>
Can anyone point me to the problem? I just installed Microsoft Visual studio and it is located in
C:\Program Files (x86)\Microsoft Visual Studio 12.0
Edit: Found out that the problem was that I needed to add x86, besides only the complete backage consists of the make and configure so therefor I downloaded the complete package.
Now I have a new error
moc_qqmlenginedebugservice_p.cpp
moc_qdebugmessageservice_p.cpp
moc_qv4debugservice_p.cpp
moc_qqmlconfigurabledebugservice_p.cpp
moc_qqmlabstractprofileradapter_p.cpp
moc_qv4profileradapter_p.cpp
moc_qqmlprofiler_p.cpp
moc_qabstractanimationjob_p.cpp
moc_qqmlbind_p.cpp
moc_qqmlconnections_p.cpp
moc_qqmldelegatemodel_p.cpp
moc_qqmldelegatemodel_p_p.cpp
moc_qqmllistmodel_p.cpp
moc_qqmllistmodel_p_p.cpp
moc_qqmllistmodelworkeragent_p.cpp
moc_qqmlobjectmodel_p.cpp
moc_qqmltimer_p.cpp
moc_qquickpackage_p.cpp
moc_qquickworkerscript_p.cpp
Generating Code...
link /NOLOGO /DYNAMICBASE /NXCOMPAT /BASE:0x66000000 /DEBUG /DLL /SUBSYS
TEM:WINDOWS /VERSION:5.40 /MANIFEST:embed /OUT:C:\TUecomotive\QT5\qt-everywhere-
opensource-src-5.4.0\qtbase\lib\Qt5Qmld.dll #C:\Users\s130031\AppData\Local\Temp
\nm9C7.tmp
Creating library C:\TUecomotive\QT5\qt-everywhere-opensource-src-5.4.0\qtbase
\lib\Qt5Qmld.lib and object C:\TUecomotive\QT5\qt-everywhere-opensource-src-5.4.
0\qtbase\lib\Qt5Qmld.exp
YarrInterpreter.obj : error LNK2019: unresolved external symbol "struct JSC::Yar
r::CharacterClass * __cdecl JSC::Yarr::newlineCreate(void)" (?newlineCreate#Yarr
#JSC##YAPAUCharacterClass#12#XZ) referenced in function "public: struct JSC::Yar
r::CharacterClass * __thiscall JSC::Yarr::YarrPattern::newlineCharacterClass(voi
d)" (?newlineCharacterClass#YarrPattern#Yarr#JSC##QAEPAUCharacterClass#23#XZ)
YarrPattern.obj : error LNK2001: unresolved external symbol "struct JSC::Yarr::C
haracterClass * __cdecl JSC::Yarr::newlineCreate(void)" (?newlineCreate#Yarr#JSC
##YAPAUCharacterClass#12#XZ)
YarrInterpreter.obj : error LNK2019: unresolved external symbol "struct JSC::Yar
r::CharacterClass * __cdecl JSC::Yarr::wordcharCreate(void)" (?wordcharCreate#Ya
rr#JSC##YAPAUCharacterClass#12#XZ) referenced in function "public: struct JSC::Y
arr::CharacterClass * __thiscall JSC::Yarr::YarrPattern::wordcharCharacterClass(
void)" (?wordcharCharacterClass#YarrPattern#Yarr#JSC##QAEPAUCharacterClass#23#XZ
)
YarrPattern.obj : error LNK2001: unresolved external symbol "struct JSC::Yarr::C
haracterClass * __cdecl JSC::Yarr::wordcharCreate(void)" (?wordcharCreate#Yarr#J
SC##YAPAUCharacterClass#12#XZ)
YarrPattern.obj : error LNK2019: unresolved external symbol "struct JSC::Yarr::C
haracterClass * __cdecl JSC::Yarr::digitsCreate(void)" (?digitsCreate#Yarr#JSC##
YAPAUCharacterClass#12#XZ) referenced in function "public: struct JSC::Yarr::Cha
racterClass * __thiscall JSC::Yarr::YarrPattern::digitsCharacterClass(void)" (?d
igitsCharacterClass#YarrPattern#Yarr#JSC##QAEPAUCharacterClass#23#XZ)
YarrPattern.obj : error LNK2019: unresolved external symbol "struct JSC::Yarr::C
haracterClass * __cdecl JSC::Yarr::spacesCreate(void)" (?spacesCreate#Yarr#JSC##
YAPAUCharacterClass#12#XZ) referenced in function "public: struct JSC::Yarr::Cha
racterClass * __thiscall JSC::Yarr::YarrPattern::spacesCharacterClass(void)" (?s
pacesCharacterClass#YarrPattern#Yarr#JSC##QAEPAUCharacterClass#23#XZ)
YarrPattern.obj : error LNK2019: unresolved external symbol "struct JSC::Yarr::C
haracterClass * __cdecl JSC::Yarr::nondigitsCreate(void)" (?nondigitsCreate#Yarr
#JSC##YAPAUCharacterClass#12#XZ) referenced in function "public: struct JSC::Yar
r::CharacterClass * __thiscall JSC::Yarr::YarrPattern::nondigitsCharacterClass(v
oid)" (?nondigitsCharacterClass#YarrPattern#Yarr#JSC##QAEPAUCharacterClass#23#XZ
)
YarrPattern.obj : error LNK2019: unresolved external symbol "struct JSC::Yarr::C
haracterClass * __cdecl JSC::Yarr::nonspacesCreate(void)" (?nonspacesCreate#Yarr
#JSC##YAPAUCharacterClass#12#XZ) referenced in function "public: struct JSC::Yar
r::CharacterClass * __thiscall JSC::Yarr::YarrPattern::nonspacesCharacterClass(v
oid)" (?nonspacesCharacterClass#YarrPattern#Yarr#JSC##QAEPAUCharacterClass#23#XZ
)
YarrPattern.obj : error LNK2019: unresolved external symbol "struct JSC::Yarr::C
haracterClass * __cdecl JSC::Yarr::nonwordcharCreate(void)" (?nonwordcharCreate#
Yarr#JSC##YAPAUCharacterClass#12#XZ) referenced in function "public: struct JSC:
:Yarr::CharacterClass * __thiscall JSC::Yarr::YarrPattern::nonwordcharCharacterC
lass(void)" (?nonwordcharCharacterClass#YarrPattern#Yarr#JSC##QAEPAUCharacterCla
ss#23#XZ)
C:\TUecomotive\QT5\qt-everywhere-opensource-src-5.4.0\qtbase\lib\Qt5Qmld.dll : f
atal error LNK1120: 7 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0
\VC\BIN\link.EXE"' : return code '0x460'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0
\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
C:\QT\QT5\qt-everywhere-opensource-src-5.4.0>
I had the same problem. I found the answer here Build Qt 5.4 in windows: use VS2010 and here Unresolved external symbol attempting to build 5.2.
To solve this problem:
Check the file QT_HOME\qtdeclarative\src\qml\RegExpJitTables.h is empty or not. If it is empty, delete it. (In later versions the file is situated in each of the subdirectories of QT_HOME\qtdeclarative\src\qml\.generated\ directory.)
make sure that python is in your PATH
nmake
It works for me.

Statically compiling QWebKit 4.6.2

I tried to compile Qt+Webkit statically with MS VS 2008 and this worked.
C:\Qt\4.6.2>configure -release -static -opensource -no-fast -no-exceptions -no-accessibility -no-rtti -no-stl -no-opengl -no-openvg -no-incredibuild-xge -no-style-plastique -no-style-cleanlooks -no-style-motif -no-style-cde -no-style-windowsce -no-style-windowsmobile -no-style-s60 -no-gif -no-libpng -no-libtiff -no-libjpeg -no-libmng -no-qt3support -no-mmx -no-3dnow -no-sse -no-sse2 -no-iwmmxt -no-openssl -no-dbus -platform win32-msvc2008 -arch windows -no-phonon -no-phonon-backend -no-multimedia -no-audio-backend -no-script -no-scripttools -webkit -no-declarative
However, I get these errors whenever building a project that links statically to QWebKit:
1> Creating library C:\Users\Geeko\Desktop\Qt\TestQ\Release\TestQ.lib and object C:\Users\Geeko\Desktop\Qt\TestQ\Release\TestQ.exp
1>QtWebKit.lib(PluginPackageWin.obj) : error LNK2019: unresolved external symbol _VerQueryValueW#16 referenced in function "class WebCore::String __cdecl WebCore::getVersionInfo(void * const,class WebCore::String const &)" (?getVersionInfo#WebCore##YA?AVString#1#QAXABV21##Z)
1>QtWebKit.lib(PluginPackageWin.obj) : error LNK2019: unresolved external symbol _GetFileVersionInfoW#16 referenced in function "private: bool __thiscall WebCore::PluginPackage::fetchInfo(void)" (?fetchInfo#PluginPackage#WebCore##AAE_NXZ)
1>QtWebKit.lib(PluginPackageWin.obj) : error LNK2019: unresolved external symbol _GetFileVersionInfoSizeW#8 referenced in function "private: bool __thiscall WebCore::PluginPackage::fetchInfo(void)" (?fetchInfo#PluginPackage#WebCore##AAE_NXZ)
1>QtWebKit.lib(PluginDatabaseWin.obj) : error LNK2019: unresolved external symbol _imp_PathRemoveFileSpecW#4 referenced in function "class WebCore::String __cdecl WebCore::safariPluginsDirectory(void)" (?safariPluginsDirectory#WebCore##YA?AVString#1#XZ)
1>QtWebKit.lib(PluginDatabaseWin.obj) : error LNK2019: unresolved external symbol _imp_SHGetValueW#24 referenced in function "void __cdecl WebCore::addWindowsMediaPlayerPluginDirectory(class WTF::Vector &)" (?addWindowsMediaPlayerPluginDirectory#WebCore##YAXAAV?$Vector#VString#WebCore##$0A##WTF###Z)
1>QtWebKit.lib(PluginDatabaseWin.obj) : error LNK2019: unresolved external symbol _imp_PathCombineW#12 referenced in function "void __cdecl WebCore::addMacromediaPluginDirectories(class WTF::Vector &)" (?addMacromediaPluginDirectories#WebCore##YAXAAV?$Vector#VString#WebCore##$0A##WTF###Z)
1>C:\Users\Geeko\Desktop\Qt\TestQ\Release\TestQ.exe : fatal error LNK1120: 6 unresolved externals
Do I need to check something in the Qt project options? I have QtCore, QtGui, Network and WebKit checked.
It looks like you need to link in the windows .lib files for each of the missing functions:
VerQueryValue,GetFileVersionInfo -> version.lib
GetFileVersionInfoSize -> Coredll.lib
PathRemoveFileSpec, SHGetValue, PathCombine -> shlwapi.lib
If you are using qmake, you add:
LIBS += -lversion -lCoredll -lshlwapi
Otherwise: From the Project menu, choose Properties. Open Configuration Properties->Linker->Input. In the Additional Dependencies field, add version.lib, Coredll.lib and shlwapi.lib

Resources