phaser driver causes nac3 segfault #202
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#202
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?
ARTIQ ea55c29568bacddf7e2faedc5c686fe351ac5b12
Uncomment the two
# NAC3TODO segfault
lines in nac3devices.py.(Still segfaults after fixing the incorrect
Fastino
annotation)Removing the
channel: Kernel[list[PhaserChannel]]
attribute initialized by the host stops the segfault and compilation completes.Looks like the problem is due to reference cycles. Will fix.
Fixed the cyclic reference issue. Apart from that, it seems that the port has type error:
thread '<unnamed>' panicked at 'Codegen error: CompileError: Error getting field phaser0: CompileError: Error getting field channel: CompileError: Error getting element 0: CompileError: Error getting field trf_mmap: CompileError: Error getting element 5: CompileError: 2425360398 is not in the range of int32', /home/pca006132/code/rust/nac3/nac3core/src/codegen/mod.rs:225:13
btw I am thinking about how to improve this error message...
That's a bit annoying, the list should contain that value indeed. The best solution would be #14 ...