SHADERed icon indicating copy to clipboard operation
SHADERed copied to clipboard

Version 1.3.5 (internal version 14) crashes when trying to export to C++

Open heindelj opened this issue 4 years ago • 2 comments

If I simply open up an empty glsl project and try to export to C++, shadered will crash. I have tried this with non-empty projects as well and it also results in a crash. I am running on a recent version of Windows 10 with an Intel CPU, if that is of use.

heindelj avatar Jul 20 '20 03:07 heindelj

Fully empty SHADERed project or does it have some items in the "Pipeline" window? Is it one of the provided projects? Could you maybe zip the project? I can't seem to get it to crash. However, there was a bug that caused SHADERed to report an error when exporting to C++ even though there were no errors (and vice versa) - should be fixed in v1.3.6

dfranx avatar Jul 22 '20 18:07 dfranx

I reproed this with my same project which is able to add a texture twice but not three times.

Running Ubuntu WSL on Win 10 using strace I get an exit code of 9, which a quick search says is:

ERROR_INVALID_BLOCK

9 (0x9)

The storage control block address is invalid.

End of strace / log:

[13:53:29] Exporting SHADERed project as C++ project
, 0x7fffe0139b78) = 0
rt_sigaction(SIGWINCH, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x40e075}, NULL, 8) = 0
close(6)                                = 0
read(7, "", 2)                          = 0
close(7)                                = 0
close(3)                                = 0
close(4)                                = 0
close(5)                                = 0
exit_group(-1073740791)                 = ?
+++ exited with 9 +++

Export seemed tp work for the default simple cube project. I'll post again if I get a shareable repro project.

huawei-ahcox avatar Feb 08 '21 14:02 huawei-ahcox