Solvedmeshlab [Ubuntu - Snap] Can't open any file on external hard drive

MeshLab 2016.12 release on Ubuntu 16.04.
Problem: MeshLab won't open any .PLY files on any external hard drive. I have tested two different drives, and the issue is the same. I have tested if the .PLY file is valid: It is -- when I copy it to the internal hard drive, it will open fine.

The exact error reported by MeshLab upon trying to open the .PLY is:

While opening: '/media/user/external_hd/model.ply'

Error encountered while loading file:
"/media/user/external_hd/model.ply"

Error details: Can't open file

I have attached an example .PLY file that exhibits the problem when copied to an external drive.
model.ply.zip

12 Answers

✔️Accepted Answer

I had the same issue (also Meshlab 2016.12 running on Ubuntu 16.04). I couldn't open a file under /mnt. I had installed Meshlab using Snap. This is the crucial point.

Snap has a security model (confinement) which restricts the app from seeing directory contents and opening files.

Snaps can be configured to have access to removable media and other locations, so I think this could be solved by changing the Snap package.

For now, we can install Meshlab using the devmode, which disables confinement. The application will then have file permissions as if it was installed using apt (see https://tutorials.ubuntu.com/tutorial/advanced-snap-usage#3).

sudo snap install --devmode meshlab

This solved the problem for me, I can now see and open files under /mnt and /media.

Other Answers:

TL;DR Run and files from external drives will be accessible.

sudo snap connect meshlab:removable-media

After some googling I found these two pages.

Running snap info --verbose meshlab tells us that meshlab is runing in strict confinement.

..., strictly confined snaps can not access your files, network, processes or any other system resource without requesting specific access via an interface

If we look at which interfaces meshlab is connected to, we find:

> snap connections meshlab   
Interface        Plug                     Slot     Notes
home             meshlab:home             :home    -
[...]
removable-media  meshlab:removable-media  -        -

meshlab:home is connected to :home meaning that it has "access non-hidden files in the home directory", while meshlab:removable-media isn't connected.

As described :removeable-media "allows read/write access to mounted removable storage in /media, /run/media and /mnt."

I have additional hard drives mounted in /mnt, and USB drives are mounted in /media when plugged in, so after running:

sudo snap connect meshlab:removable-media

Files from external/additional drives are now possible to open!

It seems like this isn't something you can't enable by default. Instead, the user is supposed to either run the command above, or through the Ubuntu Software GUI:

permissions

Related Issues:

11
meshlab [Ubuntu - Snap] Can't open any file on external hard drive
I had the same issue (also Meshlab 2016.12 running on Ubuntu 16.04) I couldn't open a file under /mn...
50
Open3D ImportError: /lib64/libm.so.6: version 'GLIBC_2.27' not found
I met the same question after pip install and I solved it by specifying a version python -m pip inst...
39
loam_velodyne loam_velodyne failed
You can try removing the line: loam_velodyne/CMakeLists.txt Line 35 in 25db5dd add_definitions( -mar...
28
three.js Transform examples/js to support modules
We're not saying we should have the examples as modules We're saying that some of the files referenc...
22
libgdx Libgdx project fails to compile with 'Cannot change strategy of configuration ':android:natives'' after it has been resolved.
After convert to AndroidX approach described above didn;t help The issue is very easy to recreate us...
16
Open3D JVisualizer python27 AttributeError: 'module' object has no attribute 'PointCloud'
pip install open3d-python fixes the no attribute 'PointCloud' problem for me I'm using Ubuntu 16.04 ...
16
three.js GLTFLoader display model is darker
@donmccurdy I did some digging and think I gained some surface-level knowledge on this topic of colo...
13
three.js VR render path and optimizations
Some progress.. As of 07b0896 Three.js is currently the most popular choice when developing WebVR We...
13
three.js No way of cloning a mesh so it works with a skinning material
Following up here Skinned material need their own geometry to work This is because the material defo...
11
three.js OrbitControls: How to zoom smoothly
TrackballControls supports smooth zooming so my solution was to use a combination of both For OrbitC...
10
three.js es6 import three.js
You're excluding node_modules in babel-loader (so three.modules.js never goes through Babel) and onl...
6
cesium Warning during webpack compilation of ES6 modules
Respectfully can I ask that this ticket be re-opened? I did a little digging into Webpack to figure ...
5
Open3D Open 3D package for Apple silicon M1
Hi @DikZoo you may try this experimental build let me know if it works for you ...
5
react three fiber Panning / Orbit Controls
@gino8080 you can also import OrbitalControl from drei I'm trying to implement a panning system on s...
4
armorpaint Internationalization
You can import static fields of a class in haxe. Hi how can we help this be translated in spanish? ...
4
model viewer Wall placement not working on Scene-Viewer mode
Retesting with Google app v 12.19.11.29.arm64 Vertical placement looks fixed! ✅ I can now go into Sc...
4
three.js Collada file not displaying the object properly with canvas
@Perinban BTW: This is how it feels implementing a loader for Collada and then test it with random d...
3
aframe No Alpha Channel Video Format capable working on iOS / Apple devices
Hello @javismiles Good that you have found a solution Currently using the latest versions on PC/Mac/...
3
armory SDK error and Code editor
Hi I need help getting started When I ran the playground example the game wouldn't run because it co...
3
armory Node “Gate” - Execution Error (C/HL targets)
So I found a minimal working example of the bug: I've opened an issue on the Kha repo here If it can...
3
Open3D Convert Realsense poincloud in Open3D pointcloud
To test te most efficient way to show in realtime the pointcloud from Realsense ...
3
react three fiber ✍️ Roadmap for 2.x (suggestions welcome)
@samburgers with the last commits that went in you can do this easily Just keep configs in state and...
12
Cura Unable to open any STL in 4.7
It is not very easily hackable but it is possible The following instructions come with no warranty p...
6
Marlin Full graphic controller issues under Arduino >1.0.6
Just hit this with a Tevo Tornado with a MKS GEN L board and RRD Full Graphic Smart Controller tryin...
5
Marlin Extruder fan doesn't come on automatically.
To sum up the intended way to do configuration for the En_AUTO_FAN_PIN settings is to just comment o...
5
Marlin Reprap Discount Full Graphics Smart Controller Display is Garbled
I've tried 0 400 0 and 250 250 250 but nothing changes So here I am again ...
4
Cura Z-axis not moving up as it should in new Cura 3.6.0
Great that confirms the bug and it has to be one of the oddest bugs I've seen in a long time ...
3
Marlin [BUG] TMC2209 Sensorless homing sensitivity is off
@boelle Thank you for reopening it I'm about to close it again but I will update for the benefit of ...
3
Marlin Ender 3 v1 with 4.2.7 board
Marlin Firmware to get Creality v4.2.7 boards working perfectly Steps to help anybody that needs to ...
3
Marlin Marlin with power loss and resume
which firmware version has this bugfix-1.1.x and bugfix-2.0.x how can I activate the feature so I ca...
3
Cura 2.6 Filament Diameter and Nozzle Temp Ignored
Thanks for reporting I'm using Cura 2.6 on Windows this is a clean install with no previous profiles...
3
Cura [3.5] Temperature is not correct in the GCode
Does M104 S{material_print_temperature 0} work for you? I Have the following entry in the Start GCod...
10
trimesh how to color vertices on meshes and how to visualize several meshes in a row with some background?
Hey yeah you could use trimesh.visual.interpolate for that: Hi Thanks for the good library ...
4
trimesh rendering using camera matrices
For future reference: I made the two images agree by inserting the two lines after the creation of R...
45
pointnet2 Undefined symbol:
I had the same problem after compiling the custom tf ops Hello I am trying to run: python train.py ...
16
pcl Mojave Xcode 10.1; pcl 1.8 make: cmath: no member named isinf
I encounter this problem too Problem The system uses a wrong toolchain path Hi I want to build and i...
3
mmdetection3d ImportError: libtorch_cuda_cu.so: cannot open shared object file
Quite interesting You can successfully import mmcv while fail to do it in the mmdet3d (from the erro...