Hey guys,
I’m currently in the final Phase of developing my app for Windows Phone 8 using the current Unity Release. From time to time, I actually didn’t find any “system” or “structure” in the occurences, my app doesn’t receive inputs. The game itself keeps running, no performance loss whatsoever, just no Input. This state keeps persistent, even when I switch levels.
Actually the Input behaviour is a little more complex than just being blocked completely. When working with UI Elements I realised, that approximately one in five Inputs gets recongized (tap as Holding and second tap on same element gets reconginzed as release).
One additional side effect is that tombstoning the app and returning won’t work either.
Visual Studio Debugger mentions the exiting code 259. In spite of that no Errors are being thrown, also not when tombstoning and returning. It just Exits.
I’m using Microsoft Ads, Google Ads and AdDuplex as additional Tools. Might there be a relation? Anyone else ever experienced this Problem?
Thanks for your help.
Hi,
try switching to native debugger in VS project properties, debugging tab. It should show you more details of where it’s crashing.
Hey,
thanks for your reply. Running with native Debugger produced the following Output:
First-chance exception at 0x774459A3 in AgHost.exe: Microsoft C++ exception: Cn::XH at memory location 0x015BEC40.
First-chance exception at 0x774459A3 in AgHost.exe: Microsoft C++ exception: Cn::XH at memory location 0x015BED10.
First-chance exception at 0x774459A3 (KERNELBASE.DLL) in AgHost.exe: 0x04242420 (parameters: 0x31415927, 0x6EDB0000, 0x015BE310).
First-chance exception at 0x774459A3 in AgHost.exe: Microsoft C++ exception: EETypeLoadException at memory location 0x0856B438.
First-chance exception at 0x774459A3 in AgHost.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
First-chance exception at 0x774459A3 in AgHost.exe: Microsoft C++ exception: EETypeLoadException at memory location 0x0856B438.
First-chance exception at 0x774459A3 in AgHost.exe: Microsoft C++ exception: EETypeLoadException at memory location 0x0856B438.
First-chance exception at 0x774459A3 in AgHost.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
First-chance exception at 0x774459A3 in AgHost.exe: Microsoft C++ exception: EETypeLoadException at memory location 0x0856B438.
First-chance exception at 0x774459A3 in AgHost.exe: Microsoft C++ exception: EETypeLoadException at memory location 0x0856B438.
First-chance exception at 0x774459A3 in AgHost.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
First-chance exception at 0x774459A3 in AgHost.exe: Microsoft C++ exception: EETypeLoadException at memory location 0x0856B438.
First-chance exception at 0x774459A3 in AgHost.exe: Microsoft C++ exception: EETypeLoadException at memory location 0x0856B438.
First-chance exception at 0x774459A3 in AgHost.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
First-chance exception at 0x774459A3 in AgHost.exe: Microsoft C++ exception: EETypeLoadException at memory location 0x0856B438.
First-chance exception at 0x774459A3 in AgHost.exe: Microsoft C++ exception: EETypeLoadException at memory location 0x015BD3B8.
First-chance exception at 0x774459A3 in AgHost.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
First-chance exception at 0x774459A3 in AgHost.exe: Microsoft C++ exception: EETypeLoadException at memory location 0x015BD3B8.
First-chance exception at 0x774459A3 in AgHost.exe: Microsoft C++ exception: EETypeLoadException at memory location 0x015BD3B8.
First-chance exception at 0x774459A3 in AgHost.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
First-chance exception at 0x774459A3 in AgHost.exe: Microsoft C++ exception: EETypeLoadException at memory location 0x015BD3B8.
First-chance exception at 0x774459A3 in AgHost.exe: Microsoft C++ exception: EETypeLoadException at memory location 0x015BD420.
First-chance exception at 0x774459A3 in AgHost.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
First-chance exception at 0x774459A3 in AgHost.exe: Microsoft C++ exception: EETypeLoadException at memory location 0x015BD420.
First-chance exception at 0x774459A3 in AgHost.exe: Microsoft C++ exception: EETypeLoadException at memory location 0x015BD420.
First-chance exception at 0x774459A3 in AgHost.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
First-chance exception at 0x774459A3 in AgHost.exe: Microsoft C++ exception: EETypeLoadException at memory location 0x015BD420.
First-chance exception at 0x774459A3 (KERNELBASE.DLL) in AgHost.exe: 0xE0434352 (parameters: 0x805A0194, 0x00000000, 0x00000000, 0x00000000, 0x6EDB0000).
First-chance exception at 0x774459A3 (KERNELBASE.DLL) in AgHost.exe: 0xE0434352 (parameters: 0x80860001, 0x00000000, 0x00000000, 0x00000000, 0x6EDB0000).
These Errors even occur without the ads, so I honestly have no idea where this is coming from. Additionally there are no further Errors when the Input gets blocked. And it’s “just” FirstChance?
Here’s the Call Stack:
KERNELBASE.DLL!RaiseException() Unknown
MSVCRT.DLL!_CxxThrowException() Unknown
MINUSER.DLL!Cn::Throw::Now(class System::Exception *,char const *,unsigned int,void *) Unknown
MINUSER.DLL!Core::WindowManager::AddClass(class System::String *,struct Core::Atom,struct Core::FunctionPointer,int,int) Unknown
MINUSER.DLL!Core::Api::RegisterClassW(struct Core::WndClass *) Unknown
MINUSER.DLL!minRegisterClassW() Unknown
AgWebBrowserControl.dll!699f86b6() Unknown
AgWebBrowserControl.dll!699f4502() Unknown
AgWebBrowserControl.dll!699f43c6() Unknown
NTDLL.DLL!RtlUserThreadStart() Unknown
Thanks so far!
Is the callstack for first-chance exception, or a one that makes application crash? Are you using some kind of a webview in XAML? It seems to be caused by AgWebBrowserControl, which I believe is an internet explorer component.
The errors are first chance. The app doesn’t crash, but it slows down significantly for some frames. I should note that with blocked input the app runs just fine, no slow downs / performance problems.
The web browser component is used by adproviders to query and / or display ads. But errors are also thrown when no ad has been received - so on a regular and normal basis. I don’t know if these errors might arise from that fact.
It’s just weird that they persist even with all Ads deactivated, but the error (input blocking) never occurred with deactivated ads.
I am wondering if the issue might arise from threading problems. I control some part of the adcycle from within unity, but the ads themselves from within visual studio using BeginInvoke. Might that be a reason?
That should be fine - I’d expect it to throw exceptions if you messed up threading.
Could you share how your XAML layout looks like? Maybe XAML thinks the ad controls are bigger than they look and they cover whole screen, so they receive all the input instead of Unity, since they are on top. Did you try adding a dummy xaml control on top of your ads to see whether it can receive input?