Automation studio 6.5.1.17 crashes on build

Hello,

Since this morning I have really often a crashing Automation Studio on opening .st files.

I have tried the following things, none of these options did fix the problem:

  • Opened different ST files
  • Removed the BR project and opened it again
  • Upgraded AS to 6.5.1.17
  • Uninstalled AS6 completely and installed it again
  • Opened different projects
  • Created new project
  • Removed appdata AS6 files
  • Rebooted the system a few times

In short the following actions are still working:

  • opening .var, .typ, … files as table or as text
  • Opening .st files in automation studio code (or any other text editor)
  • AS 4.12 still works

The following actions triggers a crash:

  • Building a project
  • After building opening a .st file as text in automation studio

What can I do to fix this problem? It is really frustating to be unable to develop software for the PLC and seeing the IDE crash each time.

Best regards,

René

Hi @rene_pvh ,
Welcome to the community!
I am sorry that you had some bad experiences with the latest AS version.
Did you install AS 6.5.1.17 today or last week/s?
Have you installed other sw or some windows upgrades after your AS installation?
Are you using AS code too?
I don’t that problem on my pc, same with few customers that are working with the same release.

If you edit your code with just AS and not with other editors (and no AS code) do you see same problem?
Thanks
Ciao
Valerio

Hi @valerio.manenti

Thank you for the quick response.

I have downloaded and installed 6.5.1.17 today.

The last windows update was a few weeks ago and I have not installed any new software the last days.

I normally don’t use AS code, today I have opened it a few times after I stumbled on the error above.
I does not matter if I only edit in AS or I edit with other editors as well.

best regards,

René

Hi @rene_pvh ,

not sure if my comment will help you, but I think about your note regarding “Building a project“ , I would like to share few notes made by my local Support in US focus on B&R Antivirus Exclusions:

During the build process, AS needs write access to the following directories, which should be excluded from virus scanners if there are significant performance impacts on build time:

· Temporary directory of the Automation Studio project. This is by default within the project ( \ temp) but can also be placed outside the project by the user.

· Temporary directory of the user who is logged on to the Windows system: C: \ Users \ \ AppData \ Roaming

· Temporary directory of the user who is logged on to the Windows system: C: \ Users \ \ AppData \ Local \ Temp

· Windows temporary directory: C: \ Windows \ Temp

When using fieldbus devices and DTM devices, there is write access to the following directories:

· Project path

· C: \ ProgramData \ BR \ AS-Version

· C: \ ProgramData \ SYCONnet

· C: \ ProgramData \ IO-Link \ Generic IO-Link Device DTM \ IO-Link DD

Ciao
Valerio

Hello Rene

Can you see the source of the error in the Windows event logs? (Windows Event Viewer → Windows Logs → Application)
If you create a new user with admin rights on the same PC, do you have the same problems with the new user?

Jonas

1 Like

Hello René,
you wrote that building and opening a .st file triggers the crash.
According to the crash report you’ve also build errors and warnings.
Build: 1 error(s), 24 warning(s)
Can you also check this points. Maybe it’s related.
Best regards,
Simon

1 Like

Hi @rene_pvh ,
Are you working on “Compatibility Mode 6.3”?

New functions in ASW 6.0

If that the case could you try to convert the prj to AS 6.5 and see if you have the same issue?

Differences between working version 6.5 and 6.3
Ciao
Valerio

Hello all,

Thanks for all the replies.

  • The event manager:

I see the following application error:

  • The build warnings and errors:

I have created an empty test project, without any warning or errors, after building is receive in the build, after building I am not able to open st files.

Here is the report:

DiagnosticsReport_260225_085653_5027.zip (25.5 KB)

And this is the project zip:

test.zip (674.3 KB)

  • Compatibility mode

I am not running in compatible mode (anymore), I have upgraded the project to the latest

I shall create a new admin user and try to run with this new user.

Thanks for all the support so far.

Best regards,

René

Hi @rene_pvh ,
I asked AI help and below the answer:
Exception code 0xc000041d represents STATUS_FATAL_USER_CALLBACK_EXCEPTION. It occurs when an unhandled exception is encountered during a user callback.

While KERNELBASE.dll is often listed as the “faulting module,” it is typically a “victim” rather than the cause; the error occurs because an application or driver made a request to a Windows API that failed to handle a subsequent error.

Common Causes

  • Coding Errors: A null pointer exception or an unhandled error within a program’s callback function (common in web-based apps or custom software).

  • Dependency Issues: Corrupted or missing versions of the .NET Framework.

  • Software Conflicts: Antivirus software interfering with an application’s anti-cheat or security measures.

  • System Corruption: Damaged system files or a corrupted Windows user profile.

Recommended Solutions

  1. Run Compatibility Troubleshooter: Right-click the application shortcut, go to Properties > Compatibility, and run the troubleshooter.

  2. Repair .NET Framework: Use the Microsoft .NET Framework Repair Tool to fix dependency errors.

  3. Check for Updates: Install the latest Windows Updates and application-specific patches.

  4. Scan System Files: Open Command Prompt as Administrator and run sfc /scannow followed by DISM.exe /Online /Cleanup-image /Restorehealth to repair corrupted OS files.

  5. Create a New User Profile: If the error persists across multiple apps, the current Windows profile may be corrupt; try running the app from a new Windows user account.


I did a test with your prj and as you see in the video no issue on my laptop.

BuildAndOpenSTFiles.zip (7.8 MB)
Ciao
Valerio

Hello,

I have tried all these solutions, but it did not seem to fix anything.

Only creating a new user profile is difficult in windows 11 without an office account.

I have also uninstalled all br software (also older AS versions) and only installed AS6 again, but even this did not work.

Best regards,

René

@rene_pvh I’m not sure what more we can do from Community point of view, you have done a lot, you have crash report, so I think it is time to provide all of these (including link to this discussion) to support team of your local B&R office. Maybe R&D team can read more from crash report.

It seemed that AS crashed because of a corrupt component of the C++ Distribution.

So we did the following to correct the issue:

6 Likes

Thank you all for the great support, everything now works great with the C++ version removed and installed again!

Best regards,

René

5 Likes