question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash on exit on NixOS build

See original GitHub issue

Steps to reproduce:

  1. start cudatext
  2. stop via File -> Quit

What happens:

[FORMS.PP] ExceptionOccurred 
  Sender=EAccessViolation
  Exception=Access violation
  Stack trace:
  $0000000000000000
  $000000000087FD72
  $000000000056E476
  $00000000005F642E
  $00000000005E36C9
  $00000000005F8F2E
  $0000000000478B4E
  $000000000047A566
  $00000000004309EB
  $00000000004758F6
Exception at 0000000000000000: EAccessViolation:
Access violation.
Exception at 00000000004B2E36: EAccessViolation:
Access violation.

CudaText: 1.121.0 Widget sets: qt5, gtk2, gtk3

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:33 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
sikmircommented, Jan 14, 2021

But that patch also tries to find 3.10; 3.9. Does NixOS have them? somewhere in PATH?

No, that’s NixOS specific that all dependencies pinned at build time, application can’t find any other lib somewere else, other than exact one specified at build time.

1reaction
sikmircommented, Jan 14, 2021

I’ve finally found the root cause: downgrading Python-for-Lazarus from 2021.01.08 to 2020.10.23 solves the problem (more exactly this commit caused crash). So, here is a stable deps set for cudatext 1.122.0:

$ cat pkgs/applications/editors/cudatext/deps.json | jq -r 'keys[] as $k | "\($k) \(.[$k] | .rev)"'
ATBinHex-Lazarus 2020.09.05
ATFlatControls 2021.01.12
ATSynEdit 2021.01.12
ATSynEdit_Cmp 2021.01.12
ATSynEdit_Ex 2020.10.04
CudaText-lexers 2020.08.10
EControl 2021.01.12
Emmet-Pascal 2020.09.05
EncConv 2020.06.15
Python-for-Lazarus 2020.10.23
bgrabitmap v11.3.1
Read more comments on GitHub >

github_iconTop Results From Across the Web

nix-build' freezes system on High Sierra with multi-user install
Basically, running a fairly download intensive Nix build freezes the entire High Sierra OS, causing the mouse and keyboard to not work.
Read more >
nix-build terminates my session both on console and X ...
I noticed very strange behavior. Both `nix build` and even `archlinux-nix bootstrap` cause my session to terminate after about 10-20 seconds.
Read more >
NixOS 22.11 manual
The installer (or rather, the build actions that it may spawn) may need ... crash. Simulate a sudden power failure, by telling the...
Read more >
Development environment with nix-shell - NixOS Wiki
To do so, you have to create a shell.nix file at the root of your repository. ... to the gtk schemas, if not...
Read more >
Nix shell fails to start for Plutus - Cardano Stack Exchange
... for '/nix/store/g0drypafpyzckkpwzplp9k9amx4bf7a4-download_file?file_path=purty-6.2.0-linux.tar.gz.drv' failed with exit code 1 building ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found