App exception on store version but not on debug build

Hi,

My app runs fine when deployed from visual studio or Unity but when downloaded from the store it freezes. It looks like some kind of exception is happening and it’s dropping out of the update code as it doesn’t actually crash.

I think it must be related to the way I’m saving files to the users data directory as I’ve read that there may be different permissions on the folders when doing this from visual studio/Unity. Does anyone know the best directory to use? I’ve tried application.datapath and application.persistentdatapath but neither work on the app store version.

Thanks,
Tony

You could use this folder Unity - Scripting API: Windows.Directory.localFolder

Thanks, I’ll give that a go. It’s pretty slow to test things because I need to upload a beta to the store to recreate the issue. I thought there might be a way for Visual Studio to attach to a running app but I couldn’t get it to work - only seems to work when debugging apps that have been deployed through the PC.

Try also this:

Sorry, I should have said that this is happening on a Windows Phone - that’s what was making it difficult :slight_smile:

Still, I think you can get UnityPlayer.log from the phone, additionally I think Microsoft keeps dump files in the dashboard online, you can try to get them there.

Thanks but unfortunately that only seems to be available for apps that I’ve installed myself. If I download the app from the store (as a beta) it doesn’t show up on any of the ‘power tools’ utilities so I can’t access any player logs.

There isn’t any dump files on the dashboard either because the app doesn’t actually crash, it just isn’t working because it’s getting some kind of exception which means it drops out of the currently running code (i.e it drops out of the start/update function halfway through)

Unless there’s some way of installing the app in the same way that it gets installed through the store then I’m not sure how else to track it down.