


{"id":441014,"date":"2025-09-08T23:06:08","date_gmt":"2025-09-08T23:06:08","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/eme-simulation-exiting-with-exit-code-0xc0000409\/"},"modified":"2025-09-08T23:07:43","modified_gmt":"2025-09-08T23:07:43","slug":"eme-simulation-exiting-with-exit-code-0xc0000409","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/eme-simulation-exiting-with-exit-code-0xc0000409\/","title":{"rendered":"EME Simulation Exiting with Exit Code 0xc0000409"},"content":{"rendered":"<p>&lt;p&gt;&lt;p&gt;Hi,&lt;\/p&gt;&lt;p&gt;I am using Lumerical 2025R2 for an EME S-parameter sweep, and I&#8217;m encountering the following error:&lt;\/p&gt;&lt;\/p&gt;<\/p>\n<pre>&lt;span style=\"font-size: 10pt;\"&gt;\"C:\\Program Files\\Microsoft MPI\\Bin\\mpiexec.exe\" -n 8 -affinity \"C:\\Program Files\\Lumerical\\v252\\bin\\eme-engine-msmpi.exe\" -logall -t 1 \"C:\/Everything\/Lumerical Projects\/wavefront sensor\/Lumerical files\/strong_grating_cylinder_mode_convergence_sweep\/mode_convergence_sweep_3.lms\"&lt;\/span&gt;&lt;br&gt;&lt;br&gt;&lt;span style=\"font-size: 10pt;\"&gt;Laptop: Error: there was an unknown parallel error. The error code is 10, the process number is 0&lt;\/span&gt;&lt;br&gt;&lt;span style=\"font-size: 10pt;\"&gt;Laptop: Error: there was an unknown parallel error. The error code is 0, the process number is 0&lt;\/span&gt;&lt;br&gt;&lt;span style=\"font-size: 10pt;\"&gt;Laptop: Error: there was an unknown parallel error. The error code is 0, the process number is 0&lt;\/span&gt;&lt;br&gt;&lt;span style=\"font-size: 10pt;\"&gt;Laptop: Error: there was an unknown parallel error. The error code is 0, the process number is 0&lt;\/span&gt;&lt;br&gt;&lt;span style=\"font-size: 10pt;\"&gt;Laptop: Error: there was an unknown parallel error. The error code is 10, the process number is 0&lt;\/span&gt;&lt;br&gt;&lt;span style=\"font-size: 10pt;\"&gt;Laptop: Error: there was an unknown parallel error. The error code is 0, the process number is 0&lt;\/span&gt;&lt;br&gt;&lt;span style=\"font-size: 10pt;\"&gt;Laptop: Error: there was an unknown parallel error. The error code is 10, the process number is 0&lt;\/span&gt;&lt;br&gt;&lt;span style=\"font-size: 10pt;\"&gt;job aborted:&lt;\/span&gt;&lt;br&gt;&lt;span style=\"font-size: 10pt;\"&gt;[ranks] message&lt;\/span&gt;&lt;br&gt;&lt;span style=\"font-size: 10pt;\"&gt;[0] process exited without calling finalize&lt;\/span&gt;&lt;br&gt;&lt;span style=\"font-size: 10pt;\"&gt;[1-7] terminated&lt;\/span&gt;&lt;br&gt;&lt;span style=\"font-size: 10pt;\"&gt;---- error analysis -----&lt;\/span&gt;&lt;br&gt;&lt;span style=\"font-size: 10pt;\"&gt;[0] on Laptop&lt;\/span&gt;&lt;br&gt;&lt;span style=\"font-size: 10pt;\"&gt;C:\\Program Files\\Lumerical\\v252\\bin\\eme-engine-msmpi.exe ended prematurely and may have crashed. exit code 0xc0000409&lt;\/span&gt;&lt;br&gt;&lt;span style=\"font-size: 10pt;\"&gt;---- error analysis ----&lt;br&gt;==============================================================================================================================================================================================&lt;\/span&gt;<\/pre>\n<p>&lt;p&gt;&lt;p&gt;&lt;span style=&#8221;font-size: 10pt;&#8221;&gt;&lt;span style=&#8221;font-size: 14pt;&#8221;&gt;This crash always happens after the Job Manager says &#8220;Completed&#8221; as the status. I&#8217;ve tried the following things so far, and none of them fix the error:&lt;\/span&gt;&lt;br&gt;&lt;\/span&gt;&lt;\/p&gt;&lt;\/p&gt;<\/p>\n<ol>\n<li>Deleting the <code>%LOCALAPPDATA%\\\\Lumerical<\/code> folder and the contents of the <code>%TEMP%<\/code> folder.<\/li>\n<li>Dropping to 1 process and 1 thread in the Resources tab.<\/li>\n<li>Switching to local computer in Resources &rarr; Edit.<\/li>\n<li>Making a new <code>.lms<\/code> file with the same structures.<\/li>\n<li>Running another trivial example.<\/li>\n<li>Reinstalling the 2015-2022 C++ distributable: <a href=\"https:\/\/learn.microsoft.com\/en-us\/cpp\/windows\/latest-supported-vc-redist?view=msvc-170\">https:\/\/learn.microsoft.com\/en-us\/cpp\/windows\/latest-supported-vc-redist?view=msvc-170<\/a><\/li>\n<li>Disabling Microsoft Defender Antivirus<\/li>\n<li>Checking p0 log file in the sweep folder created by Lumerical: it says simulation successfully completed, but the job detail is as above.<\/li>\n<li><code>sfc \/scannow<\/code> with administrator CMD didn&rsquo;t return any errors.<\/li>\n<\/ol>\n<p>&lt;p&gt;&lt;p&gt;I see the same message on a different computer. Here&#8217;s an example:&lt;\/p&gt;&lt;\/p&gt;<\/p>\n<pre>&lt;span style=\"font-size: 10pt;\"&gt;\"C:\\Program Files (x86)\\IntelSWToolsMPI\\compilers_and_libraries_2020.4.321\\windows\\mpi\\intel64\\bin\\mpiexec.exe\" -n 1 -localroot -noprompt \"C:\\Program Files\\Lumerical\\v242\\bin\\eme-engine.exe\" -t 64 \"path\/to\/file.lms\"&lt;\/span&gt;&lt;br&gt;&lt;br&gt;&lt;span style=\"font-size: 10pt;\"&gt;===================================================================================&lt;\/span&gt;&lt;br&gt;&lt;span style=\"font-size: 10pt;\"&gt;= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES&lt;\/span&gt;&lt;br&gt;&lt;span style=\"font-size: 10pt;\"&gt;= RANK 0 PID 42868 RUNNING AT DESKTOP-92MNHSK&lt;\/span&gt;&lt;br&gt;&lt;span style=\"font-size: 10pt;\"&gt;= EXIT STATUS: -1073740791 (c0000409)&lt;\/span&gt;&lt;br&gt;&lt;span style=\"font-size: 10pt;\"&gt;===================================================================================&lt;\/span&gt;&lt;br&gt;&lt;br&gt;&lt;span style=\"font-size: 10pt;\"&gt;Warning: Process exited with exit code -1&lt;\/span&gt;<\/pre>\n<p>&lt;p&gt;&lt;p&gt;I&#8217;d greatly appreciate help in fixing this issue. Thanks in advance!&lt;\/p&gt;&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-441014","topic","type-topic","status-publish","hentry","topic-tag-an-unknown-error-occured-1","topic-tag-EME-1","topic-tag-error","topic-tag-lumerical","topic-tag-LumericalEME-1"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_forum_id":["27833"],"_bbp_topic_id":["441014"],"_bbp_subscription":["507059","4274"],"_bbp_author_ip":["138.51.67.114"],"_bbp_last_reply_id":["442832"],"_bbp_last_active_id":["442832"],"_bbp_last_active_time":["2025-10-01 22:30:28"],"_bbp_reply_count":["7"],"_bbp_reply_count_hidden":["0"],"_bbp_voice_count":["2"],"_bbp_engagement":["507059","4274"],"_btv_view_count":["671"],"_bbp_topic_status":["unanswered"],"_edit_last":["507059"],"_bbp_notification_enabled":["473055"],"_edit_lock":["1757432203:473055"]},"test":"shravankruthick-sridharmail-utoronto-ca"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/441014","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/441014\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=441014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}