IBM MobileFirst 7.1 - Windows Phone Crashes - windows-phone-8.1

We are developing a hybrid application using IBM MobileFirst 7.1 and testing on a Windows Phone device.
We are making a lot of tests and we have some random crashes on application startup
First crash log:
The header x-wl-clientlog-deviceId has an empty value.
at System.Net.Browser.ClientHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
at System.Net.Browser.ClientHttpWebRequest.<>c__DisplayClasse.<EndGetResponse>b__d(Object sendState)
at System.Net.Browser.AsyncHelper.<>c__DisplayClass1.<BeginOnUI>b__0(Object sendState)
--- End of inner exception stack trace ---
at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
at System.Net.Browser.ClientHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at IBM.Worklight.WLNativeXHRSender.responseCallback(IAsyncResult asyncResult)
at System.Net.Browser.ClientHttpWebRequest.<>c__DisplayClass1d.<InvokeGetResponseCallback>b__1b(Object state2)}
Second crash log:
{System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.ValueCollection.Enumerator.MoveNext()
at System.IO.IsolatedStorage.IsolatedStorageSettings.Save()
at IBM.Worklight.WLConfig.writeWLPref(String prefName, String prefValue)
at IBM.Worklight.WLCookieManager.storeCookiesInIsolatedStorage()
at IBM.Worklight.WLNativeXHRSender.responseCallback(IAsyncResult asyncResult)
at System.Net.Browser.ClientHttpWebRequest.<>c__DisplayClass1d.<InvokeGetResponseCallback>b__1b(Object state2)}
The device used for tests is a Nokia Lumia 1320 running on Windows Phone 8.1
The used IBM MobileFirst version is 7.1.0.00.20160513-1010
The used environment is Windows Phone (Silverlight)
These logs seems to be related to Worklight / MobileFirst native code. Can you confirm that ? Are there any fixes for that ?
Please advice

This question required opening an IBM support ticket, and is thus handled as PMR #74734,024,677. The IBM development team is investigating it using a sample application provided by the customer.

Related

Lumia Imaging SDK throws System.TypeLoadException: Lumia.Imaging.StorageFileImageSource is not registered

I've used Lumia Imaging SDK (ver 2) for compressing images in my Windows Phone 8.1 RT application. The code for compression randomly throws the following exception:
System.TypeLoadException: Failure has occurred while loading a type.
Requested Windows Runtime type 'Lumia.Imaging.StorageFileImageSource' is not registered.,
Message: Failure has occurred while loading a type.,
Stacktrace: at System.StubHelpers.StubHelpers.GetWinRTFactoryObject(IntPtr pCPCMD)
at Lumia.Imaging.StorageFileImageSource..ctor(IStorageFile storageFile)
How can I fix this?
Update: I'm using Visual Studio 2013 Update 5. Details .

Windows Phone 8.1 throws a FileLoadException on startup

I'm currently building a Windows Phone 8.1 App (WinRT). I can build it in Debug Mode in Visual Studio 2013 without any problems. It is also runs in the emulator and on a real device. But when I build the app in Release mode it crashes instantly on both the emulator and the device.
In the Debug Output windows of Visual Studio I can see that a FileLoadException is thrown on startup. This means:
The exception that is thrown when a managed assembly is found but
cannot be loaded.
https://msdn.microsoft.com/de-de/library/system.io.fileloadexception%28v=vs.110%29.aspx
Unfortunately I can not see which assembly causes the problem! Is there any means to make the information visible?
A first chance exception of type 'System.IO.FileLoadException' occurred in MarketIQ.exe
A first chance exception of type 'System.IO.FileLoadException' occurred in mscorlib.ni.dll
'MarketIQ.exe' (CoreCLR: .): Loaded 'C:\windows\system32\en-US\mscorlib.debug.resources.dll'. Module was built without symbols.
A first chance exception of type 'System.ArgumentException' occurred in mscorlib.ni.dll
A first chance exception of type 'System.ArgumentException' occurred in mscorlib.ni.dll
'MarketIQ.exe' (CoreCLR: .): Loaded 'C:\Data\SharedData\PhoneTools\AppxLayouts\c53a5ef4-9f4f-4a1d-a5f4-2e73b5806daeVS.Release_AnyCPU.oprins\Log.Model.Client.DLL'. Cannot find or open the PDB file.
The program '[3020] MarketIQ.exe' has exited with code -1073741189 (0xc000027b).
The problem was device dependent. The app now runs smoothly after a factory reset.

XAML editor failes, Package failed updates, dependency or conflict validation.Windows cannot install package App

