Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) Build Error - 'Process must exit...' (Read 5713 times)
Vinicio
Newbies
*
Offline


Posts: 9
Joined: Sep 4th, 2023
Build Error - 'Process must exit...'
Sep 5th, 2023 at 12:36pm
Print Post  
Hello.

I started to use vMicro yesterday and I got an error when I try to build the project:

Code
Select All
Process must exit before requested information can be determined.
Error compiling .ino project source
Build failed for project 'ESP32-MICRO' 




Yesterday, I couldn't fix this and what I did was uninstall Visual Studio and vMicro. After that, the problem stoppped and I could use vMicro ok.

But today, to error is back.
I made some tests and I saw that in my simple project, when I add the ArduinoJson.h library, like this:

Code (C++)
Select All
#include <ArduinoJson.h>
#include <ArduinoJson.hpp>

#include <WiFi.h>
#include <Adafruit_Sensor.h>
#include <DHT_U.h>
#include <DHT.h>
#include <Arduino.h>
#include "DHT11.h"
#include "handleMessages.h"
#include "Wireless.h"



#define DHTPIN 26
#define DHTTYPE DHT11
DHT dht11(DHTPIN, DHTTYPE);

void setup() {
	Serial.begin(115200);
	dht11.begin();
}

void loop() {
	handleMessages();
	sensorTemperatura(dht11);
	delay(1500);
}
 



I get the error.

In the other hand, when I remove the ArduinoJson library:
Code (C++)
Select All
#include <WiFi.h>
#include <Adafruit_Sensor.h>
#include <DHT_U.h>
#include <DHT.h>
#include <Arduino.h>
#include "DHT11.h"
#include "handleMessages.h"
#include "Wireless.h"



#define DHTPIN 26
#define DHTTYPE DHT11
DHT dht11(DHTPIN, DHTTYPE);

void setup() {
	Serial.begin(115200);
	dht11.begin();
}

void loop() {
	handleMessages();
	sensorTemperatura(dht11);
	delay(1500);
} 



I can build the project without problems.

To use this library, I used vMicro menu "Add Library > User Installed".

I'd like to fix this problem and understand why this happens.

I've uploaded two files:
with_log.txt -> trying to build with ArduinoJson (error).
without_log.txt -> build ok without ArduinoJson.

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build Error - 'Process must exit...'
Reply #1 - Sep 5th, 2023 at 3:06pm
Print Post  
Thanks for the clear report. The "recent" esp32 toolchains get very close to the windows 32k command line limit. To exclude that from consideration please install the pre release from the top of the releases section of this forum. 

https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

Let us know how that goes.

Thanks
  
Back to top
IP Logged
 
Vinicio
Newbies
*
Offline


Posts: 9
Joined: Sep 4th, 2023
Re: Build Error - 'Process must exit...'
Reply #2 - Sep 5th, 2023 at 4:34pm
Print Post  
Hello.

I have installed the new version sucessfully (Visual.Micro.Arduino.Studio_2023_0731_2205).

Anyway, it did not work. I make the same test (with and without the library) and keeps the same (  if I include ArduinoJson.h, the build fails).

Also, I did a google about the 32k limit and found some tutorials to remove this limit on windows and when I checked it, it has already done on my computer. So, I think my machine does not have the 32k limit.

There goes a new log of a new trying to compile.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build Error - 'Process must exit...'
Reply #3 - Sep 5th, 2023 at 5:00pm
Print Post  
Thanks for the info. It is good that microsoft are rolling out the larger command limit.

The attached file shows the command it is failing. Can you run the command from a prompt or bat without issue?


  

Please Register or Login to the Forum to see File Attachments
Back to top
IP Logged
 
Vinicio
Newbies
*
Offline


Posts: 9
Joined: Sep 4th, 2023
Re: Build Error - 'Process must exit...'
Reply #4 - Sep 5th, 2023 at 6:58pm
Print Post  
I'm not sure if I created the .bat correctly...

I've copied right after the "Building project code ..." ("C:\Users\{...}) until right before (Process must exit before requested information can be determined.)

Is it correct?

If so, I get the error "No such file or directory"

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build Error - 'Process must exit...'
Reply #5 - Sep 5th, 2023 at 8:04pm
Print Post  
The entire command that failed is in the .txt attached to my last post
  
Back to top
IP Logged
 
Vinicio
Newbies
*
Offline


Posts: 9
Joined: Sep 4th, 2023
Re: Build Error - 'Process must exit...'
Reply #6 - Sep 5th, 2023 at 8:46pm
Print Post  
Sorry. I didn't see your attached file.

But, anyway, I got the same error: "No such file or directory"

Code
Select All
xtensa-esp32-elf-g++: error: pt.h: No such file or directory 

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build Error - 'Process must exit...'
Reply #7 - Sep 5th, 2023 at 9:08pm
Print Post  
Sorry, I forgot the build creates and clears a temp header for esp32. Create an empty one in the build folder then try
  
Back to top
IP Logged
 
Vinicio
Newbies
*
Offline


Posts: 9
Joined: Sep 4th, 2023
Re: Build Error - 'Process must exit...'
Reply #8 - Sep 6th, 2023 at 10:40am
Print Post  
So, updates:

After create the empty header file and run the .bat that you provide, I could add the library <ArduinoJson.h> build the project with no problems.  Success.

But, I had to add another library:

