HaxeFlixel / flixel

Free, cross-platform 2D game engine powered by Haxe and OpenFL
https://haxeflixel.com/
MIT License
1.98k stars 440 forks source link

Random Travis unit test failures #2148

Closed Gama11 closed 5 years ago

Gama11 commented 6 years ago

Running the unit tests on Travis randomly fails with the following error:

ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': No such file or directory

[...]

Segmentation fault (core dumped)

This is quite annoying. Quite likely the same issue as #1942, except there's some error output now that might be helpful for figuring out how to fix it.

Gama11 commented 6 years ago

This is a new one:

Called from ? line 1
Called from ApplicationMain.hx line 84
Called from ApplicationMain.hx line 116
Called from lime/app/Application.hx line 269
Called from lime/_backend/native/NativeApplication.hx line 160
Called from a C function
Called from lime/_backend/native/NativeApplication.hx line 453
Called from lime/_macros/EventMacro.hx line 101
Called from openfl/display/Stage.hx line 330
Called from openfl/display/Stage.hx line 970
Called from openfl/display/OpenGLRenderer.hx line 752
Called from openfl/display/DisplayObjectContainer.hx line 828
Called from openfl/display/DisplayObjectContainer.hx line 828
Called from openfl/display/DisplayObjectContainer.hx line 828
Called from openfl/display/DisplayObjectContainer.hx line 828
Called from openfl/display/DisplayObjectContainer.hx line 815
Called from a C function
Called from openfl/display/DisplayObject.hx line 941
Called from openfl/_internal/renderer/opengl/GLShape.hx line 46
Called from openfl/_internal/renderer/opengl/GLGraphics.hx line 625
Called from openfl/display/OpenGLRenderer.hx line 351
Called from openfl/display/OpenGLRenderer.hx line 519
Called from openfl/display/Shader.hx line 318
Called from openfl/display/Shader.hx line 363
Called from openfl/display/Shader.hx line 188
Called from openfl/display/Shader.hx line 177
Called from lime/utils/Log.hx line 42
Uncaught exception - [openfl.display.Shader] ERROR: Error compiling vertex shader
0:21(30): error: syntax error, unexpected ';', expecting '('
#ifdef GL_ES
                precision mediump float;
                #endif
                attribute float openfl_Alpha;
        attribute vec4 openfl_ColorMultiplier;
        attribute vec4 openfl_ColorOffset;
        attribute vec4 openfl_Position;
        attribute vec2 openfl_TextureCoord;

        varying float openfl_Alphav;
        varying vec4 openfl_ColorMultiplierv;
        varying vec4 openfl_ColorOffsetv;
        varying vec2 openfl_TextureCoordv;

        uniform mat4 openfl_Matrix;
        uniform bool openfl_HasColorTransform;
        uniform vec2 openfl_TextureSize;

        void main(void) {

            openfl_Alphav = openfl_Alpha;
        openfl_TextureCoordv = openfl_TextureCoord;

        if (openfl_HasColorTransform) {

            openfl_ColorMultiplierv = openfl_ColorMultiplier;
            openfl_ColorOffsetv = openfl_ColorOffset / 255.0;

        }

        gl_Position = openfl_Matrix * openfl_Position;

        }
Segmentation fault (core dumped)
Gama11 commented 5 years ago

This hasn't happened in quite a while now (Neko unit tests are now disabled on Travis though).