8000 Crash: Cannot use constructor as static member default value · Issue #1874 · colobot/colobot · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Crash: Cannot use constructor as static member default value #1874
Open
@Swire42

Description

@Swire42

Error message

The following program fails to compile and crashes the game:

public class A {
	void A() {}
}

public class B {
	static A a = new A();
}

log.txt

Unhandled exception occurred!
==============================
SIGSEGV, segmentation fault
==============================

This is usually caused by a bug. Please report this on http://github.com/colobot/colobot/issues
including information on what you were doing before this happened and all the information below.
==============================
You are running official 0.2.2-alpha build.

The game was in phase PHASE_SIMUL (ID=8)
Last started level was: category=plus chap=2 rank=1
==============================

Sorry for inconvenience!

Save file

No response

colobot.ini or colobot.json

No response

Game version (e.g. 0.2.1-alpha)

0.2.2-alpha

Operating system (e.g. Windows 11)

NixOS, through appimage-run

Video card

No response

Steps to reproduce the crash

  1. Paste program into a bot.
  2. Hit the compile button.
  3. Segfault.

Are you able to reproduce the crash?

Indeed

Please post a stack trace if you know how

No response

Installed mods (if any)

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0