# ERROR detected in Smkreport / ERROR: Running qa\_run for inv

**URL:** <https://forum.cmascenter.org/t/error-detected-in-smkreport-error-running-qa-run-for-inv/5787>\
**Category:** SMOKE\
**Created:** [May 7, 2025, 11:54am UTC](https://forum.cmascenter.org/t/error-detected-in-smkreport-error-running-qa-run-for-inv/5787 "2025-05-07T11:54:05Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![katewilkins](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@katewilkins](https://forum.cmascenter.org/u/katewilkins)\
**Post date:** [May 7, 2025, 11:54am UTC](https://forum.cmascenter.org/t/error-detected-in-smkreport-error-running-qa-run-for-inv/5787/1 "2025-05-07T11:54:05Z")

</div>

Hi there,

I’ve received this error when trying to run smkreport for a new pollutant in the UK (using SMOKE v4.9):

> Program received signal SIGSEGV: Segmentation fault - invalid memory reference.
> 
> Backtrace for this error:  
> #0 0x155285f48d4f in ???  
> #1 0x15528607ed86 in ???  
> #2 0x408281 in ???  
> #3 0x448054 in ???  
> #4 0x402e6c in ???  
> #5 0x155285f3329c in ???  
> #6 0x402ec9 in ???  
> at ../sysdeps/x86\_64/start.S:120  
> #7 0xffffffffffffffff in ???  
> Segmentation fault  
> 0.091u 0.179s 0:02.07 12.5% 0+0k 153940+72io 3081pf+0w  
> SCRIPT NOTE: timetracker is replacing line 2 of the TIMELOG file  
> Missing ‘}’.  
> now checking log file [dir]/smoke/run\_2023\_cb6\_pfas/static/logs/smkreport\_pt\_pfas\_2023\_cb6\_pfas\_inv.log
> 
> * * *
> 
> - ERROR detected in logfile:
> - [dir]/smoke/run\_2023\_cb6\_pfas/static/logs/smkreport\_pt\_pfas\_2023\_cb6\_pfas\_inv.log
> 
> * * *
> 
> ERROR detected in Smkreport  
> ERROR: Running qa\_run for inv  
> log analyzer  
> Getting message data (might take some time)…  
> grep: [dir]/smoke/run\_2023\_cb6\_pfas/static/logs: Is a directory  
> grep: [dir]/smoke/run\_2023\_cb6\_pfas/static/logs: Is a directory  
> Finished getting data  
> Classifying message types…  
> Total number of known messages: 12  
> Total number of unknown messages: 1  
> Level 3 analysis…  
> Finished classifying message types  
> log analyzer  
> Getting message data (might take some time)…  
> grep: [dir]/smoke/run\_2023\_cb6\_pfas/static/logs: Is a directory  
> grep: [dir]/smoke/run\_2023\_cb6\_pfas/static/logs: Is a directory  
> Finished getting data  
> Classifying message types…  
> Total number of known messages: 12  
> Total number of unknown messages: 1  
> Level 1 analysis…  
> Finished classifying message types  
> Testing for exit priority \<= 1  
> ERROR: At least one message’s priority is less than or equal to the exit priority: 1  
> ERROR: Level 1 errors or Level 0 warnings found. Check log files, fix inputs, and rerun.

When I look at the level1 log in the log\_analyzer folder it includes the following:

> priority,known,count,message type,first file  
> 0,False,1,‘WARNING: Applying default time zone of 00 to country, state, and county code 001001002000’,[dir]/smoke/run\_2023\_cb6\_pfas/static/logs/smkinven\_3km\_NI\_2023\_cb6\_pfas.log  
> 2,True,1,‘WARNING: No kept pollutants found at line .\*’,[dir]/smoke/run\_2023\_cb6\_pfas/static/logs/smkinven\_3km\_NI\_2023\_cb6\_pfas.log  
> 3,True,5,‘Value for SMK\_MAXWARNING:’,[dir]/smoke/run\_2023\_cb6\_pfas/static/logs/smkinven\_3km\_NI\_2023\_cb6\_pfas.log  
> 3,True,1,‘Value for SMK\_MAXERROR:’,[dir]/smoke/run\_2023\_cb6\_pfas/static/logs/smkinven\_3km\_NI\_2023\_cb6\_pfas.log  
> 3,True,4,‘WARNING: output file already exists:’,/[dir]/smoke/run\_2023\_cb6\_pfas/static/logs/smkinven\_3km\_NI\_2023\_cb6\_pfas.log  
> 3,True,1,‘WARNING: Missing average day emissions for’,[dir]/smoke/run\_2023\_cb6\_pfas/static/logs/smkinven\_3km\_NI\_2023\_cb6\_pfas.log

I’m not sure whether it’s the SMK\_DEFUALT\_TZONE entry of 0 that is causing the issue as it’s returning a priority of 0 (I am trying to run for GMT) or whether I need to try installing a different version of smkreport as per a previous post [https://forum.cmascenter.org/t/smoke-issue-program-received-signal-sigsegv-segmentation-fault-invalid-memory-reference/3102](https://forum.cmascenter.org/t/smoke-issue-program-received-signal-sigsegv-segmentation-fault-invalid-memory-reference/3102) (or some other issue).

Looking at the smkreport logfile the program appears to stop part way through. Is there anything obvious here that could be causing an issue?

Thanks very much

---

<div class="post-metadata">

**Author:** ![james.beidler](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@james.beidler](https://forum.cmascenter.org/u/james.beidler)\
**Post date:** [May 13, 2025, 12:49pm UTC](https://forum.cmascenter.org/t/error-detected-in-smkreport-error-running-qa-run-for-inv/5787/2 "2025-05-13T12:49:13Z")

</div>

You mention that you were running smkreport for a new pollutant, was this pollutant already in the pnts\_map text file in your intermediate directory? Is the associated inventory intermediate file populated with values?

If you are able to share your run script, inventory table, and repconfig files that will help us identify a potential cause for the seg fault.

---

<div class="post-metadata">

**Author:** ![katewilkins](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@katewilkins](https://forum.cmascenter.org/u/katewilkins)\
**Post date:** [June 11, 2025, 9:18am UTC](https://forum.cmascenter.org/t/error-detected-in-smkreport-error-running-qa-run-for-inv/5787/3 "2025-06-11T09:18:16Z")

</div>

Hi James, thank you for your response.

I can’t seem to find a pnts\_map text file (there are no files in the intermediate directory that I have set in the directory\_definitions.csh file).

I’ve attached my onetime run file, inventory table (new pollutants added at the end) and repconfig file.

Thanks very much.

[repconfig\_point\_PFAS.txt](https://forum.cmascenter.org/uploads/short-url/xVvqH5R06l8VIiTv1V893mUltgx.txt) (461 Bytes)  
[Annual\_pt\_PFAS\_onetime\_issue.csh](https://forum.cmascenter.org/uploads/short-url/1KECEIxuwhttdbOpJkwk25mB6y7.csh) (4.1 KB)  
[invtable\_CMAQ\_PFAS\_v1.txt](https://forum.cmascenter.org/uploads/short-url/oE8C0LmsneY0EQiRzoVPbZC2uaO.txt) (125.4 KB)

---

<div class="post-metadata">

**Author:** ![james.beidler](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@james.beidler](https://forum.cmascenter.org/u/james.beidler)\
**Post date:** [June 20, 2025, 4:04pm UTC](https://forum.cmascenter.org/t/error-detected-in-smkreport-error-running-qa-run-for-inv/5787/4 "2025-06-20T16:04:24Z")

</div>

Can you confirm that smkinven and grdmat successfully ran? You should have outputs from both in your intermediate directory. If they did run please check that smkreport is looking for the intermediate files in the same place that they are being written.

According to your post smkinven and smkreport logs were created. When you get an opportunity please share those two logs. That may help me narrow down the exact location that the process is failing. Your repconfig and invtable both look correct.

---

<div class="post-metadata">

**Author:** ![katewilkins](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@katewilkins](https://forum.cmascenter.org/u/katewilkins)\
**Post date:** [June 30, 2025, 11:46am UTC](https://forum.cmascenter.org/t/error-detected-in-smkreport-error-running-qa-run-for-inv/5787/5 "2025-06-30T11:46:40Z")

</div>

Hi James,

INTERMED and IMD\_ROOT are set as $PROJECT\_ROOT/$CASE/intermed, however there are no files in that directory. According to the smkinven and grdmat log files, both processes successfully ran (smkinven log attached). I’ve checked the output files listed in those logs and they exist, but [dir]/smoke/reports/2023\_cb6\_pfas/static/repinven.3km\_NI.pfas\_POINT.txt is empty.

The smkreport log indicates that the process is stopping abruptly on open of REPORT 1. That file does exist but is empty.

Many thanks  
[smkreport.txt](https://forum.cmascenter.org/uploads/short-url/bUguy2RPLFpyneIpNFTttucKsNc.txt) (5.3 KB)  
[smkinven.txt](https://forum.cmascenter.org/uploads/short-url/3pN4TMc8M8WGvTmQJjyU5sUPwHi.txt) (10.3 KB)

---

<div class="post-metadata">

**Author:** ![katewilkins](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@katewilkins](https://forum.cmascenter.org/u/katewilkins)\
**Post date:** [July 18, 2025, 2:29pm UTC](https://forum.cmascenter.org/t/error-detected-in-smkreport-error-running-qa-run-for-inv/5787/6 "2025-07-18T14:29:34Z")

</div>

Hello,

I wondered whether you had any initial ideas as to what the issue may be that I could investigate further?

Very grateful for your help,  
Kate

---

<div class="post-metadata">

**Author:** ![james.beidler](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@james.beidler](https://forum.cmascenter.org/u/james.beidler)\
**Post date:** [July 29, 2025, 8:53pm UTC](https://forum.cmascenter.org/t/error-detected-in-smkreport-error-running-qa-run-for-inv/5787/7 "2025-07-29T20:53:19Z")

</div>

Kate,

I was able to reproduce the error by processing a point inventory with one source and pollutant. Based on your smkinven log it looks like you inventory only contains a single source. I haven’t done a full debug yet but the smkreport log points to the asgnbins subroutine.

Could you please try to add an additional source and pollutant to the inventory within your domain and rerun?

---

<div class="post-metadata">

**Author:** ![katewilkins](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@katewilkins](https://forum.cmascenter.org/u/katewilkins)\
**Post date:** [August 4, 2025, 10:36am UTC](https://forum.cmascenter.org/t/error-detected-in-smkreport-error-running-qa-run-for-inv/5787/8 "2025-08-04T10:36:07Z")

</div>

Hi James,

I’ve tried adding another source and rerunning but I get the same error. I still receive a priority 0 warning in the following file: [dir]/smoke/reports/2023\_cb6\_pfas/log\_analyzer/rep\_logs\_pt\_pfas\_2023\_cb6\_pfas\_3km\_NI\_onetime\_level1.csv

> priority,known,count,message type,first file  
> 0,False,1,‘WARNING: Applying default time zone of 00 to country, state, and county code 001001002000’,[dir]/smoke/run\_2023\_cb6\_pfas/static/logs/smkinven\_3km\_NI\_2023\_cb6\_pfas.log

At run time I get this message before it fails:

> Level 1 analysis…  
> Finished classifying message types  
> Testing for exit priority \<= 1  
> ERROR: At least one message’s priority is less than or equal to the exit priority: 1  
> ERROR: Level 1 errors or Level 0 warnings found. Check log files, fix inputs, and rerun.

Could this be causing the error? I have set OUTZONE “0” and SMK\_DEFAULT\_TZONE = “00” in my main run script.

The programme is producing populated PSCC.XX.txt, pnts.map.XXX.txt, pnts\_X.ncf, and psrc\_XX.txt files in the output directory, and within that, another directory with a .ncf file per pollutant.

There is a repinven.XX.txt file within [dir]/smoke/run\_2023\_cb6\_pfas/static/logs, but it’s empty.

Many thanks

---

<div class="post-metadata">

**Author:** ![james.beidler](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@james.beidler](https://forum.cmascenter.org/u/james.beidler)\
**Post date:** [August 8, 2025, 3:56pm UTC](https://forum.cmascenter.org/t/error-detected-in-smkreport-error-running-qa-run-for-inv/5787/9 "2025-08-08T15:56:01Z")

</div>

This warning shouldn’t be a problem if your emissions source is located in the GMT timezone. It seems like smkinven ran successfully based on the output that you described. The problem is likely still in the asgnbins subroutine of smkreport and related to source aggregation. I reproduced the issue with a dummy inventory but I would like to try your exact inventory.

Could you please share your point inventory and grid definition (you are using GRIDDING aggregation in smkreport)?

---

<div class="post-metadata">

**Author:** ![katewilkins](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@katewilkins](https://forum.cmascenter.org/u/katewilkins)\
**Post date:** [August 11, 2025, 10:06am UTC](https://forum.cmascenter.org/t/error-detected-in-smkreport-error-running-qa-run-for-inv/5787/10 "2025-08-11T10:06:34Z")

</div>

Hi James,

I’ve attached a copy of the emissions inventory, griddesc and geocode files. I had added a new lambert griddesc at the top of the griddesc\*.txt file. I realised I didn’t have a description of the grid further down the file, which I’ve now added (copied from the GRIDDESC file produced via mcip). However I’m getting the same error.

I am using GRIDDING in the smkreport settings.

[geocode\_level3.txt](https://forum.cmascenter.org/uploads/short-url/jDn3X6MKCSPRErDH5vb3ZvFNnXY.txt) (89 Bytes)

[geocode\_level2.txt](https://forum.cmascenter.org/uploads/short-url/waUjnsQwtRcylJsB4vh9tyslwuh.txt) (72 Bytes)

[geocode\_level1.txt](https://forum.cmascenter.org/uploads/short-url/lTTcSdPtDNqknimtjcOqcPZnFSz.txt) (51 Bytes)

[geocode\_level4.txt](https://forum.cmascenter.org/uploads/short-url/oot5i214EbO5k7a2slNIq6QD8A3.txt) (108 Bytes)

[ptpfas\_POINT\_share.csv](https://forum.cmascenter.org/uploads/short-url/lSOQ3iR80HhhUtvUwuEUr2LIYM4.csv) (3.1 KB)

[griddesc\_lambertonly\_18jan2019\_v7.txt](https://forum.cmascenter.org/uploads/short-url/43waisAZ1GGV9cHTsk5jlFgih5u.txt) (12.0 KB)

Thank you

---

<div class="post-metadata">

**Author:** ![james.beidler](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@james.beidler](https://forum.cmascenter.org/u/james.beidler)\
**Post date:** [August 14, 2025, 1:24pm UTC](https://forum.cmascenter.org/t/error-detected-in-smkreport-error-running-qa-run-for-inv/5787/11 "2025-08-14T13:24:54Z")

</div>

Thank you so much for sharing these files. I was able to exactly reproduce the error and create a fix that worked on our system.

In the inventory file ([ptpfas\_POINT.csv](https://forum.cmascenter.org/uploads/short-url/yb8Bxc47AZRTDUWneJFKeHv3KkU.csv) (2.1 KB)) I changed the header to “COUNTRY=NI”, the country\_cd to “NI”, the region\_cd to “1”, and added a dummy value to the process\_id

In the COSTCY file ([costcy\_for\_2017platform\_07dec2021\_v2.txt](https://forum.cmascenter.org/uploads/short-url/vK7LV5J7RX6v9wJQGbv6KpwdPbI.txt) (754.5 KB)) I added a country record of “NI” with a country code of 4. I then added corresponding state and county level records for the whole country. I assigned a timezone of “GMT” to the state and county records. To use the COSTCY file set the “USE\_EXP\_GEOCODE” variable in your script to “N” and define the COSTCY environment variable to the location of the COSTCY file.

Finally I modified the repconfig file ([repconfig\_point\_PFAS.txt](https://forum.cmascenter.org/uploads/short-url/buUQdvYuYaDiFMIf7rQayISsC7S.txt) (478 Bytes)). Note that I added the group by lines of “BY CELL” and “BY STATE”. The “BY CELL” is optional, although if you are applying the GRIDDING function I’m asuming that you want the output grid cell.

If you are still having issues after deleting the original intermediate files and rerunning from the beginning of SMOKE please let us know.

---

<div class="post-metadata">

**Author:** ![katewilkins](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@katewilkins](https://forum.cmascenter.org/u/katewilkins)\
**Post date:** [August 14, 2025, 4:35pm UTC](https://forum.cmascenter.org/t/error-detected-in-smkreport-error-running-qa-run-for-inv/5787/12 "2025-08-14T16:35:06Z")

</div>

Thank you very much James. All of the logs within the static/logs folder are now showing “Normal completion of program” (elevpoint, grdmat, smkinven, smkreport\_X\_inv, smkreport\_X\_invgrid.

I still get the same message at run time:

> Level 1 analysis…  
> Finished classifying message types  
> Testing for exit priority \<= 1  
> ERROR: At least one message’s priority is less than or equal to the exit priority: 1  
> ERROR: Level 1 errors or Level 0 warnings found. Check log files, fix inputs, and rerun.

Does this matter given that the logs show successful completion?

Thanks again,

Kate

---

<div class="post-metadata">

**Author:** ![james.beidler](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@james.beidler](https://forum.cmascenter.org/u/james.beidler)\
**Post date:** [August 14, 2025, 4:53pm UTC](https://forum.cmascenter.org/t/error-detected-in-smkreport-error-running-qa-run-for-inv/5787/13 "2025-08-14T16:53:10Z")

</div>

That message can be ignored if all SMOKE program logs show successful completion.
