Xamarin Forms: GeolocatorPlugin - DEADLINE_EXCEEDED - xamarin

I'm using GeolocatorPlugin, plugin by James Montemagno, with Xamarin Forms and sometimes it gives me the following error:
GeolocatorImplementation.GetAddressesForPositionAsync (Plugin.Geolocator.Abstractions.Position position, System.String mapKey) Java.IO.IOException: dhun: DEADLINE_EXCEEDED: deadline exceeded after 4.670355385s.
and the app crashes.
How can I control the error?

Related

Teams Conversation window displaying error message will not go away [duplicate]

This question already has answers here:
MS Teams App: There was a problem reaching this app
(2 answers)
Closed 7 months ago.
I have a C# botframework bot that I have been debugging and at some point received the error: There was a problem reaching this app -Retry-. Pressing -Retry- does nothing and now that error permanently takes up half of the chat window with the bot. I've read other people experiencing this with tabs pointing to a fix within the manifest file changing the loading indicator but this does not change the behavior. There is another issue with pinned apps: How to avoid There Was a Problem Reaching This App Error When Launching Pinned App from Teams Desktop Client ... but no apparent resolution yet. Anyone have suggestions? Thanks!
There is an ongoing issue in Teams that is causing some users to see an error ("There was a problem reaching the app") when navigating to the bot personal app from flyout. The fix is expected to begin rolling out on October 4th and reach 100% by October 8th.
Tracker: #4249
Suggested workarounds for this issue: utilizing the app in web browser, popping out the 1:1 chat, or using mobile Teams client.

Xamarin: InitializeComponent () is too complex

I am currently developing an App for IOS and Android with Xamarin Forms. I am debugging with my Android device.
Starting yesterday, when trying to build and test my solution, it falls into a break state before the App is even loaded.
The exception is:
System.InvalidProgramException: Method wuut.Discover:InitializeComponent () is too complex.
It works when I unplug my Android device and open the App on developer mode. But I really need the Console etc. so right now, I am unable to continue developing my app.
I looked up the exception on Google but couldn't really find anything similar to my problem.
The error occurs inside InitializeComponent on one of my Contentpages containing an AbsoluteLayout.
The AbsoluteLayout is rather big with 5400 Lines of Code. So looking into the error messages, I tried to remove a few chunks of my XAML and it started working again.
So my question is: Does XAML or Xamarin have some limitations on how big an AbsoluteLayout/Contentpage should be? If not, how would I resolve this issue?
Thanks in advance and kind regards

when change display size from settings, the app crash

I am using xamarin forms and a tablet emulator with SO Nougat 7.0 and try to update the display size, but if the app was running before that and I enter again, the app crash showing the next message
Fatal Exception: java.lang.IllegalArgumentException: No view found for id 0xc0 (unknown) for fragment FragmentContainer{ccebd66 #0 id=0xc0}
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1413)
at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1750)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1819)
at android.support.v4.app.BackStackRecord.executeOps(BackStackRecord.java:797)
at android.support.v4.app.FragmentManagerImpl.executeOps(FragmentManager.java:2590)
at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2377)
at android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2332)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2239)
at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:700)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
If I open the app again the display size is correct and can see the images bigger or smaller, but I canĀ“t get rid of the crash.

How to solve "Internal package processing error" at Window Phone App Submission Process?

When i make new submission for update my current Window Phone App to WindowsDevCenter>> Submissions >> Packages and after finish uploading that errors always appear
"Internal package processing error: System.ArgumentNullException:
Value cannot be null. Parameter name: key at
System.Collections.Generic.Dictionary`2.FindEntry(TKey key) at
Microsoft.MarketplaceServices.Ingestion.ProductCatalogService.Utilities.UnpublishedPhoneProductGuidProvider.GetIdByPackageFamilyName(String
name) in
c:\B\16\DCEProductCatalog_HFJuneLast\S\private\DCEProductCatalog\src\ProductCatalogFD\Utilities\UnpublishedPhoneProductGuidProvider.cs:line
208 at
Microsoft.MarketplaceServices.Ingestion.ProductCatalogService.Controllers.V1.PackageValidationV1Controller."
I had valid Windows Dev Account and my previous app was on window phone store. My new update app working surely at Window Phone Emulator and Real Window Phone Device but that "Internal package processing error" always happen in submission case. Please explain how can i solve that problem?
Currently i using Visual Studio 2010, Window Phone SDK 7.1 and my app target for Window Phone 7.1 and 8.
This is a known issue, take a look at this thread:
https://social.msdn.microsoft.com/Forums/windowsapps/en-US/81fcb869-6e0e-4540-b72b-f9398b103d64/wpslcryptic-error-seen-while-trying-to-upgrade-wp8-app?forum=wpdevelop
I think MS will solve this soon...i hope!

WP7 App doesn't work when ran from Visual Studio but once deployed on Device it works

I am working on Photo application.
In which a user can upload, view, and download pictures to and from the cloud.
For back-end I am using buddy API.
The problem I am facing is that once I choose a photo and try to upload it to the cloud it gives me 'Null reference exception' and this only happens when ran from Visual Studio (either to the device or emulator).
But once its deployed on my phone it uploads and behaves normally.
I don't know where to exactly put the blame and from where to start looking into this problem.
It fails on:
var photo = await album.AddPictureAsync(e.ChosenPhoto);
with the error:
A first chance exception of type 'System.NullReferenceException'
occurred in PhotoApplication.DLL

Resources