Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error when using command ChgSysCo #212

Open
Nic0w opened this issue Dec 31, 2022 · 2 comments
Open

Fatal error when using command ChgSysCo #212

Nic0w opened this issue Dec 31, 2022 · 2 comments

Comments

@Nic0w
Copy link

Nic0w commented Dec 31, 2022

Hi,

I have been trying to use Micmac lately with MicMacWorkflowsByLucGirod, especially DroneNadir.sh.

The flow would not complete, ending with a fatal error. I have been trying to pinpoint the source of the error and I found out the problem comes from command ChgSysCo.
The following command is ran:

mm3d ChgSysCo ".*JPG" Ground_RTL [email protected] Ground_PROJ

and it ends with:

...
NO GUIMBAL P6431690.JPG 0.999752
NUM 19 FOR P6441691.JPG
NO GUIMBAL P6441691.JPG 0.999588
NUM 20 FOR P6451692.JPG
NO GUIMBAL P6451692.JPG 0.999613
NUM 21 FOR P6461693.JPG
NO GUIMBAL P6461693.JPG 0.999639
BEGIN Compensation
BEGIN AMD
END AMD
APPLI APERO, NbUnknown = 144
sh: -c: line 0: unexpected EOF while looking for matching `"'
sh: -c: line 1: syntax error: unexpected end of file
NAME = [Proj4Output58175_725_495_415.txt]
-----------------------------------------------------------------
|   KIND OF ERR : User's error
|   Sorry, the following FATAL ERROR happened
|
|     can't open file :
|     [Proj4Output58175_725_495_415.txt](in mode rb)
|
-----------------------------------------------------------------
Bye  (press enter)

I feel like the issue is related to a malformated bash command that's being run by the program (a call to system() ?), seeing the shmessages just before the crash. That being said, I have not been able to pinpoint the location of the related code in micmac's source code...

I'm using a MacBook M1 Pro with MacOS Ventura 13.1 (22C65) coming with GNU bash, version 5.2.15(1)-release.

Thanks in advance for any help,

@sbonaime
Copy link
Contributor

I also have an error on mac ! With the same data ChgSysCo works fine with windows. Here is my error with micmac V1.1.1 on On macos 14.4.1 (23E224)

 mm3d ChgSysCo  ".*JPG"  CalGps RTLFromExif.xml@SysCoFR93_EPSG2154.xml CalRGF93
DPPPP= ./ .*JPG
COM = /Users/bonaime/git/micmac/bin/mm3d Apero /Users/bonaime/git/micmac/include/XML_MicMac/Apero-ChCo.xml  DirectoryChantier=./  +SetIm=.*JPG  +AeroIn=-CalGps  +AeroOut=-CalRGF93  +ChC=RTLFromExif.xml@SysCoFR93_EPSG2154.xml  +ChCFR=1
BEGIN Pre-compile
NEW CALIB TheKeyCalib__Foc-8800_Cam-FC6310R
BEGIN Load Observation
"NKS-Set-Orient@-CalGps": 26 matches.
Pack Obs NKS-Set-Orient@-CalGps NB 26
BEGIN Init Inconnues
NUM 0 FOR 01.JPG
NO GUIMBAL 01.JPG 0.999769
NUM 1 FOR 02.JPG
NO GUIMBAL 02.JPG 0.999863
NUM 2 FOR 03.JPG
NO GUIMBAL 03.JPG 0.999895
NUM 3 FOR 04.JPG
NO GUIMBAL 04.JPG 0.999914
NUM 4 FOR 05.JPG
NO GUIMBAL 05.JPG 0.99993
NUM 5 FOR 06.JPG
NO GUIMBAL 06.JPG 0.999953
NUM 6 FOR 07.JPG
NO GUIMBAL 07.JPG 0.999977
NUM 7 FOR 08.JPG
NO GUIMBAL 08.JPG 0.999935
NUM 8 FOR 09.JPG
NO GUIMBAL 09.JPG 0.99991
NUM 9 FOR 10.JPG
NO GUIMBAL 10.JPG 0.999952
NUM 10 FOR 11.JPG
NO GUIMBAL 11.JPG 0.999977
NUM 11 FOR 12.JPG
NO GUIMBAL 12.JPG 0.999967
NUM 12 FOR 13.JPG
NO GUIMBAL 13.JPG 0.999988
NUM 13 FOR 14.JPG
NO GUIMBAL 14.JPG 0.999999
NUM 14 FOR 15.JPG
NO GUIMBAL 15.JPG 1
NUM 15 FOR 16.JPG
NO GUIMBAL 16.JPG 0.999692
NUM 16 FOR 17.JPG
NO GUIMBAL 17.JPG 0.999767
NUM 17 FOR 18.JPG
NO GUIMBAL 18.JPG 0.999829
NUM 18 FOR 19.JPG
NO GUIMBAL 19.JPG 0.999875
NUM 19 FOR 20.JPG
NO GUIMBAL 20.JPG 0.999841
NUM 20 FOR 21.JPG
NO GUIMBAL 21.JPG 0.999909
NUM 21 FOR 22.JPG
NO GUIMBAL 22.JPG 0.999939
NUM 22 FOR 23.JPG
NO GUIMBAL 23.JPG 0.999945
NUM 23 FOR 24.JPG
NO GUIMBAL 24.JPG 0.999948
NUM 24 FOR 25.JPG
NO GUIMBAL 25.JPG 0.999967
NUM 25 FOR 26.JPG
NO GUIMBAL 26.JPG 0.999977
BEGIN Compensation
BEGIN AMD
END AMD
APPLI APERO, NbUnknown = 164
Rel. 9.4.0, March 1st, 2024
<proj>:
can't initialize operations that take non-angular input coordinates. Try cct.
program abnormally terminated

@gducerf
Copy link

gducerf commented Oct 22, 2024

Same problem here, with GNU/Linux Debian 12 (on Intel).
With Proj Rel. 9.1.1, December 1st, 2022.

[...]
BEGIN Compensation
BEGIN AMD 
END AMD 
APPLI APERO, NbUnknown = 1116
Rel. 9.1.1, December 1st, 2022
<proj>: 
can't initialize operations that take non-angular input coordinates
program abnormally terminated
Erreur de segmentation

edit:
It seems this is a problem with my SysProj.xml

<SystemeCoord>
         <BSC>
            <TypeCoord>  eTC_Proj4 </TypeCoord>
            <AuxR>       1        </AuxR>
            <AuxR>       1        </AuxR>
            <AuxR>       1        </AuxR>
            <AuxStr>  +proj=lcc +lat_0=46.5 +lon_0=3 +lat_1=49 +lat_2=44 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs   </AuxStr>
         </BSC>
</SystemeCoord>

Any idea to change coordonates from WGS84 to EPSG2154 ?
I haven't found any documentation about this XML file.

@sbonaime what your SysCoFR93_EPSG2154.xml looks like ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants