1
Bug Reports / Re: Segmentation fault matchPhotos
« on: December 14, 2017, 10:25:09 AM »
Hello Alexey,
I don't know how to submit the photoscan crashreport do you have any instructions? (that I searched for but didn't find)
Here is the log, I removed my own print to file log and changed it to print prefixed with "My print "
[zoocafe@VM_154_79_centos monkeyjob1]$ /home/zoocafe/photoscan-pro/photoscan.sh --platform offscreen -r script.py
SaveProject
saved project in 0.004647 sec
My print /home/zoocafe/pf-jobs/monkeyjob1
My print /home/zoocafe/pf-jobs/monkeyjob1/imgs
My print Number of photos:94
My print []
My print Success Add photos begin
AddPhotos
My print Success Add photos done
My print Success Match photos begin
MatchPhotos: accuracy = High, preselection = generic, keypoint limit = 40000, tiepoint limit = 4000, constrain features by mask = 0
/home/zoocafe/photoscan-pro/photoscan.sh: line 19: 27678 Segmentation fault (core dumped) "$dirname/$appname" "$@"
[zoocafe@VM_154_79_centos monkeyjob1]$
--- script start ---
# This is run as Python 3.5 by Photoscan
import PhotoScan
import os
import json
import datetime
photoFolder = "imgs"
doc = PhotoScan.app.document
scriptdir = os.path.dirname(os.path.abspath(__file__))
logFile = os.path.join(scriptdir, "job.log")
doc.save(os.path.join(scriptdir, "psproject.psz"))
chunk = PhotoScan.app.document.addChunk()
# Get images in the folder
imgFolder = os.path.join(scriptdir, photoFolder)
print(scriptdir)
print(imgFolder)
includedExts = ['jpg', 'jpeg', 'png', 'tif']
file_names = []
for fn in os.listdir(imgFolder):
fnlower = fn.lower()
if any(fnlower.endswith(ext) for ext in includedExts):
file_names.append(os.path.join(imgFolder,fn))
print("My print Number of photos:" + str(len(file_names)))
# print("My print Photos - start")
# for fn in file_names:
# timestampAndAppendTextToFile(fn)
# print("My print Photos - end")
# Add processing server
GPUdevices = PhotoScan.app.enumGPUDevices()
prettyJson = json.dumps(GPUdevices, indent=2)
print("My print " + str(prettyJson))
try:
print("My print Success Add photos begin")
chunk.addPhotos(file_names)
print("My print Success Add photos done")
print("My print Success Match photos begin")
chunk.matchPhotos(accuracy=PhotoScan.HighAccuracy, generic_preselection=True,reference_preselection=False)
print("My print Success Match photos done")
except Exception as e:
# traceback.print_exc() gives better error messager with line number
# but when outputing to file only last line is shown
print("My print PS_ERROR:" + str(e))
doc.save()
--- script end ---
I don't know how to submit the photoscan crashreport do you have any instructions? (that I searched for but didn't find)
Here is the log, I removed my own print to file log and changed it to print prefixed with "My print "
[zoocafe@VM_154_79_centos monkeyjob1]$ /home/zoocafe/photoscan-pro/photoscan.sh --platform offscreen -r script.py
SaveProject
saved project in 0.004647 sec
My print /home/zoocafe/pf-jobs/monkeyjob1
My print /home/zoocafe/pf-jobs/monkeyjob1/imgs
My print Number of photos:94
My print []
My print Success Add photos begin
AddPhotos
My print Success Add photos done
My print Success Match photos begin
MatchPhotos: accuracy = High, preselection = generic, keypoint limit = 40000, tiepoint limit = 4000, constrain features by mask = 0
/home/zoocafe/photoscan-pro/photoscan.sh: line 19: 27678 Segmentation fault (core dumped) "$dirname/$appname" "$@"
[zoocafe@VM_154_79_centos monkeyjob1]$
--- script start ---
# This is run as Python 3.5 by Photoscan
import PhotoScan
import os
import json
import datetime
photoFolder = "imgs"
doc = PhotoScan.app.document
scriptdir = os.path.dirname(os.path.abspath(__file__))
logFile = os.path.join(scriptdir, "job.log")
doc.save(os.path.join(scriptdir, "psproject.psz"))
chunk = PhotoScan.app.document.addChunk()
# Get images in the folder
imgFolder = os.path.join(scriptdir, photoFolder)
print(scriptdir)
print(imgFolder)
includedExts = ['jpg', 'jpeg', 'png', 'tif']
file_names = []
for fn in os.listdir(imgFolder):
fnlower = fn.lower()
if any(fnlower.endswith(ext) for ext in includedExts):
file_names.append(os.path.join(imgFolder,fn))
print("My print Number of photos:" + str(len(file_names)))
# print("My print Photos - start")
# for fn in file_names:
# timestampAndAppendTextToFile(fn)
# print("My print Photos - end")
# Add processing server
GPUdevices = PhotoScan.app.enumGPUDevices()
prettyJson = json.dumps(GPUdevices, indent=2)
print("My print " + str(prettyJson))
try:
print("My print Success Add photos begin")
chunk.addPhotos(file_names)
print("My print Success Add photos done")
print("My print Success Match photos begin")
chunk.matchPhotos(accuracy=PhotoScan.HighAccuracy, generic_preselection=True,reference_preselection=False)
print("My print Success Match photos done")
except Exception as e:
# traceback.print_exc() gives better error messager with line number
# but when outputing to file only last line is shown
print("My print PS_ERROR:" + str(e))
doc.save()
--- script end ---