Languages

Menu
Sites
Language
Segmentation Fault while using Google Drive .NET API

Hello,

I'm trying to make a Google Drive App.
I've made all the steps from the home page, have the latest version for the VS Plugin and Tizen SDK (as asked here: https://github.com/Samsung/Tizen-CSharp-Samples/issues/31)
I've used Google's .NET Quickstart guide (https://developers.google.com/drive/api/v3/quickstart/dotnet) in a console application, in which it works perfectly, but in the Tizen 5.0 Class Library (added to the Blank App Xamarin Form) I stumble only on "Segmentation Fault".

The first one is when it's trying to read the credentials.json file (which was added to the solution and set to be copied to the location of the executable).
I've fixed this by using StorageManager.Storages and looking for the Internal StorageType, then created the file, if it didn't exist, and adding the json to it (using System.IO.File). I've also replaced "new FileStream("credentials.json", ...)" with "System.IO.File.Open(credentialsPath, ...)".
The only hint I had for this was the call stack which indicated that there was a problem when accessing the memory (see first image).

The second one is when it tries to call AuthorizationAsync. Unfortunately this it the first place in which I couldn't figure out what I should do because the call stack wasn't of help (see second image).

The third one is when I've tried a new approach. This one goes further, but fails when it tries to get the files from the service. The call stack shows that there is a memory access problem, but I can't figure out what might cause this (see third image).
Screenshots: https://imgur.com/a/J6mkfYe

I have the following privileges in the manifest: internet, network.get, mediastorage, systemsettings, externalstorage, filesystem.read, filesystem.write. The last five were added thinking that they are the fix for the first problem and I've left them just in case.

Is there a way to get more information on the actual error or is there a correct way of doing a connection with Google Drive ?

Thank you,
Flavius

Responses

2 Replies
Armaan-Ul- Islam

Hello Flavius Bejan,

You might try Creating/Posting an Issue on Tizen C# Repository...

https://github.com/Samsung/TizenFX/issues

 

Flavius Bejan

Hello,

I've discussed the issue on GIT: https://github.com/Samsung/Tizen-CSharp-Samples/issues/64

Currently Tizen doesn't support the Google Library, yet. There you can find the solution for the first problem, and how to open a browser from your app.

I wish you a good day,
Flavius