I have just installed Visual Studio Express 2013 update 4 on Windows 8.1 OS, and started a new Windows Phone App project. When I tried to open a View Designer page of any XAML, it fails with the following error message:
System.Exception
Package failed updates, dependency or conflict validation.
Windows cannot install package App.af631a335.af069.a4bf5.a81c7.af4c34f85cb29 because this package depends on another package that could not be found. This package requires minimum version 0.0.0.0 of framework Microsoft.VCLibs.120.00.Debug published by any publisher to install. Provide the framework along with this package.
at Microsoft.Expression.HostUtility.Platform.AppContainerProcessDomainFactory.CreateDesignerProcess(String applicationPath, String clientPort, Uri hostUri, IDictionary environmentVariables, Int32& processId, Object& processData)
at Microsoft.Expression.DesignHost.Isolation.Primitives.ProcessDomainFactory.ProcessIsolationDomain..ctor(ProcessDomainFactory factory, IIsolationBoundary boundary, AppDomainSetup appDomainInfo, FrameworkName targetFramework, String identifier, String baseDirectory)
at Microsoft.Expression.DesignHost.Isolation.Primitives.ProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)
at Microsoft.Expression.HostUtility.Platform.AppContainerProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)
at Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.Initialize()
at Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.CreateInstance[T](Type type)
at Microsoft.Expression.DesignHost.Isolation.IsolatedObjectFactory.Initialize()
at Microsoft.VisualStudio.ExpressionHost.Services.VSIsolationService.CreateObjectFactory(IIsolationTarget isolationTarget, IObjectCatalog catalog)
at Microsoft.Expression.DesignHost.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)
at Microsoft.Expression.DesignHost.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)
at Microsoft.Expression.DesignHost.IsolatedDesignerService.CreateLease(IIsolationTarget isolationTarget, CancellationToken cancelToken, DesignerServiceEntry& entry)
at Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)
at Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler.InvokeWithCulture[T](CultureInfo culture, Func`2 func, CancellationToken cancelToken)
at Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler.<>c__DisplayClassa`1.<StartTask>b__6()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
I Have tried repairing visual studio But no use.
I have checked this Question, But no use.
I have uninstalled Visual Studio 2013 Express Update 4 and installed again but no use .
Your issue says that you're missing this package : "Microsoft.VCLibs.120.00.Debug"
You can solve it by adding in the visual studio installer.
"Core Tools for Visual C++ Mobile Development" which is in the branch "Visual C++ for Cross Platform Mobile Development".
I just solved it by enabling the developer licence. I found the details here

facebook loginbutton sdk in c# crashing application

I need a small help
I have created a small physioit app for windows phone 8.
I have added facebookclient loginbutton in my xaml file.
Now when there is no data connection in my phone and when I run the code, it gives me TargetInvocationException and my app crashes.
Here is the exception I am getting –
innerException
{Facebook.WebExceptionWrapper: The remote server returned an error: NotFound. --->
System.Net.WebException: The remote server returned an error: NotFound.
at System.Net.Browser.ClientHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
at System.Net.Browser.ClientHttpWebRequest.<>c__DisplayClasse.<EndGetResponse>b__d(Object sendState)
at System.Net.Browser.AsyncHelper.<>c__DisplayClass1.<BeginOnUI>b__0(Object sendState)
--- End of inner exception stack trace ---}
System.Exception {Facebook.WebExceptionWrapper}
How can I catch this exception?
I am using the facebook sdk to create the loginbutton
Here is the code snippet
<facebookControls:LoginButton
x:Name="loginButton"
Grid.Row="2"
Margin="5"
HorizontalAlignment="Right"
FetchUserInfo="True"
ApplicationId="xxxxxx"
SessionStateChanged="OnFacebookSessionStateChanged"
UserInfoChanged="OnFacebookUserInfoChanged"
AuthenticationError="LoginButtonAuthenticationError" />
Can you please help me out.
You could use NetworkInterface to check whether data connection is available or not and then allow the login button to do its action.
Something like this..
if(System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable())
//Allow login button
else
//Message user - no internet connection

Robovm Libgdx demo fails at runtime with unresolved native function for objc_getSharedAccelerometer

I have run the "hello world cocoa" example from the robovm official site successfully.
But when I run the libgdx robovm demo, while it compiles OK, it fails with a runtime error.
I have followed every step of the wiki.
Do you have any advice?
[debug] IOSApplication: View: Portrait 320x480
[debug] IOSGraphics: 320.0x480.0, 1.0
[debug] IOSGraphics: Calculating density, UIScreen.mainScreen.scale: 1.0
[debug] IOSGraphics: Display: ppi=163, density=1.0
Exception in thread "main" java.lang.UnsatisfiedLinkError: Failed to resolve native function for method private static native org.robovm.cocoatouch.uikit.UIAccelerometer org.robovm.cocoatouch.uikit.UIAccelerometer.objc_getSharedAccelerometer(org.robovm.objc.ObjCClass,org.robovm.objc.Selector) with bridge annotation #org.robovm.rt.bro.annotation.Bridge(symbol=) in library #org.robovm.rt.bro.annotation.Library(value=UIKit)
at org.robovm.rt.bro.Runtime.resolveBridge(Runtime.java)
at org.robovm.rt.bro.Bro.bind(Bro.java)
at org.robovm.objc.ObjCRuntime.bind(ObjCRuntime.java)
at org.robovm.cocoatouch.uikit.UIAccelerometer.<clinit>(UIAccelerometer.java)
at com.badlogic.gdx.backends.iosrobovm.IOSInput.setupAccelerometer(IOSInput.java)
at com.badlogic.gdx.backends.iosrobovm.IOSInput.setupPeripherals(IOSInput.java)
at com.badlogic.gdx.backends.iosrobovm.IOSApplication.didFinishLaunching(IOSApplication.java)
at com.badlogic.gdx.backends.iosrobovm.IOSApplication$Delegate.didFinishLaunching(IOSApplication.java)
at org.robovm.cocoatouch.uikit.UIApplicationDelegate$Callbacks.didFinishLaunching(UIApplicationDelegate.java)
at org.robovm.cocoatouch.uikit.UIApplication.UIApplicationMain(Native Method)
at org.robovm.cocoatouch.uikit.UIApplication.main(UIApplication.java)
at com.badlogicgames.superjumper.SuperJumperIOS.main(SuperJumperIOS.java)
The libgdx RoboVM backend only works properly with the latest nightly build of RoboVM and from the stacktrace you posted I guess you're using an older version. Please try the latest build from http://download.robovm.org.