Lua crashes when spawning entities in optimized builds #19
Labels
No Label
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: SeanOMik/lyra-engine#19
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When Lua spawns an entity, the engine crashes with a SIGABRT error (maybe SIGSEGV). This crash happens when spawning an entity on a world and passing a
Transform
, causing the userdata's__lyra_internal_reflect
function to be called which clonesthis.0
(src).I have no clue what causes it yet, its likely something in the elua crate. I tried to make a test to figure it out, but I couldn't get the crash to trigger
Lua crashes when spawning entities with optimizer or release mode.to Lua crashes when spawning entities in optimized buildsI ended up fixing this by switching to mlua for the lua library. It was fun writing my own lua library, elua, but there's so much
unsafe
code in it, I would prefer to use someone who knows more about what they're doing lol.