Code (C++)
Select All
#include <PubSubClient.h> // new library
#include <ArduinoJson.h>
#include <ArduinoJson.hpp>
#include <WiFi.h>
#include <Adafruit_Sensor.h>
#include <DHT_U.h>
#include <DHT.h>
#include <Arduino.h>
#include <time.h>
#include "DHT11.h"
#include "handleMessages.h"
#include "Wireless.h"

#define DHTPIN 26      
#define DHTTYPE DHT11 
DHT dht11(DHTPIN, DHTTYPE);

void setup() {
	Serial.begin(115200);
	dht11.begin();
}

void loop() {
	handleMessages();
	sensorTemperatura(dht11);
	delay(1500);
}
 



and this gives me build error again.
Log is attached.

EDIT:

Looking in the log, I got the code between "Process: ..." and "Process must exit before requested information can be determined." and run in cmd. After that, I could compile well again.

Is there a final solution?
« Last Edit: Sep 6th, 2023 at 5:34pm by Vinicio »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2728
Joined: Feb 13th, 2019
Re: Build Error - 'Process must exit...'
Reply #9 - Sep 7th, 2023 at 12:11pm
Print Post  
Can you confirm how long the command takes to run when it's run in the command line successfully?
  
Back to top
IP Logged
 
Vinicio
Newbies
*
Offline


Posts: 9
Joined: Sep 4th, 2023
Re: Build Error - 'Process must exit...'
Reply #10 - Sep 7th, 2023 at 3:21pm
Print Post  
I still building this way.. getting the script about the error and running as a bat.

Tested right now and It took 107 seconds. 
Usually, it is taking no less than 1 minute and max 3min.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2728
Joined: Feb 13th, 2019
Re: Build Error - 'Process must exit...'
Reply #11 - Sep 7th, 2023 at 3:48pm
Print Post  
Thanks for the update, can you try installing the latest release from the top of the below board (23.0731.07) and see if this prevents the issue happening?
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
IP Logged
 
Vinicio
Newbies
*
Offline


Posts: 9
Joined: Sep 4th, 2023
Re: Build Error - 'Process must exit...'
Reply #12 - Sep 9th, 2023 at 11:19am
Print Post  
I installed 23.0731.07 and seems that the problem is fixed.
However, I didn't make any big change on project or added libraries.

In the next 3 days and I'll start a new project which will take a lot of builds and I think we will be able to close as fixed.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build Error - 'Process must exit...'
Reply #13 - Sep 9th, 2023 at 4:02pm
Print Post  
Thanks for letting us know. The "build>clean solution" command clears the build cache. That will allow you to replicate a full build.

Note, you are seeing some very slow build times, which virus checker do you use?
  
Back to top
IP Logged
 
Vinicio
Newbies
*
Offline


Posts: 9
Joined: Sep 4th, 2023
Re: Build Error - 'Process must exit...'
Reply #14 - Sep 10th, 2023 at 8:54pm
Print Post  
Yes, I've been getting very long build times.

I don't know why, but using ESP32 I get this problem, while with Arduino uno it is very fast.

E.g, complete build with arduino uno: 50s. Same complete build with esp32: 12min.

Antivirus: I usually don't use it, but since i'm using my university laptop, I cant disable. Symantec Endpoint Protection. Version 14 (14.3 RU6) build 9210 (14.3.9210.6000).

This high time build time is a problem for me and I was going to open a new topic about it, but it is related to the main problem... Can we discuss about it here?

Thank you!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build Error - 'Process must exit...'
Reply #15 - Sep 10th, 2023 at 9:29pm
Print Post  
It is a fact, the avr toolchain for the Uno is very fast and the esp32 toolchain is slow. Some people have moved to RP2040 or the PiccoW because of the speed issue.

We use symantec on some machines without issue.

A 50 second build time for avr is long, it suggests you might have a large project or a disk problem.

try this test:-

Open the ArduinoJson example called "MsgPackParser". Click Build>Clean Solution to clear any cache. 

Uno: 1st build - 6 sec
Uno: 2nd build - 1 sec

Esp32 Dev Module: 1st build - 48 sec
Esp32 Dev Module: 2nd build - 5 sec

When you click build, make sure you are not clicking Rebuild. 

What times do you get?


  
Back to top
IP Logged
 
Vinicio
Newbies
*
Offline


Posts: 9
Joined: Sep 4th, 2023
Re: Build Error - 'Process must exit...'
Reply #16 - Sep 11th, 2023 at 11:57am
Print Post  
1st ESP32: 323 secs.
2nd ESP32: 5 sec.

1st Arduino: 8s.
2nd Arduino: 1s.

My config: 32GB ram, i7 11850h processor, 1TB SSD m.2.

Usually, when I'm working with ESP32 and need to add a new Library, it takes soo long.


Attachs:
Log for slow build.
vMicro - compiler, general and debugger options.

Questions:
1 - Do you see any reason to very slow (more than usual) working with ESP32?
2 - Where can we access examples from vMicro? I had to copy from arduino IDE.
« Last Edit: Sep 11th, 2023 at 11:59am by Vinicio »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build Error - 'Process must exit...'
Reply #17 - Sep 11th, 2023 at 12:15pm
Print Post  
No idea why it takes so long for you. You can see each individual command in the build output. There isn't anything Visual Micro could change, it's as per the design by espressif. Their toolchain is exellent but very slow. Might be worth raising a log with them showing them your test alongside avr comparison times.

In Visual Micro the Platform Explorer shows "Installed", "Examples", "Board manager", Library manager". The examples tab allows you to open examples directly, view the code and/or clone an example.

  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint