# \#error

**URL:** https://discourse.julialang.org/tag/error/134.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [How to handle errors and prevent script from crashing after](https://discourse.julialang.org/t/how-to-handle-errors-and-prevent-script-from-crashing-after/138168)

<div class="topic-metadata">

**Author:** [@Mervyn\_Larrier](https://discourse.julialang.org/u/Mervyn_Larrier)\
**Replies:** 5\
**Last updated:** [July 14, 2026, 10:32am UTC](https://discourse.julialang.org/t/how-to-handle-errors-and-prevent-script-from-crashing-after/138168 "2026-07-14T10:32:09Z")

</div>

Hi all. I’m writing a script to make a job a little bit easier, and it may be something I share with others so I’m trying to put a bit more care into making it. I’m not very familiar with error handling and I’m struggli…

---

## [\`get()\` returns default value instead of value matching to valid key when default value is an \`error()\`](https://discourse.julialang.org/t/get-returns-default-value-instead-of-value-matching-to-valid-key-when-default-value-is-an-error/137670)

<div class="topic-metadata">

**Author:** [@jlawrie](https://discourse.julialang.org/u/jlawrie)\
**Replies:** 10\
**Last updated:** [June 19, 2026, 12:26pm UTC](https://discourse.julialang.org/t/get-returns-default-value-instead-of-value-matching-to-valid-key-when-default-value-is-an-error/137670 "2026-06-19T12:26:09Z")

</div>

Hello everyone! Looking at the MWE below: It appears error/throw are run before get is finished, causing get to be interrupted and the default value to be returned, rather than the value which matches the valid key as …

---

## [CUDA backward real complex FFT](https://discourse.julialang.org/t/cuda-backward-real-complex-fft/137254)

<div class="topic-metadata">

**Author:** [@FerreolS](https://discourse.julialang.org/u/FerreolS)\
**Replies:** 2\
**Last updated:** [May 23, 2026, 9:12pm UTC](https://discourse.julialang.org/t/cuda-backward-real-complex-fft/137254 "2026-05-23T21:12:58Z")

</div>

I’m trying to perform a convolution using CUDA fft and something puzzle me when comparing CPU and GPU result: using Adapt, CUDA, FFTW, AbstractFFTs T = Float32 sz = (2048,2048) x = randn(T,sz); x\_gpu = adapt(CuArray,x);…

---

## [MTK with MonteCarloMeasurements Error](https://discourse.julialang.org/t/mtk-with-montecarlomeasurements-error/135988)

<div class="topic-metadata">

**Author:** [@optimal\_georg](https://discourse.julialang.org/u/optimal_georg)\
**Replies:** 7\
**Last updated:** [March 4, 2026, 2:05pm UTC](https://discourse.julialang.org/t/mtk-with-montecarlomeasurements-error/135988 "2026-03-04T14:05:21Z")

</div>

Hi out there! I am trying to use MonteCarloMeasurements.jl together with MTK to solve a differential equation with uncertain parameters. using ModelingToolkit, DifferentialEquations using MonteCarloMeasurements using C…

---

## [Floating-point accuracy visualization example: the ULP error for each math function coming with Julia](https://discourse.julialang.org/t/floating-point-accuracy-visualization-example-the-ulp-error-for-each-math-function-coming-with-julia/135392)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 20\
**Last updated:** [February 6, 2026, 2:25pm UTC](https://discourse.julialang.org/t/floating-point-accuracy-visualization-example-the-ulp-error-for-each-math-function-coming-with-julia/135392 "2026-02-06T14:25:29Z")

</div>

Introduction The implementation of a math function, such as cos(::Float64) in Julia, should be fast, but also needs to be at least somewhat accurate. Here I propose a method for visualizing empirical accuracy data. Cons…

---

## [Keyword arguments of 32-bit type don't work](https://discourse.julialang.org/t/keyword-arguments-of-32-bit-type-dont-work/135311)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 6\
**Last updated:** [January 29, 2026, 5:37pm UTC](https://discourse.julialang.org/t/keyword-arguments-of-32-bit-type-dont-work/135311 "2026-01-29T17:37:28Z")

</div>

Why 32bit keyword argument functions give error (Int32 also) ? julia\> x = 2 2 julia\> function sixty\_four(x; y::Float64=0.5) x+y end sixty\_four (generic function with 1 method) julia\> function thi…

---

## [PlutoUI: DimensionMismatch: incompatible shape in element 4](https://discourse.julialang.org/t/plutoui-dimensionmismatch-incompatible-shape-in-element-4/134982)

<div class="topic-metadata">

**Author:** [@Grass](https://discourse.julialang.org/u/Grass)\
**Replies:** 1\
**Last updated:** [January 10, 2026, 3:35pm UTC](https://discourse.julialang.org/t/plutoui-dimensionmismatch-incompatible-shape-in-element-4/134982 "2026-01-10T15:35:22Z")

</div>

With integer entries, everything works fine and dandy. But, when I change one entry to a decimal, all hell breaks loose: Anyone knows how to fix this? Source code: ### A Pluto.jl notebook ### # v0.20.21 using Markd…

---

## [Seg fault when using julia (pakcage installation, profiling)](https://discourse.julialang.org/t/seg-fault-when-using-julia-pakcage-installation-profiling/133991)

<div class="topic-metadata">

**Author:** [@Ahmed\_ALKAF](https://discourse.julialang.org/u/Ahmed_ALKAF)\
**Replies:** 15\
**Last updated:** [November 21, 2025, 2:56pm UTC](https://discourse.julialang.org/t/seg-fault-when-using-julia-pakcage-installation-profiling/133991 "2025-11-21T14:56:15Z")

</div>

Hello, I’m new to Julia so I don’t know if seg faults are a classic thing but anyway, I have one and I don’t know why. I installed Julia using Juliaup I’m on linux, so I just ran the command curl -fsSL https://instal…

---

## [Syntax error in an array expression](https://discourse.julialang.org/t/syntax-error-in-an-array-expression/22607)

<div class="topic-metadata">

**Author:** [@vvjn](https://discourse.julialang.org/u/vvjn)\
**Replies:** 6\
**Last updated:** [November 18, 2025, 10:19am UTC](https://discourse.julialang.org/t/syntax-error-in-an-array-expression/22607 "2025-11-18T10:19:22Z")

</div>

I ran the following code A = rand(2,3); A\[1, 2 +1 \] and I got this error ERROR: syntax: missing separator in array expression. Same error with i=2; A\[1, i +1\], which is how I came across this. Of course, A\[1,2+1\] works …

---

## [Terminate simulation on event using ModelingToolkit](https://discourse.julialang.org/t/terminate-simulation-on-event-using-modelingtoolkit/133243)

<div class="topic-metadata">

**Author:** [@klinders](https://discourse.julialang.org/u/klinders)\
**Replies:** 4\
**Last updated:** [November 5, 2025, 10:57am UTC](https://discourse.julialang.org/t/terminate-simulation-on-event-using-modelingtoolkit/133243 "2025-11-05T10:57:05Z")

</div>

Hi all, First of all, thank you all for your immense efforts on Julia and ModelingToolkit. I’ve been using it for over 2 years and I keep being impressed with the power and capabilities. I’m trying to terminate an MTK …

---

## [GLMakie + ProfileView.jl segmentation fault](https://discourse.julialang.org/t/glmakie-profileview-jl-segmentation-fault/132515)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 4\
**Last updated:** [September 23, 2025, 2:34pm UTC](https://discourse.julialang.org/t/glmakie-profileview-jl-segmentation-fault/132515 "2025-09-23T14:34:01Z")

</div>

After switching to Makie v0.24, I noticed that it no longer plays well with ProfileView.jl But at the moment I am not really sure, whether that is my laptop’s issue or even something coming from ProfileView.jl ? Could …

---

## [AI error messages, and solutions/code fixes](https://discourse.julialang.org/t/ai-error-messages-and-solutions-code-fixes/131979)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 3\
**Last updated:** [August 31, 2025, 1:44pm UTC](https://discourse.julialang.org/t/ai-error-messages-and-solutions-code-fixes/131979 "2025-08-31T13:44:05Z")

</div>

@tecosaur I was starting to read: With many compilers you get a location like program.x:43:22 that you have to decipher. Where is that file? Which one is the line? Which is the column? Okay, let me scan through my c…

---

## [\[10757\] signal 11 (1): Segmentation fault](https://discourse.julialang.org/t/10757-signal-11-1-segmentation-fault/131139)

<div class="topic-metadata">

**Author:** [@redti](https://discourse.julialang.org/u/redti)\
**Replies:** 37\
**Last updated:** [July 30, 2025, 4:42pm UTC](https://discourse.julialang.org/t/10757-signal-11-1-segmentation-fault/131139 "2025-07-30T16:42:04Z")

</div>

Hi, I’m completely new to Julia, I’d like to begging by expressing my appreciation for the FreeBSD installation package to the Dev responsible for it. I’m under FreeBSD 14.3 patch 1. I’m using KDE, Plasma 6.4.3. The w…

---

## [GLMakie -- text versus annotation -- annotation not working?](https://discourse.julialang.org/t/glmakie-text-versus-annotation-annotation-not-working/130854)

<div class="topic-metadata">

**Author:** [@diadora77](https://discourse.julialang.org/u/diadora77)\
**Replies:** 5\
**Last updated:** [July 19, 2025, 11:55am UTC](https://discourse.julialang.org/t/glmakie-text-versus-annotation-annotation-not-working/130854 "2025-07-19T11:55:45Z")

</div>

Hi- Tried using annotation according to the docs and receiving a recipe error. A minimum viable example is provide below which is very similar to the docs example. ts = rand(10,2) lbs = string.(1:10) f = Figure() ax…

---

## [OpenSSL\_jll error after PyCall-importing a module which uses libcrypto](https://discourse.julialang.org/t/openssl-jll-error-after-pycall-importing-a-module-which-uses-libcrypto/129806)

<div class="topic-metadata">

**Author:** [@polhager](https://discourse.julialang.org/u/polhager)\
**Replies:** 0\
**Last updated:** [June 11, 2025, 1:53pm UTC](https://discourse.julialang.org/t/openssl-jll-error-after-pycall-importing-a-module-which-uses-libcrypto/129806 "2025-06-11T13:53:15Z")

</div>

So OpenSSL\_jll uses libcrypto and libssl, both of which are downloaded as artifacts. libssl has a dependency on libcrypto, so when loading libssl the system also looks for libcrypto. During normal usage, everything works…

---

## [\`check-bounds=no\` causes illegal memory access when using \`rand()\` in CUDA kernel](https://discourse.julialang.org/t/check-bounds-no-causes-illegal-memory-access-when-using-rand-in-cuda-kernel/129455)

<div class="topic-metadata">

**Author:** [@0samuraiE](https://discourse.julialang.org/u/0samuraiE)\
**Replies:** 3\
**Last updated:** [May 31, 2025, 7:38am UTC](https://discourse.julialang.org/t/check-bounds-no-causes-illegal-memory-access-when-using-rand-in-cuda-kernel/129455 "2025-05-31T07:38:44Z")

</div>

I’m encountering an error when running the following minimal example with check-bounds=no. With bounds checking enabled (check-bounds=yes), it works fine. But disabling it causes: ERROR: CUDA error: an illegal memory ac…

---

## [Can't remove process when added on different thread](https://discourse.julialang.org/t/cant-remove-process-when-added-on-different-thread/129357)

<div class="topic-metadata">

**Author:** [@NonDairyNeutrino](https://discourse.julialang.org/u/NonDairyNeutrino)\
**Replies:** 2\
**Last updated:** [May 26, 2025, 9:05pm UTC](https://discourse.julialang.org/t/cant-remove-process-when-added-on-different-thread/129357 "2025-05-26T21:05:05Z")

</div>

It seems that when a worker process is added on a thread with threadid != 1 (probably), it can’t be naively removed. For example using Distributed new\_proc = fetch(Threads.@spawn addprocs(1)) |\> only rmprocs(new\_proc)…

---

## [Files quota exceeded when trying to install Julia on a cluster with juliaup](https://discourse.julialang.org/t/files-quota-exceeded-when-trying-to-install-julia-on-a-cluster-with-juliaup/128469)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 2\
**Last updated:** [May 1, 2025, 5:14am UTC](https://discourse.julialang.org/t/files-quota-exceeded-when-trying-to-install-julia-on-a-cluster-with-juliaup/128469 "2025-05-01T05:14:04Z")

</div>

I’m trying to install Julia on a cluster, running this: curl -fsSL https://install.julialang.org | sh -s -- --path $JULIAUP\_DEPOT\_PATH But I get the following error: Now installing Juliaup Error: Failed to extract dow…

---

## [CUDA(.jl) memory errors for very large kernels](https://discourse.julialang.org/t/cuda-jl-memory-errors-for-very-large-kernels/125831)

<div class="topic-metadata">

**Author:** [@AntonReinhard](https://discourse.julialang.org/u/AntonReinhard)\
**Replies:** 24\
**Last updated:** [April 22, 2025, 6:45pm UTC](https://discourse.julialang.org/t/cuda-jl-memory-errors-for-very-large-kernels/125831 "2025-04-22T18:45:39Z")

</div>

I have some questions about what some CUDA errors mean and what I can do about them. I’m dynamically generating code that I can successfully compile for both CPU and GPU targets (the GPU I’m using here is an A30 with 24…

---

## [Is matrix multiplication not associative?](https://discourse.julialang.org/t/is-matrix-multiplication-not-associative/127231)

<div class="topic-metadata">

**Author:** [@Yeguarr](https://discourse.julialang.org/u/Yeguarr)\
**Replies:** 22\
**Last updated:** [March 23, 2025, 2:11am UTC](https://discourse.julialang.org/t/is-matrix-multiplication-not-associative/127231 "2025-03-23T02:11:43Z")

</div>

Hi! I have a very simple code snippet: let B = \[1;1\] K = \[1 2\] x = \[1;2\] (B\*K)\*x #Works fine B\*(K\*x) #MethodError: no method matching \*(::Vector{Int64}, ::Vector{Int64}) end It seems that Julia automatically conv…

---

## [ModelingToolkitDesigner Example issue](https://discourse.julialang.org/t/modelingtoolkitdesigner-example-issue/126705)

<div class="topic-metadata">

**Author:** [@jaksaa](https://discourse.julialang.org/u/jaksaa)\
**Replies:** 1\
**Last updated:** [March 8, 2025, 8:10pm UTC](https://discourse.julialang.org/t/modelingtoolkitdesigner-example-issue/126705 "2025-03-08T20:10:49Z")

</div>

ModelingToolkitDesigner example: ModelingToolkitDesigner.jl/examples/electrical.jl at master · bradcarman/ModelingToolkitDesigner.jl · GitHub Copied the example into a file.jl Then did include(“file.jl”) The linking …

---

## [Precompilation error when installing Makie/GLMakie](https://discourse.julialang.org/t/precompilation-error-when-installing-makie-glmakie/126460)

<div class="topic-metadata">

**Author:** [@LucasMSpereira](https://discourse.julialang.org/u/LucasMSpereira)\
**Replies:** 11\
**Last updated:** [March 2, 2025, 10:00pm UTC](https://discourse.julialang.org/t/precompilation-error-when-installing-makie-glmakie/126460 "2025-03-02T22:00:54Z")

</div>

When trying to add Makie, precompilation errors are triggered (with GLMakie, Pango\_jll and GLMakie also show up in this list): Precompiling project... ✗ OpenEXR ✗ Cairo\_jll ✗ HarfBuzz\_jll ✗ libass\_jll ✗ FFMPEG…

---

## [DimensionMismatch with MLJ](https://discourse.julialang.org/t/dimensionmismatch-with-mlj/125905)

<div class="topic-metadata">

**Author:** [@LucasMSpereira](https://discourse.julialang.org/u/LucasMSpereira)\
**Replies:** 0\
**Last updated:** [February 14, 2025, 1:17pm UTC](https://discourse.julialang.org/t/dimensionmismatch-with-mlj/125905 "2025-02-14T13:17:16Z")

</div>

I’m trying to use MultitargetLinearRegressor in MLJ.jl. This is the mwe: using MLJ, DataFrames multiLinReg = @load MultitargetLinearRegressor pkg = MultivariateStats # data inputs = DataFrame(rand(136, 11), :auto) prepa…

---

## [Getting errors when adding \`DataDrivenDiffEq\` package](https://discourse.julialang.org/t/getting-errors-when-adding-datadrivendiffeq-package/118301)

<div class="topic-metadata">

**Author:** [@mmohammadi9812](https://discourse.julialang.org/u/mmohammadi9812)\
**Replies:** 2\
**Last updated:** [January 26, 2025, 4:34am UTC](https://discourse.julialang.org/t/getting-errors-when-adding-datadrivendiffeq-package/118301 "2025-01-26T04:34:47Z")

</div>

Hey guys. I’m having problems when trying to add DataDrivenDiffEq package. As per what the documentation and github readme of package says, I tried import Pkg; Pkg.add("DataDrivenDiffEq") and also pkg\> add DataDrivenDiff…

---

## [Julia can only run as root--- why](https://discourse.julialang.org/t/julia-can-only-run-as-root-why/124905)

<div class="topic-metadata">

**Author:** [@MatFi](https://discourse.julialang.org/u/MatFi)\
**Replies:** 1\
**Last updated:** [January 18, 2025, 7:45pm UTC](https://discourse.julialang.org/t/julia-can-only-run-as-root-why/124905 "2025-01-18T19:45:40Z")

</div>

Hi, after some time I wanted to do something in Julia again, how ever I observe the following error when I start julia as normal user; ERROR: Unable to load dependent library /home/matfi/.julia/julia-1.11.2/bin/../lib/j…

---

## [Alert! error when slicing](https://discourse.julialang.org/t/alert-error-when-slicing/123860)

<div class="topic-metadata">

**Author:** [@govindanupam](https://discourse.julialang.org/u/govindanupam)\
**Replies:** 8\
**Last updated:** [December 18, 2024, 3:21pm UTC](https://discourse.julialang.org/t/alert-error-when-slicing/123860 "2024-12-18T15:21:24Z")

</div>

My intension was to do Slicing an 3d object which is inside the stl file. Please help with below code using FileIO using GeometryBasics using GLMakie rotate\_x(point::GeometryBasics.Point{3, Float32}, angle\_deg::Float…

---

## [Cfunction error handling](https://discourse.julialang.org/t/cfunction-error-handling/123925)

<div class="topic-metadata">

**Author:** [@Sergey](https://discourse.julialang.org/u/Sergey)\
**Replies:** 0\
**Last updated:** [December 17, 2024, 1:29pm UTC](https://discourse.julialang.org/t/cfunction-error-handling/123925 "2024-12-17T13:29:55Z")

</div>

Hi. Im calling cfunctions from c++ code. Is it possible not to break execution and do error handling if one occure on julia sode? for exmple: function calc(x :: Float32) return 100 \* sqrt(-x) end call this with …

---

## [Alert! Error while slicing](https://discourse.julialang.org/t/alert-error-while-slicing/123439)

<div class="topic-metadata">

**Author:** [@govindanupam](https://discourse.julialang.org/u/govindanupam)\
**Replies:** 5\
**Last updated:** [December 5, 2024, 8:57am UTC](https://discourse.julialang.org/t/alert-error-while-slicing/123439 "2024-12-05T08:57:29Z")

</div>

using FileIO using GeometryBasics using MeshIO Load the STL file input\_file = “C:\\Users\\OMG\\Desktop\\3D model\\square.stl” mesh = FileIO.load(input\_file) Define a slicing plane (e.g., Z = 0.5) slice\_plane\_z = 0.5 Fun…

---

## [Neovim lsp unused variables bug](https://discourse.julialang.org/t/neovim-lsp-unused-variables-bug/117363)

<div class="topic-metadata">

**Author:** [@pp4bb](https://discourse.julialang.org/u/pp4bb)\
**Replies:** 1\
**Last updated:** [November 25, 2024, 12:21am UTC](https://discourse.julialang.org/t/neovim-lsp-unused-variables-bug/117363 "2024-11-25T00:21:39Z")

</div>

Hi everyone, I’m using Neovim and the lsp linter presents a bug that tags all my variables as unused if passed as arguments or in different blocks. If anyone knows how to fix it I would be grateful (or instructions in ho…

---

## [Chaining errors](https://discourse.julialang.org/t/chaining-errors/122984)

<div class="topic-metadata">

**Author:** [@martin\_sanchez](https://discourse.julialang.org/u/martin_sanchez)\
**Replies:** 2\
**Last updated:** [November 24, 2024, 11:45am UTC](https://discourse.julialang.org/t/chaining-errors/122984 "2024-11-24T11:45:49Z")

</div>

When a dictionary cannot retrieve values it shows two error types, is it making a kind of chaining or is it just inside the error message? LoadError: KeyError: key "d" not found

[Next page](https://discourse.julialang.org/tag/error/134.md?match_all_tags=true&page=1&tags%5B%5D=error)
