Microsoft Advertising error - c#

I never had problems with Microsoft Advertising until yesterday...
Yesterday I had lot of crash in my app due to Microsoft Advertising.
The symbol name of the event is:
Microsoft_Advertising!Windows::UI::Xaml::DependencyObject::[Windows::UI::Xaml::IDependencyObject]::SetValue
Someone else have this problem ?
How can I solve this problem?
(my app is a Windows 10 universal app (c# + XAML))
Stack trace:
1 Windows_UI_Xaml DirectUI::DependencyPropertyHandle::GetDP 0x2E380F
2 Windows_UI_Xaml DirectUI::DependencyObject::SetValue 0x27
3 Microsoft_Advertising Windows::UI::Xaml::DependencyObject::[Windows::UI::Xaml::IDependencyObject]::SetValue 0x48
4 Microsoft_Advertising Microsoft::Advertising::WinRT::UI::AdControl::ApplicationId::[Microsoft::Advertising::WinRT::UI::__IAdControlPublicNonVirtuals::ApplicationId]::set 0x6E
5 Microsoft_Advertising Microsoft::Advertising::WinRT::UI::AdControl::[Microsoft::Advertising::WinRT::UI::__IAdControlPublicNonVirtuals]::__abi_Microsoft_Advertising_WinRT_UI___IAdControlPublicNonVirtuals____abi_set_ApplicationId 0x2A
6 App2_7ff97fad0000 $102_McgInterop::ComCallHelpers.ComCall__HRESULT 0x87
7 App2_7ff97fad0000 $102_McgInterop::ForwardComSharedStubs.Proc_string__ 0x6D
8 App2_7ff97fad0000 $97_Microsoft::AdMediator::Universal::MicrosoftAdvertising::MicrosoftAdvertisingAdAdapter.InstantiateControl 0x249
9 App2_7ff97fad0000 $56_Microsoft::AdMediator::Core::BaseAdAdapter::__c__DisplayClass72_0._LoadControl_b__0 0x20
10 App2_7ff97fad0000 $56_Microsoft::AdMediator::Core::BaseAdAdapter::__c__DisplayClass76_0._RunOnDispatcher_b__0 0x22
11 App2_7ff97fad0000 $16_System::Threading::WaitCallback.Invoke 0xF
12 App2_7ff97fad0000
$84_Internal::WinRT::Interop::WinRTCallbacks::__c__DisplayClass14_0._SubmitLongRunningThreadpoolWork_b__0 0x10
13 App2_7ff97fad0000 $102_Windows::UI::Core::DispatchedHandler__Impl::Vtbl.Invoke__STUB 0x2A
14 Windows_UI Windows::UI::Core::CDispatcher::ProcessInvokeItem 0x23C
15 Windows_UI Windows::UI::Core::CDispatcher::ProcessMessage 0x1A4
16 Windows_UI Windows::UI::Core::CDispatcher::WaitAndProcessMessages 0x1A2
17 Windows_UI Windows::UI::Core::CDispatcher::ProcessEvents 0xA8
18 Windows_UI_Xaml CJupiterWindow::RunCoreWindowMessageLoop 0x65
19 Windows_UI_Xaml DirectUI::DXamlCore::RunMessageLoop 0x47
20 twinapi_appcore Windows::ApplicationModel::Core::CoreApplicationView::Run 0x46
21 twinapi_appcore _lambda_d86ebb20270fa8a99766b2537cc9a251_::_helper_func_cdecl_ 0x100
22 SHCore _WrapperThreadProc 0xF0
23 kernel32 BaseThreadInitThunk 0x22
24 ntdll RtlUserThreadStart 0x34
and the failure string name is:
STOWED_EXCEPTION_8000ffff_Microsoft.Advertising.dll!Windows::UI::Xaml::DependencyObject::[Windows::UI::Xaml::IDependencyObject]::SetValue
when I test my app on VisualSudio 2015 I have this error:
Exception thrown at 0x74CD3E28 (KernelBase.dll) in App2.exe: 0x40080201: WinRT originate error (parameters: 0x800F1000, 0x00000053, 0x07A0CE9C).
windows\dxaml\xcp\components\vsm\visualstatemanagerdatasource.cpp(260)\Windows.UI.Xaml.dll!055146AF: (caller: 0522D02D) Exception(1) tid(5168) 800F1000 Aucun composant installé n’a été détecté.
Exception thrown at 0x74CD3E28 in App2.exe: Microsoft C++ exception: wil::ResultException at memory location 0x07A0C448.
Exception thrown at 0x74CD3E28 in App2.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
windows\dxaml\xcp\components\vsm\cvisualstatemanager2.cpp(131)\Windows.UI.Xaml.dll!05514C93: (caller: 05439146) ReturnHr(1) tid(5168) 800F1000 Aucun composant installé n’a été détecté.
But my app is the same as before...I don't understand (I just updated admediator...)

yes other developers are seeing this issue, too.
Please upvote the problem here.

Related

unable to do multiple matches with regex pattern. pattern treats as a single match [duplicate]

This question already has answers here:
My regex is matching too much. How do I make it stop? [duplicate]
(5 answers)
Closed 3 years ago.
I'm trying to match a pattern out of text which repeats with in the text. when i try match pattern it matches whatever in between. though I achieved the desired result but i might want any optimization in my regex pattern if possible. please suggest.
this is the text content...
$text = #"
Microsoft (R) Windows Debugger Version 6.3.9600.17336 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [C:\Windows\MEMORY.DMP]
Kernel Summary Dump File: Only kernel address space is available
************* Symbol Path validation summary **************
Response Time (ms) Location
Deferred srv*DownstreamStore*https://msdl.microsoft.com/download/symbols
************* Symbol Path validation summary **************
Response Time (ms) Location
Deferred srv*DownstreamStore*https://msdl.microsoft.com/download/symbols
Symbol search path is: srv*DownstreamStore*https://msdl.microsoft.com/download/symbols
Executable search path is:
Windows 7 Kernel Version 7600 UP Free x64
Product: LanManNt, suite: SmallBusiness TerminalServer SmallBusinessRestricted SingleUserTS
Built by: 7600.16385.amd64fre.win7_rtm.090713-1255
Machine Name:
Kernel base = 0xfffff800`01658000 PsLoadedModuleList = 0xfffff800`01895e50
Debug session time: Tue Apr 16 04:27:05.412 2019 (UTC - 7:00)
System Uptime: 7 days 1:02:26.286
Loading Kernel Symbols
...............................................................
..............................................Page eb21d not present in the dump file. Type ".hh dbgerr004" for details
..................
.........
Loading User Symbols
PEB is paged out (Peb.Ldr = 000007ff`fffdb018). Type ".hh dbgerr001" for details
Loading unloaded module list
....
*******************************************************************************
* *
* Bugcheck Analysis *
* *
*******************************************************************************
Use !analyze -v to get detailed debugging information.
BugCheck D1, {fffff8a0032dd010, 2, 0, fffff8800567d530}
*** ERROR: Module load completed but symbols could not be loaded for myfault.sys
Page eb21d not present in the dump file. Type ".hh dbgerr004" for details
Probably caused by : myfault.sys ( myfault+1530 )
Followup: MachineOwner
---------
----- 64 bit Kernel Summary Dump Analysis
DUMP_HEADER64:
MajorVersion 0000000f
MinorVersion 00001db0
KdSecondaryVersion 00000000
DirectoryTableBase 00000000`cadb0000
PfnDataBase fffffa80`00000000
PsLoadedModuleList fffff800`01895e50
PsActiveProcessHead fffff800`01877b30
MachineImageType 00008664
NumberProcessors 00000001
BugCheckCode 000000d1
BugCheckParameter1 fffff8a0`032dd010
BugCheckParameter2 00000000`00000002
BugCheckParameter3 00000000`00000000
BugCheckParameter4 fffff880`0567d530
KdDebuggerDataBlock fffff800`01841070
SecondaryDataState 00000000
ProductType 00000002
SuiteMask 00000131
SUMMARY_DUMP64:
DumpOptions 504d4453
HeaderSize 00024000
BitmapSize 00108000
Pages 00013cb0
Bitmap.SizeOfBitMap 00108000
KiProcessorBlock at fffff800`01900900
1 KiProcessorBlock entries:
fffff800`01842e80
Windows 7 Kernel Version 7600 UP Free x64
Product: LanManNt, suite: SmallBusiness TerminalServer SmallBusinessRestricted SingleUserTS
Built by: 7600.16385.amd64fre.win7_rtm.090713-1255
Machine Name:
Kernel base = 0xfffff800`01658000 PsLoadedModuleList = 0xfffff800`01895e50
Debug session time: Tue Apr 16 04:27:05.412 2019 (UTC - 7:00)
System Uptime: 7 days 1:02:26.286
start end module name
fffff800`0142c000 fffff800`01436000 kdcom Mon Jul 13 18:31:07 2009 (4A5BDFDB)
fffff800`0160f000 fffff800`01658000 hal Mon Jul 13 18:27:36 2009 (4A5BDF08)
fffff800`01658000 fffff800`01c35000 nt Mon Jul 13 16:40:48 2009 (4A5BC600)
fffff880`00c00000 fffff880`00c3c000 vmbus Mon Jul 13 16:42:54 2009 (4A5BC67E)
###
some similar text just to save characters
###
fffff960`00050000 fffff960`0035f000 win32k Mon Jul 13 16:40:16 2009 (4A5BC5E0)
Page eb21d not present in the dump file. Type ".hh dbgerr004" for details
fffff960`004c0000 fffff960`004de000 dxg Mon Jul 13 16:38:28 2009 (4A5BC574)
fffff960`00620000 fffff960`0062a000 TSDDD Mon Jul 13 17:16:34 2009 (4A5BCE62)
fffff960`008c0000 fffff960`008cb000 VMBusVideoD Mon Jul 13 16:43:00 2009 (4A5BC684)
fffff960`00af0000 fffff960`00b26000 RDPDD Mon Jul 13 17:16:54 2009 (4A5BCE76)
Unloaded modules:
fffff880`018e5000 fffff880`018f3000 crashdmp.sys
Timestamp: unavailable (00000000)
Checksum: 00000000
ImageSize: 0000E000
fffff880`018f3000 fffff880`018ff000 dump_ataport.sys
Timestamp: unavailable (00000000)
Checksum: 00000000
ImageSize: 0000C000
fffff880`018ff000 fffff880`01908000 dump_atapi.sys
Timestamp: unavailable (00000000)
Checksum: 00000000
ImageSize: 00009000
fffff880`00de5000 fffff880`00e00000 sacdrv.sys
Timestamp: unavailable (00000000)
Checksum: 00000000
ImageSize: 0001B000
*******************************************************************************
* *
* Bugcheck Analysis *
* *
*******************************************************************************
Use !analyze -v to get detailed debugging information.
BugCheck D1, {fffff8a0032dd010, 2, 0, fffff8800567d530}
Page eb21d not present in the dump file. Type ".hh dbgerr004" for details
Probably caused by : myfault.sys ( myfault+1530 )
Followup: MachineOwner
---------
Finished dump check
"#
This should return 2 possible matches
([regex]"(?ms)\*{20,}.+-{8,}").Matches($text)
but gives this..
*******************************************************************************
* *
* Bugcheck Analysis *
* *
*******************************************************************************
Use !analyze -v to get detailed debugging information.
BugCheck D1, {fffff8a0032dd010, 2, 0, fffff8800567d530}
*** ERROR: Module load completed but symbols could not be loaded for myfault.sys
Page eb21d not present in the dump file. Type ".hh dbgerr004" for details
Probably caused by : myfault.sys ( myfault+1530 )
Followup: MachineOwner
---------
----- 64 bit Kernel Summary Dump Analysis
DUMP_HEADER64:
MajorVersion 0000000f
MinorVersion 00001db0
KdSecondaryVersion 00000000
DirectoryTableBase 00000000`cadb0000
PfnDataBase fffffa80`00000000
PsLoadedModuleList fffff800`01895e50
PsActiveProcessHead fffff800`01877b30
MachineImageType 00008664
NumberProcessors 00000001
BugCheckCode 000000d1
BugCheckParameter1 fffff8a0`032dd010
BugCheckParameter2 00000000`00000002
BugCheckParameter3 00000000`00000000
BugCheckParameter4 fffff880`0567d530
KdDebuggerDataBlock fffff800`01841070
SecondaryDataState 00000000
ProductType 00000002
SuiteMask 00000131
SUMMARY_DUMP64:
DumpOptions 504d4453
HeaderSize 00024000
BitmapSize 00108000
Pages 00013cb0
Bitmap.SizeOfBitMap 00108000
KiProcessorBlock at fffff800`01900900
1 KiProcessorBlock entries:
fffff800`01842e80
Windows 7 Kernel Version 7600 UP Free x64
Product: LanManNt, suite: SmallBusiness TerminalServer SmallBusinessRestricted SingleUserTS
Built by: 7600.16385.amd64fre.win7_rtm.090713-1255
Machine Name:
Kernel base = 0xfffff800`01658000 PsLoadedModuleList = 0xfffff800`01895e50
Debug session time: Tue Apr 16 04:27:05.412 2019 (UTC - 7:00)
System Uptime: 7 days 1:02:26.286
start end module name
fffff800`0142c000 fffff800`01436000 kdcom Mon Jul 13 18:31:07 2009 (4A5BDFDB)
fffff800`0160f000 fffff800`01658000 hal Mon Jul 13 18:27:36 2009 (4A5BDF08)
fffff800`01658000 fffff800`01c35000 nt Mon Jul 13 16:40:48 2009 (4A5BC600)
fffff880`00c00000 fffff880`00c3c000 vmbus Mon Jul 13 16:42:54 2009 (4A5BC67E)
fffff880`00c3c000 fffff880`00c66000 ataport Mon Jul 13 16:19:52 2009 (4A5BC118)
####
Some similar text just to save characters
####
Page eb21d not present in the dump file. Type ".hh dbgerr004" for details
fffff960`004c0000 fffff960`004de000 dxg Mon Jul 13 16:38:28 2009 (4A5BC574)
fffff960`00620000 fffff960`0062a000 TSDDD Mon Jul 13 17:16:34 2009 (4A5BCE62)
fffff960`008c0000 fffff960`008cb000 VMBusVideoD Mon Jul 13 16:43:00 2009 (4A5BC684)
fffff960`00af0000 fffff960`00b26000 RDPDD Mon Jul 13 17:16:54 2009 (4A5BCE76)
Unloaded modules:
fffff880`018e5000 fffff880`018f3000 crashdmp.sys
Timestamp: unavailable (00000000)
Checksum: 00000000
ImageSize: 0000E000
fffff880`018f3000 fffff880`018ff000 dump_ataport.sys
Timestamp: unavailable (00000000)
Checksum: 00000000
ImageSize: 0000C000
fffff880`018ff000 fffff880`01908000 dump_atapi.sys
Timestamp: unavailable (00000000)
Checksum: 00000000
ImageSize: 00009000
fffff880`00de5000 fffff880`00e00000 sacdrv.sys
Timestamp: unavailable (00000000)
Checksum: 00000000
ImageSize: 0001B000
*******************************************************************************
* *
* Bugcheck Analysis *
* *
*******************************************************************************
Use !analyze -v to get detailed debugging information.
BugCheck D1, {fffff8a0032dd010, 2, 0, fffff8800567d530}
Page eb21d not present in the dump file. Type ".hh dbgerr004" for details
Probably caused by : myfault.sys ( myfault+1530 )
Followup: MachineOwner
---------
but I ended up doing this to get the second part which is successful
$text -match [regex]"(?ms)\*{20,}.+-{8,}\s+\n+-.+\n(^\*{20,}.+\*\s+[bB].+\*{20,}.+-{8,})"
$Matches[1]
Desired Result is only second part
*******************************************************************************
* *
* Bugcheck Analysis *
* *
*******************************************************************************
Use !analyze -v to get detailed debugging information.
BugCheck D1, {fffff8a0032dd010, 2, 0, fffff8800567d530}
Page eb21d not present in the dump file. Type ".hh dbgerr004" for details
Probably caused by : myfault.sys ( myfault+1530 )
Followup: MachineOwner
---------
You can do this with your first regex slightly altered to use a lazy quantifier .*?. Then select the second indexed value [1] of your two matches.
([regex]"(?ms)\*{20,}.*?-{8,}").matches($text).value[1]
If you want both matches, then just leave off the index:
([regex]"(?ms)\*{20,}.*?-{8,}").matches($text).value

Since Windows 10 1709 Update - System.OutOfMemoryException c# .net

My winforms application has been running perfectly until the latest Windows 10 1709 Update and ever since updating my app crashes constantly when running the standalone .exe or in Visual Studio 2017. The app crashses on any machine with the latest 1709 update. As a test, I created a Windows 7 machine and works perfectly and all versions prior to Windows 10 1709 fine.
Its pretty random when I get System.OutOfMemoryException exception = usually however when System.Form.Timer fires or a thread is run (this may be a a clue!).
One thing for sure, I am not out of memory! (32GB with 50% available on my development machine).
I am at a loss what is causing this and have tried the following:
The solution comprises of around 30 C# projects.
-I have updated from .Net 4.6 to 4.6.1 then to 4.7 and 4.7.1
-Updated all Nuget projects.
-Compiled code on Windows 7, ran on Windows 10 (crashes) - it runs fine on Windows 7.
- Ran on Windows 10 Home, Windows 10 Pro (1709). Works fine on older Windows 10!
- Fresh install of Windows 10 Pro with 32GB of RAM (my development machine).
- Disabled timers and threads (only to get exceptions elsewhere).
Roll back the OS is not a solution as I have users that rely on this software running Windows 10. I have been looking at this for the last week without no resolution and hope I can get some good pointers to finally resolve this.
Below are two tracebacks - I have 100s of these tracebacks (via rollbar.com) since I updated to latest 1709:
Traceback (most recent call last):
1
at Winforms.Components.ApplicationIdle.System.Windows.Forms.IMessageFilter.PreFilterMessage(System.Windows.Forms.Message& m) in "Winforms.Components.ApplicationIdle" line 17
2
at System.Windows.Forms.Application+ThreadContext.ProcessFilters(System.Windows.Forms.NativeMethods+MSG& msg, System.Boolean& modified) in "System.Windows.Forms.Application+ThreadContext" line 188
3
at System.Windows.Forms.Application+ThreadContext.PreTranslateMessage(System.Windows.Forms.NativeMethods+MSG& msg) in "System.Windows.Forms.Application+ThreadContext" line 2
4
at System.Windows.Forms.Application+ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FPreTranslateMessage(System.Windows.Forms.NativeMethods+MSG& msg) in "System.Windows.Forms.Application+ThreadContext" line 0
5
at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(System.IntPtr dwComponentID, System.Int32 reason, System.Int32 pvLoopData) in "System.Windows.Forms.Application+ComponentManager" line 349
6
at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(System.Int32 reason, System.Windows.Forms.ApplicationContext context) in "System.Windows.Forms.Application+ThreadContext" line 484
7
at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(System.Int32 reason, System.Windows.Forms.ApplicationContext context) in "System.Windows.Forms.Application+ThreadContext" line 20
8
at System.Windows.Forms.Application.Run(System.Windows.Forms.Form mainForm) in "System.Windows.Forms.Application" line 12
9
at CRS.Program.Main() in "CRS.Program" line 456
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.Windows.Forms.Internal.WindowsGraphics.FromHdc(System.IntPtr hDc) in "System.Windows.Forms.Internal.WindowsGraphics" line 7
2
at System.Windows.Forms.Internal.WindowsGraphics.FromGraphics(System.Drawing.Graphics g, System.Windows.Forms.Internal.ApplyGraphicsProperties properties) in "System.Windows.Forms.Internal.WindowsGraphics" line 114
3
at System.Windows.Forms.WindowsGraphicsWrapper..ctor(System.Drawing.IDeviceContext idc, System.Windows.Forms.TextFormatFlags flags) in "System.Windows.Forms.WindowsGraphicsWrapper" line 45
4
at System.Windows.Forms.VisualStyles.VisualStyleRenderer.GetPartSize(System.Drawing.IDeviceContext dc, System.Windows.Forms.VisualStyles.ThemeSizeType type, System.IntPtr hWnd) in "System.Windows.Forms.VisualStyles.VisualStyleRenderer" line 58
5
at System.Windows.Forms.RadioButtonRenderer.GetGlyphSize(System.Drawing.Graphics g, System.Windows.Forms.VisualStyles.RadioButtonState state, System.IntPtr hWnd) in "System.Windows.Forms.RadioButtonRenderer" line 13
6
at System.Windows.Forms.ButtonInternal.RadioButtonStandardAdapter.Layout(System.Windows.Forms.PaintEventArgs e) in "System.Windows.Forms.ButtonInternal.RadioButtonStandardAdapter" line 35
7
at System.Windows.Forms.ButtonInternal.CheckableControlBaseAdapter.GetPreferredSizeCore(System.Drawing.Size proposedSize) in "System.Windows.Forms.ButtonInternal.CheckableControlBaseAdapter" line 44
8
at System.Windows.Forms.ButtonBase.GetPreferredSizeCore(System.Drawing.Size proposedConstraints) in "System.Windows.Forms.ButtonBase" line 0
9
at System.Windows.Forms.RadioButton.GetPreferredSizeCore(System.Drawing.Size proposedConstraints) in "System.Windows.Forms.RadioButton" line 9
10
at System.Windows.Forms.Control.GetPreferredSize(System.Drawing.Size proposedSize) in "System.Windows.Forms.Control" line 90
11
at System.Windows.Forms.ButtonBase.GetPreferredSize(System.Drawing.Size proposedSize) in "System.Windows.Forms.ButtonBase" line 36
12
at System.Windows.Forms.Layout.DefaultLayout.LayoutAutoSizedControls(System.Windows.Forms.Layout.IArrangedElement container) in "System.Windows.Forms.Layout.DefaultLayout" line 106
13
at System.Windows.Forms.Layout.DefaultLayout.xLayout(System.Windows.Forms.Layout.IArrangedElement container, System.Boolean measureOnly, System.Drawing.Size& preferredSize) in "System.Windows.Forms.Layout.DefaultLayout" line 0
14
at System.Windows.Forms.Layout.DefaultLayout.LayoutCore(System.Windows.Forms.Layout.IArrangedElement container, System.Windows.Forms.LayoutEventArgs args) in "System.Windows.Forms.Layout.DefaultLayout" line 0
15
at System.Windows.Forms.Layout.LayoutEngine.Layout(System.Object container, System.Windows.Forms.LayoutEventArgs layoutEventArgs) in "System.Windows.Forms.Layout.LayoutEngine" line 0
16
at System.Windows.Forms.Control.OnLayout(System.Windows.Forms.LayoutEventArgs levent) in "System.Windows.Forms.Control" line 47
17
at System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.LayoutEventArgs args) in "System.Windows.Forms.Control" line 105
18
at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.PerformLayout(System.Windows.Forms.Layout.IArrangedElement affectedElement, System.String affectedProperty) in "System.Windows.Forms.Control" line 8
19
at System.Windows.Forms.Control.Scale(System.Drawing.SizeF includedFactor, System.Drawing.SizeF excludedFactor, System.Windows.Forms.Control requestingControl) in "System.Windows.Forms.Control" line 44
20
at System.Windows.Forms.Control.ScaleChildControls(System.Drawing.SizeF includedFactor, System.Drawing.SizeF excludedFactor, System.Windows.Forms.Control requestingControl) in "System.Windows.Forms.Control" line 45
21
at System.Windows.Forms.Control.Scale(System.Drawing.SizeF includedFactor, System.Drawing.SizeF excludedFactor, System.Windows.Forms.Control requestingControl) in "System.Windows.Forms.Control" line 23
22
at System.Windows.Forms.Control.ScaleChildControls(System.Drawing.SizeF includedFactor, System.Drawing.SizeF excludedFactor, System.Windows.Forms.Control requestingControl) in "System.Windows.Forms.Control" line 45
23
at System.Windows.Forms.Control.Scale(System.Drawing.SizeF includedFactor, System.Drawing.SizeF excludedFactor, System.Windows.Forms.Control requestingControl) in "System.Windows.Forms.Control" line 23
24
at System.Windows.Forms.Control.ScaleChildControls(System.Drawing.SizeF includedFactor, System.Drawing.SizeF excludedFactor, System.Windows.Forms.Control requestingControl) in "System.Windows.Forms.Control" line 45
25
at System.Windows.Forms.Control.Scale(System.Drawing.SizeF includedFactor, System.Drawing.SizeF excludedFactor, System.Windows.Forms.Control requestingControl) in "System.Windows.Forms.Control" line 23
26
at System.Windows.Forms.Control.ScaleChildControls(System.Drawing.SizeF includedFactor, System.Drawing.SizeF excludedFactor, System.Windows.Forms.Control requestingControl) in "System.Windows.Forms.Control" line 45
27
at System.Windows.Forms.Control.Scale(System.Drawing.SizeF includedFactor, System.Drawing.SizeF excludedFactor, System.Windows.Forms.Control requestingControl) in "System.Windows.Forms.Control" line 23
28
at System.Windows.Forms.Control.ScaleChildControls(System.Drawing.SizeF includedFactor, System.Drawing.SizeF excludedFactor, System.Windows.Forms.Control requestingControl) in "System.Windows.Forms.Control" line 45
29
at System.Windows.Forms.Control.Scale(System.Drawing.SizeF includedFactor, System.Drawing.SizeF excludedFactor, System.Windows.Forms.Control requestingControl) in "System.Windows.Forms.Control" line 23
30
at System.Windows.Forms.ContainerControl.OnChildLayoutResuming(System.Windows.Forms.Control child, System.Boolean performLayout) in "System.Windows.Forms.ContainerControl" line 81
31
at System.Windows.Forms.Control.OnChildLayoutResuming(System.Windows.Forms.Control child, System.Boolean performLayout) in "System.Windows.Forms.Control" line 0
32
at System.Windows.Forms.Control.OnChildLayoutResuming(System.Windows.Forms.Control child, System.Boolean performLayout) in "System.Windows.Forms.Control" line 0
33
at System.Windows.Forms.Control.OnLayoutResuming(System.Boolean performLayout) in "System.Windows.Forms.Control" line 8
34
at System.Windows.Forms.Control.ResumeLayout(System.Boolean performLayout) in "System.Windows.Forms.Control" line 35
35
at CRS.Dialogs.frmCheckin.InitializeComponent() in "CRS.Dialogs.frmCheckin" line 75929
36
at CRS.Dialogs.frmCheckin..ctor() in "CRS.Dialogs.frmCheckin" line 298
37
at CRS.Dialogs.OpenTicketHelper.OpenTicket() in "CRS.Dialogs.OpenTicketHelper" line 12
38
at CRS.Dialogs.frmTicketTracker.btnNewCheckin_Click(System.Object sender, System.EventArgs e) in "CRS.Dialogs.frmTicketTracker" line 19
39
at System.Windows.Forms.Control.OnClick(System.EventArgs e) in "System.Windows.Forms.Control" line 25
40
at System.Windows.Forms.Button.OnClick(System.EventArgs e) in "System.Windows.Forms.Button" line 46
41
at System.Windows.Forms.Button.OnMouseUp(System.Windows.Forms.MouseEventArgs mevent) in "System.Windows.Forms.Button" line 119
42
at System.Windows.Forms.Control.WmMouseUp(System.Windows.Forms.Message& m, System.Windows.Forms.MouseButtons button, System.Int32 clicks) in "System.Windows.Forms.Control" line 388
43
at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message& m) in "System.Windows.Forms.Control" line 1647
44
at System.Windows.Forms.ButtonBase.WndProc(System.Windows.Forms.Message& m) in "System.Windows.Forms.ButtonBase" line 0
45
at System.Windows.Forms.Button.WndProc(System.Windows.Forms.Message& m) in "System.Windows.Forms.Button" line 61
46
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message& m) in "System.Windows.Forms.Control+ControlNativeWindow" line 0
47
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message& m) in "System.Windows.Forms.Control+ControlNativeWindow" line 142
48
at System.Windows.Forms.NativeWindow.Callback(System.IntPtr hWnd, System.Int32 msg, System.IntPtr wparam, System.IntPtr lparam) in "System.Windows.Forms.NativeWindow" line 37
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
Its turned out the actual issue was .Net WebBrowser Control that was causing massive amount of memory to be used.. I had fice WebBrowser controls open at the same time.. would eat 2GB of RAM! (more if the x32 compiled app didnt crash, x64 lasted much longer!).
Removed them, app only consumes 25MB again!
p.s. changing over to CefSharp to see if this fares better!

Objective_C Exception Thrown when debugging Xamarin C# iOS App

When I go to build and debug my iOS app, the simulator runs but I get an exception thrown and the simulator doesn't open. I'm using Visual Studio for Mac.
The error is:
Objective-C exception thrown.Name: NSInvalidArgumentException Reason:
Could not find a storyboard named 'Main' in bundle NSBundle
</Users/(Username
here)/Library/Developer/CoreSimulator/Devices/23E98CA3-FC40-4AA4-8AAD-
62A9FADE1118/data/Containers/Bundle/Application/715B09C7-FBF2-41E6-
8FCD-A6329DE9E758/(AppName Here).app> (loaded)
Native stack trace:
0 CoreFoundation 0x0000000108f31b0b
__exceptionPreprocess + 171
1 libobjc.A.dylib 0x0000000113b0e141
objc_exception_throw + 48
2 UIKit 0x000000010d005cfb +
[UIStoryboard storyboardWithName:bundle:] + 663
3 UIKit 0x000000010c84590d -
[UIApplication _loadMainStoryboardFileNamed:bundle:] + 72
4 UIKit 0x000000010c845e13 -
[UIApplication _loadMainInterfaceFile] + 260
5 UIKit 0x000000010c8444b6 -
[UIApplication _runWithMainScene:transitionContext:completion:] + 1407
6 UIKit 0x000000010c8417f3 -
[UIApplication workspaceDidEndTransaction:] + 182
7 FrontBoardServices 0x00000001168265f6
__FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
8 FrontBoardServices 0x000000011682646d -
[FBSSerialQueue _performNext] + 186
9 FrontBoardServices 0x00000001168267f6 -
[FBSSerialQueue _performNextFromRunLoopSource] + 45
10 CoreFoundation 0x0000000108ed7c01
__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
11 CoreFoundation 0x0000000108ebd0cf
__CFRunLoopDoSources0 + 527
12 CoreFoundation 0x0000000108ebc5ff
__CFRunLoopRun + 911
13 CoreFoundation 0x0000000108ebc016
CFRunLoopRunSpecific + 406
14 UIKit 0x000000010c84008f -
[UIApplication _run] + 468
15 UIKit 0x000000010c846134
UIApplicationMain + 159
16 ??? 0x000000012bee336c 0x0 +
5031998316
17 ??? 0x0000000128fc6abd 0x0 +
4982598333
Thanks,
Z
Edit:
Adding picture.
Info.plist
It seems like no main.storyboard can be found in your project.
Check this
if the Main Interface is Main , check if main.storyboard exsits in your project.
Or you can change it to other viewController.
Okay, the weirdest thing fixed it. I installed an older version of Xarmarin iOS that I got from this page: https://bugzilla.xamarin.com/show_bug.cgi?id=38206
Then when I opened Visual Studio it didn't detect it and had me update it. After updating it, my app was able to debug and the simulator worked fine! Very, very weird!

Xamarin.iOS unknown crash when app starts

So I have a weird behavior with an iOS app I'm working on.
When I build my app in Release mode in Visual Studio, it works fine, deploys and runs OK on my iPhone.
Then I do the same thing using XBuild via command line, create the .ipa, deploy it to the same phone, and I get a crash right after the system splashscreen.
The same command line, executed on another mac, provides an .ipa that does not crash.
And the crash stacktrace provided by XCode does not help much:
Date/Time: 2017-06-19 11:22:01.279 +0200
Launch Time: 2017-06-19 11:21:59.536 +0200
OS Version: iOS 8.3 (12F70)
Report Version: 105
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Thread 0 name: tid_907 Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000195e37270 __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000195ed516c pthread_kill + 108
2 libsystem_c.dylib 0x0000000195daeb14 abort + 108
3 MyApp 0x0000000101f9df20 mono_handle_native_crash (mini-exceptions.c:2615)
4 libsystem_platform.dylib 0x0000000195ecc958 _sigtramp + 64
5 libsystem_pthread.dylib 0x0000000195ed516c pthread_kill + 108
6 libsystem_c.dylib 0x0000000195daeb14 abort + 108
7 MyApp 0x00000001020b29c0 mono_log_write_asl (mono-log-darwin.c:40)
8 MyApp 0x00000001020c6188 monoeg_g_log (goutput.c:125)
9 MyApp 0x0000000101f68078 load_aot_module (aot-runtime.c:2060)
10 MyApp 0x0000000101fbd2fc mono_assembly_load_from_full (assembly.c:2099)
11 MyApp 0x0000000101fbce5c mono_assembly_open_a_lot (assembly.c:1779)
12 MyApp 0x00000001020d3168 assembly_preload_hook(_MonoAssemblyName*, char**, void*) (monotouch-main.m:137)
13 MyApp 0x0000000101fbef24 mono_assembly_load_corlib (assembly.c:1478)
14 MyApp 0x0000000101fdf248 mono_init_internal (domain.c:556)
15 MyApp 0x0000000101faa7e8 mini_init (mini-runtime.c:3680)
16 MyApp 0x00000001020d2e84 xamarin_main (monotouch-main.m:420)
17 MyApp 0x0000000101e29b78 main (main.m:245)
18 libdyld.dylib 0x0000000195d1ea04 start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x0000000195e1cc24 kevent64 + 8
1 libdispatch.dylib 0x0000000195d01e6c _dispatch_mgr_invoke + 272
2 libdispatch.dylib 0x0000000195cf3998 _dispatch_mgr_thread + 48
Thread 2 name: SGen worker
Thread 2:
0 libsystem_kernel.dylib 0x0000000195e37078 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x0000000195ed2f28 _pthread_cond_wait + 620
2 MyApp 0x00000001020a6228 thread_func (mono-os-mutex.h:146)
3 libsystem_pthread.dylib 0x0000000195ed3dc4 _pthread_body + 160
4 libsystem_pthread.dylib 0x0000000195ed3d20 _pthread_start + 156
5 libsystem_pthread.dylib 0x0000000195ed0ef4 thread_start + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000036
x4: 0x000000016fd10c18 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000fa0
x8: 0x0000000008000000 x9: 0x0000000004000000 x10: 0x0000000125d18000 x11: 0x0000000000000fff
x12: 0x0000000000000036 x13: 0x0000000125d14000 x14: 0x0000000000003fff x15: 0x0000000000003fff
x16: 0x0000000000000148 x17: 0x0000000000000010 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x0000000199d10310 x21: 0x0000000102170a64 x22: 0x0000000102170b16 x23: 0x000000016fd11678
x24: 0x0000000000000000 x25: 0x000000012680d080 x26: 0x0000000000000000 x27: 0x00000001023c70b0
x28: 0x00000001023c4c20 fp: 0x000000016fd11610 lr: 0x0000000195ed5170
sp: 0x000000016fd115f0 pc: 0x0000000195e37270 cpsr: 0x00000000
Any ideas, leads, possible origin would be highly appreciated !

Why do I get an exception when updating row on sqlite with monotouch?

I have a simple table and when I try to update row on SQLite, the application close and expose this exception:
Stacktrace:
at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <0xffffffff>
at MonoTouch.UIKit.UIApplication.Main (string[],string,string) <0x000b7>
at RemedioNaHora.Application.Main (string[]) <0x00017>
at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <0xffffffff>
Native stacktrace:
0 RemedioNaHora 0x000908ec mono_handle_native_sigsegv + 284
1 RemedioNaHora 0x00005c88 mono_sigsegv_signal_handler + 248
2 libsystem_c.dylib 0x9365c59b _sigtramp + 43
3 ??? 0xffffffff 0x0 + 4294967295
4 UIKit 0x0219355a -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
5 UIKit 0x02238b76 -[UIControl sendAction:to:forEvent:] + 66
6 UIKit 0x0223903f -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 503
7 UIKit 0x0238aa6c -[_UISwitchInternalView _sendActions] + 121
8 Foundation 0x0173786d __NSFireDelayedPerform + 389
9 CoreFoundation 0x01195966 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 22
10 CoreFoundation 0x01195407 __CFRunLoopDoTimer + 551
11 CoreFoundation 0x010f87c0 __CFRunLoopRun + 1888
12 CoreFoundation 0x010f7db4 CFRunLoopRunSpecific + 212
13 CoreFoundation 0x010f7ccb CFRunLoopRunInMode + 123
14 GraphicsServices 0x04789879 GSEventRunModal + 207
15 GraphicsServices 0x0478993e GSEventRun + 114
16 UIKit 0x02190a9b UIApplicationMain + 1175
17 ??? 0x0b5b9784 0x0 + 190551940
18 ??? 0x0b5b89d0 0x0 + 190548432
19 ??? 0x0b5b8878 0x0 + 190548088
20 ??? 0x0b5b8907 0x0 + 190548231
21 RemedioNaHora 0x00009ff2 mono_jit_runtime_invoke + 722
22 RemedioNaHora 0x00169eee mono_runtime_invoke + 126
23 RemedioNaHora 0x0016dfd4 mono_runtime_exec_main + 420
24 RemedioNaHora 0x001733f5 mono_runtime_run_main + 725
25 RemedioNaHora 0x000671f5 mono_jit_exec + 149
26 RemedioNaHora 0x002116c9 main + 2825
27 RemedioNaHora 0x00003045 start + 53
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Does somebody know what happened?
It looks like an UISwitch is calling back into managed code. It's likely:
calling into an object that has been garbage collected (it's freed and can't be used anymore). Ensuring you kept a reference to the object being used would solve this; or
it could also be calling an UI element out of the main thread. Ensuring UI elements are only used form the main thread would solve that case.
Hopefully this will help you. If not we'll need to see some source code in order to help you further. You can edit your question to add it.

Categories