Skip to content

Crash on empty file #9

Description

@erkkar

EddyPro engine crashes when it encounters an empty raw data file.

From the output:

...
Importing data for 03 August 2022 ################################################
Importing data for 04 August 2022 ################################################
Importing data for 05 August 2022 ###

At line 76 of file ../src/src_common/import_ascii.f90 (unit = 156, file = '/scratch/project_2006599/Rottasniitunsuo/ec-rawdata/2022/202208050130_Rottasniitunsuo.csv')
Fortran runtime error: End of file

Error termination. Backtrace:
#0  0x7f933448c762 in ???
#1  0x7f933448d229 in ???
#2  0x7f933448de5f in ???
#3  0x7f93346b97db in ???
#4  0x7f93346bd5cf in ???
#5  0x7f93346bd6e1 in ???
#6  0x4d52d9 in ???
#7  0x504510 in ???
#8  0x5047dd in ???
#9  0x4250cc in ???
#10  0x4728ac in ???
#11  0x4027ac in ???
#12  0x7f9333b2fcf2 in ???
#13  0x4027dd in ???
#14  0xffffffffffffffff in ???

The file 202208050130_Rottasniitunsuo.csv indeed is empty. After removing the file the processing ran ok.

I’m using EddyPro v7.0.9, and the same problem appears on both Windows and Linux environment.

I think the engine should rather issue a warning to the log and continue processing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions