Please select what you are reporting on:
Unreal Editor for Fortnite
What Type of Bug are you experiencing?
Stability
Summary
In the attempt to rewrite the result
type because of the prior crashing variant I managed to hit another editor crashing bug.
Steps to Reproduce
Use this code snippet:
error<public> := interface {
Description<public>(): string
}
result<public>(success: type, failure: subtype(error)) := interface {
Success<public>()<transacts><decides>: success
Failure<public>()<transacts><decides>: failure
}
result_impl(success: type, failure: subtype(error)) := class(result(success, failure)) {
S: ?success = false
F: ?failure = false
Success<override>()<transacts><decides>: success = {
S?
}
Failure<override>()<transacts><decides>: failure = {
F?
}
}
result_constructor<public>(success: type, failure: subtype(error)) := class {
Success<public>(S: success): result(success, failure) = {
result_impl(success, failure) {
S := option { S }
}
}
Failure<public>(F: failure): result(success, failure) = {
result_impl(success, failure) {
F := option { F }
}
}
}
Result<public>(success: type, failure: subtype(error)): result_constructor(success, failure) = {
result_constructor(success, failure) {}
}
test_error := class(error) {
Description<override>(): string = "test"
}
FuncTest(): void = {
Result(int, test_error).Success(42)
}
Expected Result
It should not crash.
Observed Result
Crashes the editor during build time as well as launch time.
Script Stack (0 frames) :
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: === Handled ensure: ===
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error:
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: Ensure condition failed: InTargetFunction->Script.Num() == 0 [File:D:\build\++Fortnite\Sync\Engine\Restricted\NotForLicensees\Plugins\Solaris\Source\Solaris\Private\SolarisCodeGenerator.cpp] [Line: 224]
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: The script container of the target function must be empty prior to new code generation.
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: Stack:
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71be95ad1 UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71bcac3ed UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71be9cd5c UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71bd9435e UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71ec4f200 UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71ee54ae3 UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71ee82935 UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71ee93c74 UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71ee937b1 UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71ee3271a UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71ee33ff7 UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71ee33c07 UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71ee32acc UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71eec0462 UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71f04ffe3 UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71f04f532 UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71f055099 UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71f054e15 UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff72b5c2062 UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff72b593b7e UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff72b5bdfbd UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff72b61acf9 UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff72b64c20d UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff72b61b0bb UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff72b64c1cd UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71c5b73d5 UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71c5c1331 UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71c5ab622 UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71c5eaaed UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71c5c1251 UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71c5bfb3a UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71bc80eae UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71bee4e44 UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71beedcfc UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71beedd8a UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71beeecc0 UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff71befa194 UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ff731db9212 UnrealEditorFortnite-Win64-Shipping.exe!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ffa27077344 KERNEL32.DLL!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error: [Callstack] 0x00007ffa280c26b1 ntdll.dll!UnknownFunction []
[2024.05.03-19.34.50:962][871]LogOutputDevice: Error:
Platform(s)
PC