# \#bug

**URL:** https://discourse.julialang.org/tag/bug/51.md

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

---

## [Pretty sure this is a severe compiler bug breaking typeof via just a simple parametrized type](https://discourse.julialang.org/t/pretty-sure-this-is-a-severe-compiler-bug-breaking-typeof-via-just-a-simple-parametrized-type/139145)

<div class="topic-metadata">

**Author:** [@skraemer](https://discourse.julialang.org/u/skraemer)\
**Replies:** 17\
**Last updated:** [September 6, 2026, 1:44pm UTC](https://discourse.julialang.org/t/pretty-sure-this-is-a-severe-compiler-bug-breaking-typeof-via-just-a-simple-parametrized-type/139145 "2026-09-06T13:44:47Z")

</div>

The following short code yields an incorrect false (in both v1.12.6/7) from a typeof call, or respectively, typeof(x) changes during runtime even though x does not. Short version struct PT{X} field::X PT(x::X)…

---

## [Compiler/Optimizer Type Inference Bug with Recursive, Nested Types (in v1.12.6)](https://discourse.julialang.org/t/compiler-optimizer-type-inference-bug-with-recursive-nested-types-in-v1-12-6/138526)

<div class="topic-metadata">

**Author:** [@skraemer](https://discourse.julialang.org/u/skraemer)\
**Replies:** 5\
**Last updated:** [July 30, 2026, 1:30pm UTC](https://discourse.julialang.org/t/compiler-optimizer-type-inference-bug-with-recursive-nested-types-in-v1-12-6/138526 "2026-07-30T13:30:44Z")

</div>

The following two examples each produce supposedly impossible results or crash the repl entirely, even though the code is pure Julia. I did not manage to reduce the examples further, at least not by simplifying single li…

---

## [Julia 1.9 on Intel Sapphire Rapid CPU doesn't work](https://discourse.julialang.org/t/julia-1-9-on-intel-sapphire-rapid-cpu-doesnt-work/118444)

<div class="topic-metadata">

**Author:** [@JohnnyChen94](https://discourse.julialang.org/u/JohnnyChen94)\
**Replies:** 6\
**Last updated:** [July 25, 2026, 4:13pm UTC](https://discourse.julialang.org/t/julia-1-9-on-intel-sapphire-rapid-cpu-doesnt-work/118444 "2026-07-25T16:13:52Z")

</div>

We recently bought a new server with the latest Intel CPU (Sapphire Rapids), yet we just realized that it doesn’t work for Julia 1.9.x versions. Here’s a brief report: julia\> versioninfo() Julia Version 1.9.3 Commit bed…

---

## [CUDA.jl with @threads causing memory leak?](https://discourse.julialang.org/t/cuda-jl-with-threads-causing-memory-leak/136853)

<div class="topic-metadata">

**Author:** [@noetheriankoala](https://discourse.julialang.org/u/noetheriankoala)\
**Replies:** 3\
**Last updated:** [April 27, 2026, 10:23pm UTC](https://discourse.julialang.org/t/cuda-jl-with-threads-causing-memory-leak/136853 "2026-04-27T22:23:37Z")

</div>

Hello. First of all, I am using Julia v1.12.6, CUDA v5.11.2, and FLoops v0.2.2. Consider the following code and comments. using CUDA using Base.Threads function func1() A = CuArray{Float64}(undef, 1500, 1500, 1000)…

---

## [ProfileView crashes when showing a garbage collector tab](https://discourse.julialang.org/t/profileview-crashes-when-showing-a-garbage-collector-tab/136112)

<div class="topic-metadata">

**Author:** [@phma](https://discourse.julialang.org/u/phma)\
**Replies:** 0\
**Last updated:** [March 10, 2026, 4:13am UTC](https://discourse.julialang.org/t/profileview-crashes-when-showing-a-garbage-collector-tab/136112 "2026-03-10T04:13:07Z")

</div>

I’m profiling a process that I calculated should take a little over two minutes (just counting the sleeps) to find out why it actually takes ten minutes. I run @profview on it; some minutes later a window appears. The wi…

---

## [Identical input in Zygote leads to different outputs](https://discourse.julialang.org/t/identical-input-in-zygote-leads-to-different-outputs/135120)

<div class="topic-metadata">

**Author:** [@Chrysoberyl](https://discourse.julialang.org/u/Chrysoberyl)\
**Replies:** 1\
**Last updated:** [January 19, 2026, 12:27am UTC](https://discourse.julialang.org/t/identical-input-in-zygote-leads-to-different-outputs/135120 "2026-01-19T00:27:54Z")

</div>

In this script, the forward pass has no error: using GNNGraphs, GraphNeuralNetworks, NNlib, Flux graph = GNNHeteroGraph( Dict( (:A, :a, :B) =\> (\[1, 2\], \[3, 4\]), (:B, :a, :A) =\> (\[1\], \[2\]), ); …

---

## [Heatmap(): how do ylim and yflip interact?](https://discourse.julialang.org/t/heatmap-how-do-ylim-and-yflip-interact/134804)

<div class="topic-metadata">

**Author:** [@dankelley](https://discourse.julialang.org/u/dankelley)\
**Replies:** 4\
**Last updated:** [December 30, 2025, 3:24pm UTC](https://discourse.julialang.org/t/heatmap-how-do-ylim-and-yflip-interact/134804 "2025-12-30T15:24:54Z")

</div>

Hello, and happy (almost) New Year., First, I’ll apologize for a long-winded question… I am a longtime R user who is gradually moving to Julia. As an oceanographer, a common task I have is to make image plots of a wate…

---

## [Png(p, file\_name) always shows the plot \[Plots.jl, GR\]](https://discourse.julialang.org/t/png-p-file-name-always-shows-the-plot-plots-jl-gr/134225)

<div class="topic-metadata">

**Author:** [@AdamWysokinski](https://discourse.julialang.org/u/AdamWysokinski)\
**Replies:** 1\
**Last updated:** [December 1, 2025, 5:28pm UTC](https://discourse.julialang.org/t/png-p-file-name-always-shows-the-plot-plots-jl-gr/134225 "2025-12-01T17:28:49Z")

</div>

Hi, I think the behaviour of show() has changed recently. Calling: using Plots p = plot(rand(10)); png(p, tempname()) always shows the plot. Same for: using Plots p = plot(rand(10)); io = PipeBuffer() png(p, io); # …

---

## [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…

---

## [Weird bug that shouldn't happen; Cannot declare anonymous.#XX#XX constant; it already has a value](https://discourse.julialang.org/t/weird-bug-that-shouldnt-happen-cannot-declare-anonymous-xx-xx-constant-it-already-has-a-value/133989)

<div class="topic-metadata">

**Author:** [@Qfl3x](https://discourse.julialang.org/u/Qfl3x)\
**Replies:** 2\
**Last updated:** [November 19, 2025, 2:58pm UTC](https://discourse.julialang.org/t/weird-bug-that-shouldnt-happen-cannot-declare-anonymous-xx-xx-constant-it-already-has-a-value/133989 "2025-11-19T14:58:28Z")

</div>

I was just playing around in Infiltrator and stumbled on this: Shouldn’t this be impossible? I have 2 other anonymous functions used in the script. Probably dozens if not hundreds in the packages I’m using. Couldn’…

---

## [Bug in interactive slider example in WGLMakie docs?](https://discourse.julialang.org/t/bug-in-interactive-slider-example-in-wglmakie-docs/133535)

<div class="topic-metadata">

**Author:** [@IvanSpirandelli](https://discourse.julialang.org/u/IvanSpirandelli)\
**Replies:** 0\
**Last updated:** [October 30, 2025, 7:37am UTC](https://discourse.julialang.org/t/bug-in-interactive-slider-example-in-wglmakie-docs/133535 "2025-10-30T07:37:24Z")

</div>

The following code snippet combines the sections for “Record a state map” and “Export” to create an interactive plot on an html-page. The problem is that the slider starts at 0 and never returns. It seems to jump up to 2…

---

## [Error when using multistart optimization](https://discourse.julialang.org/t/error-when-using-multistart-optimization/133174)

<div class="topic-metadata">

**Author:** [@Xu\_Shan](https://discourse.julialang.org/u/Xu_Shan)\
**Replies:** 3\
**Last updated:** [October 22, 2025, 11:56am UTC](https://discourse.julialang.org/t/error-when-using-multistart-optimization/133174 "2025-10-22T11:56:48Z")

</div>

I tried to use multistart optimization with LBFGS using packages: MultiStartOptimization.jl. However, I found the code demo in the website (MultistartOptimization.jl · Optimization.jl) yields error like following message…

---

## [Broken permutation of axis in StatsPlots.jl with error bars](https://discourse.julialang.org/t/broken-permutation-of-axis-in-statsplots-jl-with-error-bars/131826)

<div class="topic-metadata">

**Author:** [@LucasV](https://discourse.julialang.org/u/LucasV)\
**Replies:** 4\
**Last updated:** [August 25, 2025, 1:37pm UTC](https://discourse.julialang.org/t/broken-permutation-of-axis-in-statsplots-jl-with-error-bars/131826 "2025-08-25T13:37:58Z")

</div>

Hi everyone, recently I’ve tried to plot a grouped bar using StatsPlots.jl with error bars. The plot works fine with no errors but when I insert them it does not work porperly, as shown in the example: Code: #Permutati…

---

## [Segmentation fault over repeated sparse Cholesky factorizations](https://discourse.julialang.org/t/segmentation-fault-over-repeated-sparse-cholesky-factorizations/131499)

<div class="topic-metadata">

**Author:** [@RayleighLord](https://discourse.julialang.org/u/RayleighLord)\
**Replies:** 2\
**Last updated:** [August 12, 2025, 9:34am UTC](https://discourse.julialang.org/t/segmentation-fault-over-repeated-sparse-cholesky-factorizations/131499 "2025-08-12T09:34:28Z")

</div>

This is related to this post but I manage to isolate the problem quite a bit. I have a sparse symmetric matrix Kee. I found that if I repeatedly factorize this matrix in a for loop (never running out of memory) at some …

---

## [Plots, heatmap and xlim](https://discourse.julialang.org/t/plots-heatmap-and-xlim/95448)

<div class="topic-metadata">

**Author:** [@Gravlax](https://discourse.julialang.org/u/Gravlax)\
**Replies:** 3\
**Last updated:** [July 15, 2025, 4:46pm UTC](https://discourse.julialang.org/t/plots-heatmap-and-xlim/95448 "2025-07-15T16:46:18Z")

</div>

Dear all, We just came across a weird behaviour when using (inapproriately) xlim. In the MWE below, x and y axis are arrays/ranges of very large numbers (say a map of ~1000 km width/height given in unit meters, so orde…

---

## [Let x = 1 # ParseError](https://discourse.julialang.org/t/let-x-1-parseerror/130050)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 5\
**Last updated:** [June 20, 2025, 6:36am UTC](https://discourse.julialang.org/t/let-x-1-parseerror/130050 "2025-06-20T06:36:46Z")

</div>

I don’t know what’s going wrong here. PS K:\\uc24\> julia \_ \_ \_ \_(\_)\_ | Documentation: https://docs.julialang.org (\_) | (\_) (\_) | \_ \_ \_| |\_ \_\_ \_ | Type "?" for help, "\]?" for…

---

## [KernelAbstractions.get\_backend(::BitArray) causes StackOverflowError](https://discourse.julialang.org/t/kernelabstractions-get-backend-bitarray-causes-stackoverflowerror/129551)

<div class="topic-metadata">

**Author:** [@0samuraiE](https://discourse.julialang.org/u/0samuraiE)\
**Replies:** 1\
**Last updated:** [June 2, 2025, 9:23am UTC](https://discourse.julialang.org/t/kernelabstractions-get-backend-bitarray-causes-stackoverflowerror/129551 "2025-06-02T09:23:57Z")

</div>

Hi all, I’m using KernelAbstractions.jl, and encountered a StackOverflowError when trying to call get\_backend on a BitArray (e.g., from a comparison like .\<): using KernelAbstractions x = rand(10) msk = x .\< 0.5 get\_ba…

---

## [\`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…

---

## [Bug with filtering DataFrames in combination with ShiftedArrays](https://discourse.julialang.org/t/bug-with-filtering-dataframes-in-combination-with-shiftedarrays/129302)

<div class="topic-metadata">

**Author:** [@PeterDM](https://discourse.julialang.org/u/PeterDM)\
**Replies:** 6\
**Last updated:** [May 26, 2025, 2:33pm UTC](https://discourse.julialang.org/t/bug-with-filtering-dataframes-in-combination-with-shiftedarrays/129302 "2025-05-26T14:33:46Z")

</div>

It seems filtering DataFrames is not compatible with ShiftedArrays in a way one would expect it to be: using DataFrames using ShiftedArrays issquare(n::Integer)=(n==round(sqrt(n))^2) N=20 numbers=collect(1:N) successo…

---

## [Julia in VSCode occasionally crashes upon pressing ctrl+C](https://discourse.julialang.org/t/julia-in-vscode-occasionally-crashes-upon-pressing-ctrl-c/128580)

<div class="topic-metadata">

**Author:** [@JWMeer](https://discourse.julialang.org/u/JWMeer)\
**Replies:** 3\
**Last updated:** [April 30, 2025, 11:31pm UTC](https://discourse.julialang.org/t/julia-in-vscode-occasionally-crashes-upon-pressing-ctrl-c/128580 "2025-04-30T23:31:02Z")

</div>

Recently, I have repeatedly encountered a problem seemingly specific to Julia in VSCode. Occasionally, I will press ctrl+C just to get a clean REPL line (so not to cancel a running command), and Julia will simply crash.…

---

## [JSON3 fails to precompile due to embedded NULs in C strings](https://discourse.julialang.org/t/json3-fails-to-precompile-due-to-embedded-nuls-in-c-strings/128482)

<div class="topic-metadata">

**Author:** [@0samuraiE](https://discourse.julialang.org/u/0samuraiE)\
**Replies:** 10\
**Last updated:** [April 30, 2025, 1:50pm UTC](https://discourse.julialang.org/t/json3-fails-to-precompile-due-to-embedded-nuls-in-c-strings/128482 "2025-04-30T13:50:33Z")

</div>

Hi all, When trying to precompile JSON3.jl on Julia 1.11.4, the following error occurs: Is there a known fix for this problem? Thank you for your support and guidance. ERROR: LoadError: ArgumentError: embedded NULs a…

---

## [QML.jl makie-plot example gives multiple errors](https://discourse.julialang.org/t/qml-jl-makie-plot-example-gives-multiple-errors/128444)

<div class="topic-metadata">

**Author:** [@Tetrakai](https://discourse.julialang.org/u/Tetrakai)\
**Replies:** 10\
**Last updated:** [April 26, 2025, 8:12pm UTC](https://discourse.julialang.org/t/qml-jl-makie-plot-example-gives-multiple-errors/128444 "2025-04-26T20:12:57Z")

</div>

I’m trying to run this (pasting in the REPL): First error occurs on using GLMakie: ▶ Summary However, if I run using GLMakie again it seems to work. Second error occurs on figscene = fig.scene. Fixed: this is due t…

---

## [Mul! modifying input arrays when using FFTW.jl to compute 2D inverse RFFT](https://discourse.julialang.org/t/mul-modifying-input-arrays-when-using-fftw-jl-to-compute-2d-inverse-rfft/127970)

<div class="topic-metadata">

**Author:** [@jibe](https://discourse.julialang.org/u/jibe)\
**Replies:** 2\
**Last updated:** [April 11, 2025, 12:58pm UTC](https://discourse.julialang.org/t/mul-modifying-input-arrays-when-using-fftw-jl-to-compute-2d-inverse-rfft/127970 "2025-04-11T12:58:16Z")

</div>

I have just encountered what I believe is a bug when using FFTW.jl to compute inverse 2D FFT. As reproduced in the MWE below, the use of mul!(A,P,B) modifies the input array B. using FFTW, LinearAlgebra; N = 1; B = rand…

---

## [Failure to detect repeated names with splatted keyword args](https://discourse.julialang.org/t/failure-to-detect-repeated-names-with-splatted-keyword-args/127675)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 1\
**Last updated:** [April 3, 2025, 1:42pm UTC](https://discourse.julialang.org/t/failure-to-detect-repeated-names-with-splatted-keyword-args/127675 "2025-04-03T13:42:25Z")

</div>

Consider the following: julia\> kwargs = Dict(:a =\> 0) Dict{Symbol, Int64} with 1 entry: :a =\> 0 julia\> f(; a=1) = a f (generic function with 1 method) julia\> f(; a=2, kwargs...) 0 julia\> f(; a=2, a=0) ERROR: syntax…

---

## [Incorrect location of an error when the line is terminated by semicolon](https://discourse.julialang.org/t/incorrect-location-of-an-error-when-the-line-is-terminated-by-semicolon/127548)

<div class="topic-metadata">

**Author:** [@merement](https://discourse.julialang.org/u/merement)\
**Replies:** 2\
**Last updated:** [March 31, 2025, 3:28pm UTC](https://discourse.julialang.org/t/incorrect-location-of-an-error-when-the-line-is-terminated-by-semicolon/127548 "2025-03-31T15:28:36Z")

</div>

Possible bug? In the code, a = 1 b ::Dict{String =\> String} = Dict(); Julia reports an error in line 1. More precisely, in the previously executed line. Without the semicolon after Dict(), the error is correctly repor…

---

## [How to isolate & report non-deterministic bug](https://discourse.julialang.org/t/how-to-isolate-report-non-deterministic-bug/127176)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 16\
**Last updated:** [March 28, 2025, 8:12am UTC](https://discourse.julialang.org/t/how-to-isolate-report-non-deterministic-bug/127176 "2025-03-28T08:12:20Z")

</div>

I have a large (15k LOC) calculation that works fine in 1.10.9 but gives an error in 1.11.4 (nothing else changed, not even the manifest). I isolated the function where this happens and I can reproduce it (within my cod…

---

## [Bug: Value of module level global variable set from ENV does not work](https://discourse.julialang.org/t/bug-value-of-module-level-global-variable-set-from-env-does-not-work/126525)

<div class="topic-metadata">

**Author:** [@world-peace](https://discourse.julialang.org/u/world-peace)\
**Replies:** 10\
**Last updated:** [March 4, 2025, 11:47pm UTC](https://discourse.julialang.org/t/bug-value-of-module-level-global-variable-set-from-env-does-not-work/126525 "2025-03-04T23:47:31Z")

</div>

Example code: module example global\_const\_variable::String = get(ENV, "GLOBAL\_CONST", "hello\_world") function print\_global\_const\_variable() global global\_const\_variable println(global\_const\_variable) end end …

---

## [Julia hangs while importing package when monitor is not attached](https://discourse.julialang.org/t/julia-hangs-while-importing-package-when-monitor-is-not-attached/125996)

<div class="topic-metadata">

**Author:** [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Replies:** 3\
**Last updated:** [February 17, 2025, 7:20pm UTC](https://discourse.julialang.org/t/julia-hangs-while-importing-package-when-monitor-is-not-attached/125996 "2025-02-17T19:20:20Z")

</div>

I’m struggling to understand where to even start debugging this one! I have a workstation that I usually only access over the network, so it does not normally have a monitor or keyboard/mouse attached. Some time between …

---

## [Issue parsing Ipopt\_jll string option when there is blank space in path](https://discourse.julialang.org/t/issue-parsing-ipopt-jll-string-option-when-there-is-blank-space-in-path/125943)

<div class="topic-metadata">

**Author:** [@KSepetanc](https://discourse.julialang.org/u/KSepetanc)\
**Replies:** 4\
**Last updated:** [February 17, 2025, 6:48pm UTC](https://discourse.julialang.org/t/issue-parsing-ipopt-jll-string-option-when-there-is-blank-space-in-path/125943 "2025-02-17T18:48:14Z")

</div>

The following code does not work when called from path that has blank space. using JuMP, AmplNLWriter, Ipopt\_jll mod = Model(() -\> AmplNLWriter.Optimizer(Ipopt\_jll.amplexe)) set\_attribute(mod, "output\_file", joinpath(@…

---

## [REPL does not handle multi line inputs bigger than the screen well on windows](https://discourse.julialang.org/t/repl-does-not-handle-multi-line-inputs-bigger-than-the-screen-well-on-windows/125211)

<div class="topic-metadata">

**Author:** [@cshen](https://discourse.julialang.org/u/cshen)\
**Replies:** 2\
**Last updated:** [January 28, 2025, 3:41pm UTC](https://discourse.julialang.org/t/repl-does-not-handle-multi-line-inputs-bigger-than-the-screen-well-on-windows/125211 "2025-01-28T15:41:52Z")

</div>

EDIT: linked wrong issue… Hello, I’ve encountered this issue again: REPL does not handle well multi-line input bigger than the screen · Issue #24049 · JuliaLang/julia, which is marked as resolved but I still encounter …

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