Shin-NiL / Godot-Android-Share-Plugin

Android share plugin for Godot Game Engine 3.2 or higher
MIT License
52 stars 16 forks source link

Error when GodotGetImagePlugin-Android is also enabled #17

Closed PseudoC0de closed 3 years ago

PseudoC0de commented 3 years ago

This is an interesting one. Sharing was working fine until it stopped suddenly with the following error output:

05-18 15:18:17.911  6314  6394 D godot   : sharePic called
05-18 15:18:17.914  6314  6394 E godot   : The selected file can't be shared: /data/user/0/com.example.app/files/tempshot.png
05-18 15:18:17.915  6314  6394 E godot   : SharePic error: java.lang.IllegalArgumentException: Failed to find configured root that contains /data/user/0/com.example.app/files/tempshot.png

Eventually I got it to work again AFTER I disabled another plugin I had recently added: https://github.com/Lamelynx/GodotGetImagePlugin-Android

So, when both plugins are enabled sharing doesn't work, but when the GetImage plugin is disabled sharing works. This can be reproduced within the demo of this share plugin

There must be something causing an incompatibility when both are enabled that prevents the Share plugin from being able to open/find the image to share.

Any idea what can be changed to avoid the incompatibility? @Shin-NiL

PseudoC0de commented 3 years ago

Found a workaround, see this thread in the GetImage plugin's page:

https://github.com/Lamelynx/GodotGetImagePlugin-Android/issues/6#issuecomment-844168303