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
Normal Topic Segmentation Faults (Read 1479 times)
Bob Jones
Full Member
***
Offline


Posts: 210
Location: Bellingham, WA
Joined: Dec 4th, 2015
Segmentation Faults
Jun 24th, 2019 at 5:33pm
Print Post  
I am getting an increasing number of segmentation faults (over a dozen so far today alone). I remember hearing about an alternative compiler that was under development. Is that compiler ready for prime time yet, and if so, will you be incorporating it into Visual Micro?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12070
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Segmentation Faults
Reply #1 - Jun 24th, 2019 at 5:37pm
Print Post  
Hi Bob,

We work with any compiler that a package defines as long as the definition complies to the Arduino 3rd party hardware spec. Visual Micro does not have any hard coded compilers or know any information about the compiler(s) you are using.

Therefore you can use any package you find on the internet with any compiler.

Did you have a specific one in mind?
  
Back to top
WWW  
IP Logged
 
Bob Jones
Full Member
***
Offline


Posts: 210
Location: Bellingham, WA
Joined: Dec 4th, 2015
Re: Segmentation Faults
Reply #2 - Jun 24th, 2019 at 5:39pm
Print Post  
I am looking for a compiler that doesn't generate segmentation faults and ideally one that has better diagnostics. Any recommendations?

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


Posts: 12070
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Segmentation Faults
Reply #3 - Jun 26th, 2019 at 1:37am
Print Post  
Sorry I am not proficient at understanding compilers. Do you know what causes the segmentation faults? Is there a different version (previous or later) of the tool chain you are using that avoids the issue?

You would need to give information about your hardware etc. for anyone to be able to help you. You should also state the arduino ide version you are using and if you have installed a tool chain via board manager. It's really impossible to help without good information.
« Last Edit: Jun 26th, 2019 at 1:41am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Bob Jones
Full Member
***
Offline


Posts: 210
Location: Bellingham, WA
Joined: Dec 4th, 2015
Re: Segmentation Faults
Reply #4 - Jun 26th, 2019 at 1:57am
Print Post  
I am not competent to answer the questions you ask. What I know is that the segmentation faults will often go away if I clean and rebuild the code, or simply move code around.

Even though I have been programming for half a century, I have no idea how to install a different compiler. I am just too bloody old to figure that one out. 

But thanks for hanging in there with me.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12070
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Segmentation Faults
Reply #5 - Jun 26th, 2019 at 2:01am
Print Post  
You need to provide the information I asked for or at least to provide the build output described in yellow at the top of this page. I am sure you are not the first person to hit the issue.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint