Forum

Author Topic: Saving PhotoScan Project taking hours and cannot cancel  (Read 5214 times)

gowithbanana

  • Newbie
  • *
  • Posts: 4
    • View Profile
Saving PhotoScan Project taking hours and cannot cancel
« on: June 07, 2017, 02:41:40 PM »
I have an issue with occasional freezes within my python processing chain where I try to save the PhotoScan project. The saving will take hours and does not stop. When I try to cancel it, it does not cancel and the saving project dialogue stays open. I have to kill the Agisoft process and lose all my progress. The most recent freeze was in this part of code:

Code: [Select]
doc = PhotoScan.Document()
doc.save(SomePath, chunks=doc.chunks)

# some other processes

chunk = doc.chunks[0]
if something:
    1_chunk = doc.chunks[1]
    2_chunk = doc.chunks[2]
else:
    1_chunk = doc.chunks[0]

1_chunk.buildOrthomosaic(surface=PhotoScan.DataSource.ModelData, blending=PhotoScan.MosaicBlending,
                                   color_correction=bool(Color_correction), fill_holes=True)
doc.save()

The freeze occurs on the last doc.save()

I guess the code will not say too much. However, maybe I am doing something wrong with redeclaring chunks, or I have to reopen the Photoscan document. I get these freezes occasionally and they can occur in other parts of the chain.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15086
    • View Profile
Re: Saving PhotoScan Project taking hours and cannot cancel
« Reply #1 on: June 07, 2017, 03:01:14 PM »
Hello gowithbanana,

Have you tried the same code running from GUI to see, if anything has been generated and if it's generated correctly?
Best regards,
Alexey Pasumansky,
Agisoft LLC

gowithbanana

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Saving PhotoScan Project taking hours and cannot cancel
« Reply #2 on: June 07, 2017, 04:18:06 PM »
Hi Alexey,

I'm currently rerunning the script to see if the freeze was just a random freeze. Later on I will run it from the GUI and console.

gowithbanana

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Saving PhotoScan Project taking hours and cannot cancel
« Reply #3 on: June 09, 2017, 11:13:44 AM »
It appeared to be a random freeze, because continueing the process finished without freezing up. However, because it has occured before I'd like to help getting it prevented. Anything I should do to make sure you get the right information the next time it happens?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15086
    • View Profile
Re: Saving PhotoScan Project taking hours and cannot cancel
« Reply #4 on: June 09, 2017, 12:13:48 PM »
Hello gowithbanana,

How many polygons are in the mesh model that you are using for the orthomosaic generation? What is the default view option in the Preferences window and what's the graphic card and driver version?
Best regards,
Alexey Pasumansky,
Agisoft LLC