Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - FrancoCorleone

Pages: [1]
General / Can't activate license
« on: August 02, 2023, 03:17:02 PM »
Error requesting activation
Can't access rehostable hostid. This could happen if it does not exist or
if you have no write access to /Library/Application Support/Reprise folder.
Details: No rehostable hostid top-level dir (-148)Unknown error: -11 (errno: -11)

This is what I get when I try to activate license using "Metashape.License().activate('xxx').
The activation process for this software is so overcomplicated...

Python and Java API / Python wrapper configure logging output
« on: October 28, 2022, 03:09:37 PM »
I'm struggling with setting up the intercepting mechanism for logging. I don't like how it's done currently, and maybe you can nudge me in the right direction.
Basically, I have a running process, that creates 3d models one after another using Python Wheel Package. I'm not using GUI!
I want each model to be processed and logs saved in separate file so I could then upload the results to my server for further investigation. Also it's possible for two models to be processed at the same time, so I'd rather avoid any GLOBAL settings. Ideally, we should be able to pass an instance of logger to Metashape script.

I don't want to use any linux piping or anything like that. Gotta be python native in that sense.

Python and Java API / Re: Segmentation fault at the process end
« on: August 03, 2022, 02:05:11 PM »
I confirmed the same behaviour on EC2 g4dn instance. This has like 32GB of RAM ant T4 Tesla GPU. No hiccups during processing really, I don't think it's RAM related.

Python and Java API / Re: Autonomous Metashape Java Wrapper with MAVEN
« on: August 02, 2022, 03:08:44 PM »
That kinda work is always appreciated!

Python and Java API / Re: Segmentation fault at the process end
« on: August 02, 2022, 03:02:34 PM »
I did some additional tests with literally commenting out operations from the bottom up, and it seems, that at least for Docker (I don't have currently access to windows machine to test), the segmentation fault comes from this line:

                           ghosting_filter=True, progress=lambda x: print(f"Progress {x}"))

I added a progress to see what's going on, and weirdly enough this how the end of it looks like:

Progress 84.99994046368285
Progress 85.0
done in 1.35395 sec
Progress 85.0
Progress 100.0

Like... the progress keeps logging after it's done? How's that possible?
I don't know if that's just a coincidence. I have no idea what's going on, but this is super annoying.
I appreciate any help

Python and Java API / Segmentation fault at the process end
« on: August 02, 2022, 01:48:37 AM »
Hi again, I opened another ticket, as previous one was only in regards to running in docker.
But this time, I run the processing script on Windows machine. It processes everything. I can see the last in my script is processed. I explicitly call some other operations after metashape part to confirm it runs correctly, and then, at the end, it shows Segmentation Fault. What can be the reason for that?

Looks like this problem is not limited to Docker. It works on my Mac, it works on native Linux, it throws on both Windows and inside Docker.


I should probably add one more thing. I tried to run the same script with metashape -r also in docker, and it didn't end with segfault. That's why I doubt it's a RAM related issue. I think it's more possible that the python wrapper doesn't release all allocated memory. What you think?

You see the unusual part is, it processes the whole thing. And then on exit, it doesn't return 0 but segfault instead. That's why I'm so confused.

General / Re: Historical versions of Metashape and Python wrapper
« on: July 23, 2022, 12:05:20 AM »
Hey this is windows executable. Can you provide ones for Macbook and Linux? I also need a library wrapper for python for those

General / Historical versions of Metashape and Python wrapper
« on: July 22, 2022, 05:13:01 PM »
Hey, for my tests, I need to access and installed Agisoft v. 1.5.1, yet I can't find it on your page. How can I download binaries and python wrappers?

@arafat but I was running that on quite powerful machines in docker. You think that was still too little?

Is it possible to define an executable path or a Metashape version if there are multiple installed on one machine? Ideally via some param, function or environment variable.


Hello all,
My first question is about a possible reason for Metashape finishing with segmentation fault using python wrapper for processing but that happens ONLY in docker. I tried on Mac, I tried on EC2 instance running natively, and then I tried in docker (GPU passed in, Vulkan available, ubuntu 18 based image). Whole processing is done correctly, and then it just exits with segmentation fault instead of code 0.

Any tips appreciated, this one is annoying to find.


Pages: [1]