Adventure Game Studio Official

User reported issues for officially released versions of AGS

Bug Issue: Crash on compiling a script that ends on an incomplete export statement

Pages: [1]


  • AGSer
  • Posts: 64
« on: 13 Jun 2017, 01:25 »
  • I created a new AGS game using the wizard and choosing "Default game".
  • I opened the GlobalScript script file
  • In the very last line of the script, i.e., in line 547, I added:

Code: Adventure Game Studio
  1. export initialize_control_panel

Note the missing semicolon.

  • I pressed f7 to Build the EXE

My result:

I got a popup from my Windows 10 saying:
AGS Editor for Windows funktioniert nicht mehr. | Das Programm wird aufgrund eines Problems nicht richtig ausgeführt. Das Programm wird geschlossen und Sie werden benachrichtigt, wenn eine Lösung verfügbar ist. | [Programm schließen]
(Sorry, I'm working on a German windows. The rough translation is: "AGS Editor for windows does not work any longer | Due to some problem, the program is not executed properly. The program will be shut down and you will be informed as soon as a fix is available | [Close program]")

After clicking on "Programm schließen", all the AGS windows closed, and I was back in my operating system.

In other words, AGS crashed, probably in the compiler.

I'm aware that export statements ought to end with a semicolon; all the same, the compiler ought to catch this with an error message and without crashing in my opinion.

I can upload the crashing project on request.

My exact AGS version, as given by the Help screen:
AGS Editor .NET (Build
V3.4.0, March 2017
Copyright © 2006-2011 Chris Jones and 2011-2017 others.
Scintilla (c) 1998-2003 Neil Hodgson, all rights reserved
DockPanel Suite (c) 2007 Weifen Luo
See the DOCS folder for copyrights of used libraries.
System: Windows 7
Editor plugins loaded:
x ags.plugin.notes.dll
This window is claiming that I am working on a Windows 7 operating system, but I'm working on a 64bit Windows 10 system,



  • Rottwheelers
  • AGSer
  • Posts: 1,775
  • When life hands you lemons, combine them with the mop
« Reply #1 on: 13 Jun 2017, 04:46 »
Quick tests show this is present in 3.3.5 as well, but not 3.2.1.
Several other statements exhibit this problem too:
Code: Adventure Game Studio
  1. int test
Code: Adventure Game Studio
  1. function test
I wonder if it is related to
I will look into it after work this week, or the weekend failing that.

Operating system detection will be fixed in an upcoming version of AGS.
« Last Edit: 13 Jun 2017, 04:58 by Gurok »


  • Rottwheelers
  • AGSer
  • Posts: 1,775
  • When life hands you lemons, combine them with the mop
« Reply #2 on: 27 Jun 2017, 01:17 »
This bug should be fixed in the next release of AGS (3.4.1).

Crimson Wizard

  • AGSer
  • Posts: 8,605
« Reply #3 on: 23 Jun 2018, 01:40 »
Was fixed in 3.4.1.
  • Status changed from New to Resolved

Pages: [1]

Issue Details

  • Reported
    13 Jun 2017, 01:25
  • Updated
    23 Jun 2018, 01:40
  • View Status
  • Type
  • Status
  • Priority
  • Version
    AGS 3.4.0
  • Fixed in
  • Assigned to
  • Category


Powered by: SMF Project Tools 0.5.4 © Niko Pahajoki 2007-2011