Black screen

I’m using Blender 2.81a and Armory 2019.12.0 and when I hit play I just get a black screen, the weird thing is all of my previous programs run.

If I start a new blender file and save it with the default cube and hit play I get the black screen. If I take one of my old working files and make a copy of the project and delete everything and just place a default cube and hit play it runs.

Any idea what may be happening?

Thanks,

Brian

Hi Brian, can you post the console log that appears when you hit play?

If you’re running blender on Windows you can open the console by clicking Window > Toggle System Console.

Also, where did you get the latest version from? was it from the official download page? or from the addon page (in Blender preferences) with the “Download SDK” button?

I got it from the from the itch.io page after installing, I then did an update from within blender preferences.

here’s the console log:

Armory v2019.12 ($Id: 94dc8b99633e01e2432e7b7818ba7c0fe7a461a9 $)
OS: win, Target: krom, GAPI: direct3d11, Blender: 2.81 (sub 16)
Exporting Scene
Scene exported in 0.005010366439819336
Exported modules: [‘audio’]
Shader flags: [’_Irr’, ‘_EnvCol’, ‘_Deferred’, ‘_ShadowMap’, ‘_CSM’, ‘_SinglePoint’, ‘_SMAA’, ‘_SSAO’, ‘_Deferred’, ‘_ShadowMap’, ‘_CSM’, ‘_SinglePoint’, ‘_SMAA’, ‘_SSAO’, ‘_Deferred’, ‘_ShadowMap’, ‘_CSM’, ‘_SinglePoint’, ‘_SMAA’, ‘_SSAO’, ‘_Deferred’, ‘_ShadowMap’, ‘_CSM’, ‘_SinglePoint’, ‘_SMAA’, ‘_SSAO’]
Running: [‘C:\Program Files\Blender\ArmorySDK1912\ArmorySDK//nodejs/node.exe’, ‘C:\Program Files\Blender\ArmorySDK1912\ArmorySDK//Kha/make’, ‘krom’, ‘-g’, ‘direct3d11’, ‘–shaderversion’, ‘330’, ‘–parallelAssetConversion’, ‘4’, ‘–to’, ‘build_untitled/debug’, ‘–nohaxe’, ‘–noproject’]
Using project from C:\Users\bkuma_000\Desktop\New Folder(1)
Using Kha (204c3023) from C:\Program Files\Blender\ArmorySDK1912\ArmorySDK\Kha
Creating Kha project.
Exporting asset 1 of 1 (Scene.arm).
Exporting asset 1 of 2 (Material_data.arm).
Exporting asset 2 of 2 (shader_datas.arm).
Exporting asset 1 of 1 (brdf.png).
Exporting asset 1 of 1 (smaa_area.png).
Exporting asset 1 of 1 (smaa_search.png).
Compiling shader 1 of 19 (Material_mesh.frag.glsl).
Compiling shader 2 of 19 (Material_mesh.vert.glsl).
Compiling shader 3 of 19 (Material_shadowmap.frag.glsl).
Compiling shader 4 of 19 (Material_shadowmap.vert.glsl).
Compiling shader 5 of 19 (blur_edge_pass.frag.glsl).
Compiling shader 6 of 19 (compositor_pass.frag.glsl).
Compiling shader 7 of 19 (compositor_pass.vert.glsl).
Compiling shader 8 of 19 (deferred_light.frag.glsl).
Compiling shader 9 of 19 (pass.vert.glsl).
Compiling shader 10 of 19 (pass_viewray.vert.glsl).
Compiling shader 11 of 19 (smaa_blend_weight.frag.glsl).
Compiling shader 12 of 19 (smaa_edge_detect.frag.glsl).
Compiling shader 13 of 19 (smaa_blend_weight.vert.glsl).
Compiling shader 14 of 19 (smaa_edge_detect.vert.glsl).
Compiling shader 15 of 19 (smaa_neighborhood_blend.frag.glsl).
Compiling shader 16 of 19 (smaa_neighborhood_blend.vert.glsl).
Compiling shader 17 of 19 (ssao_pass.frag.glsl).
Compiling shader 18 of 19 (world_pass.frag.glsl).
Compiling shader 19 of 19 (world_pass.vert.glsl).
Compiling shader 1 of 8 (painter-colored.frag.glsl).
Compiling shader 2 of 8 (painter-colored.vert.glsl).
Compiling shader 3 of 8 (painter-image.frag.glsl).
Compiling shader 4 of 8 (painter-image.vert.glsl).
Compiling shader 5 of 8 (painter-text.vert.glsl).
Compiling shader 6 of 8 (painter-text.frag.glsl).
Compiling shader 7 of 8 (painter-video.vert.glsl).
Compiling shader 8 of 8 (painter-video.frag.glsl).
Done.
Finished in 2.855478286743164
Trace: TypeError: Cannot read property ‘hxBytes’ of undefined
at Function.haxe_io_Bytes.ofData (:1262:13)
at Function.kha_LoaderImpl.loadBlobFromDescription (:20455:48)
at Function.kha_Assets.loadBlobFromPath (:19569:17)
at Function.iron_data_Data.getBlob (:4566:13)
at Function.iron_data_Data.getSceneRaw (:4396:17)
at Function.iron_data_MeshData.parse (:5538:17)
at Function.iron_data_Data.getMesh (:4104:21)
at iron_Scene.returnMeshObject (:3592:18)
at iron_Scene.createMeshObject (:3587:9)
at :3478:16

I’ve also tried reverting back to the version from download (without updating the SDK) Same issue

Do you have GIT installed?

I couldn’t reproduce the issue in the latest version from git, so I recommend trying to update Armory with the “Update SDK” button.

Trace: TypeError: Cannot read property ‘hxBytes’ of undefined This type of error happen when krom can’t parse file properly. Here it look like it can’t parse mesh. In that case try clean building or remove default cube and re-add it.

That didn’t work :frowning:

That didn’t work either :frowning:

Try running it in html5 and then post errors in web console, html5 have better errors than krom and can help pinpoint the issue.

Here’s what I get in HTML5:

kha.js:731 kha/graphics4/PipelineState.hx:111: Warning: Sampler tex not found.
kha.js:23558 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
kha_audio2_Audio.initContext @ kha.js:23558
:8040/favicon.ico:1 Failed to load resource: the server responded with a status of 404 (File not found)
:8040/build_untitled/debug/html5/World_irradiance.arm:1 Failed to load resource: the server responded with a status of 404 (File not found)
kha.js:731 Sources/iron/data/Data.hx:347: {
url : World_irradiance.arm
}

I went back to Blender 2.8 and Armory 2019.10.0 and the same thing happens, I start Blender, save the file and hit play and I get a black screen. I can open older files and they will show up when hitting play even if they were not Armory specific files (with the Armory shader, nodes attached, etc.) so weird.

Can someone try starting a new blender file, saving it and hitting play to see if it compiles and works?

You’re going to love this, it was the folder name the whole time [New Folder (4)]

Armory doesn’t like the brackets, thanks for all the help.

Brian

3 Likes