jfiguinha / Regards

Photo Video Viewer
https://jfiguinha.000webhostapp.com/
Other
27 stars 2 forks source link

Permissioning failures when installed from snap on Ubuntu 22.04 #7

Closed johnmee closed 2 years ago

johnmee commented 2 years ago

Shame. Shows enormous promise, but I couldn't get anything useful out of it.

It does open up and render the whole workspace. I could get it to show a single jpeg.

snap-id: 6Aiq7oUm4iVn8Mg4vASvKZWQwhqktakM tracking: latest/stable refresh-date: today at 10:51 AEST channels: latest/stable: 2.72.1 2022-06-03 (19) 519MB -

But perhaps best to sort out some of the boot sequence issues reported first...

~/Pictures$ regardsviewer 
ERROR: ld.so: object '/usr/local/lib/AppProtection/libAppProtection.so' from /etc/ld.so.preload cannot be preloaded (failed to map segment from shared object): ignored.
ERROR: ld.so: object '/usr/local/lib/AppProtection/libAppProtection.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/local/lib/AppProtection/libAppProtection.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/local/lib/AppProtection/libAppProtection.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/local/lib/AppProtection/libAppProtection.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/local/lib/AppProtection/libAppProtection.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/local/lib/AppProtection/libAppProtection.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/local/lib/AppProtection/libAppProtection.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Gtk-Message: 11:03:38.202: Failed to load module "canberra-gtk-module"
Gtk-Message: 11:03:38.203: Failed to load module "canberra-gtk-module"
SQLite in serialized mode 
LoadBpgDll
LoadBpgDll
LoadBpgDll enable to load library
ResourceDB /snap/regardsviewer/19/opt/RegardsViewer/Resources/resource.db 
GetListOfPlatform 
CTreeWindow::SetTreeControl 
CScrollbarWnd::Resize() controlHeight : 0 pictureHeight : 292 
CScrollbarWnd::Resize() controlWidth : 0 pictureWidth : 450 
Init() width : 0 height : 0 
SetWindowRightSize width : 0 y : 0 right_height : -14  
central x 0 
central width 0 
Init() width : 0 height : 0 
SetWindowRightSize width : 0 y : 0 right_height : 0  
central x 0 
central width 0 
Init() width : 450 height : 292 
SetWindowRightSize width : 450 y : 0 right_height : 292  
central x 0 
central width 450 
CScrollbarWnd::Resize() controlHeight : 580 pictureHeight : 292 
CScrollbarWnd::Resize() controlWidth : 533 pictureWidth : 450 
Init() width : 450 height : 292 
SetWindowRightSize width : 450 y : 0 right_height : 292  
central x 0 
central width 436 
Init() width : 450 height : 292 
SetWindowRightSize width : 450 y : 0 right_height : 278  
central x 0 
central width 436 
CCategoryFolderWindow::UpdateCriteria() 
CTreeWindow::SetTreeControl 

** (RegardsViewer:1114121): WARNING **: 11:03:40.542: Failed to start web extension server on unix:tmpdir=/tmp: Error binding to address (GUnixSocketAddress): Permission denied

** (RegardsViewer:1114121): WARNING **: 11:03:40.545: Could not open /sys/class/dmi/id/chassis_type: Failed to open file ?/sys/class/dmi/id/chassis_type?: Permission denied

** (RegardsViewer:1114121): WARNING **: 11:03:40.545: Could not open /sys/firmware/acpi/pm_profile: Failed to open file ?/sys/firmware/acpi/pm_profile?: Permission denied
ERROR: ld.so: object '/usr/local/lib/AppProtection/libAppProtection.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/local/lib/AppProtection/libAppProtection.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.

(RegardsViewer:1114121): GLib-GIO-CRITICAL **: 11:03:40.554: g_dbus_server_get_client_address: assertion 'G_IS_DBUS_SERVER (server)' failed

(RegardsViewer:1114121): GLib-CRITICAL **: 11:03:40.554: g_variant_new_string: assertion 'string != NULL' failed

(process:1114149): GLib-GIO-WARNING **: 11:03:40.598: GDBus.Error:org.freedesktop.portal.Error.NotAllowed: This call is not available inside the sandbox
Init() width : 3840 height : 1987 
SetWindowLeftSize 960 
SetWindowRightSize width : 3840 y : 0 right_height : 1747  
SetWindowRightSize rect.x : 0 rect.y : 0 rect.width : 0 rect.height : 0 
SetWindowRightSize 960 
central x 964 
central width 1912 
CPane Resize size x : 960 y : 1987 
CPane Resize size x : 2876 y : 240 
CScrollbarWnd::Resize() controlHeight : 0 pictureHeight : 210 
CScrollbarWnd::Resize() controlWidth : 0 pictureWidth : 2876 
Init() width : 0 height : 0 
SetWindowRightSize width : 0 y : 0 right_height : -14  
central x 0 
central width 0 
Init() width : 0 height : 0 
SetWindowRightSize width : 0 y : 0 right_height : 0  
central x 0 
central width 0 
Init() width : 2876 height : 210 
SetWindowRightSize width : 2876 y : 0 right_height : 210  
central x 0 
central width 2876 
CPane Resize size x : 960 y : 1747 
CScrollbarWnd::Resize() controlHeight : 0 pictureHeight : 160 
CScrollbarWnd::Resize() controlWidth : 0 pictureWidth : 960 
Init() width : 0 height : 0 
SetWindowRightSize width : 0 y : 0 right_height : -14  
central x 0 
central width 0 
Init() width : 0 height : 0 
SetWindowRightSize width : 0 y : 0 right_height : 0  
central x 0 
central width 0 
johnmee commented 2 years ago

In the Ubuntu Software application there is a 'Permissions' dialog.

Granting Read system mount information and disk quotas and Read/write files on removable storage devices, made it a lot more useful: I can get to my store of jpegs and seems to work fine for that. That other local dir really on had heic files in it; some render but a lot don't. I'm wondering if the don'ts are actually those funky 'live' photos that the iphone does.

I can navigate next/prev now; perhaps it could only 'see' one file.

Notes for the the initial experience are

jfiguinha commented 2 years ago

Thanks for you return. I need some complementary information Can you send me your computer configuration ? I will try it. Thanks

johnmee commented 2 years ago

I have two SSDs. The first has the linux OS and the second, with all the images, is mounted at /mnt/john/. It looks like the snap needs to be granted those special permissions to access another file system. thx.