# \#potential-bug

**URL:** https://discourse.julialang.org/tag/potential-bug/557.md

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

---

## [Eigenvalues of large, sparse matrices](https://discourse.julialang.org/t/eigenvalues-of-large-sparse-matrices/135208)

<div class="topic-metadata">

**Author:** [@pjk](https://discourse.julialang.org/u/pjk)\
**Replies:** 11\
**Last updated:** [January 23, 2026, 7:24pm UTC](https://discourse.julialang.org/t/eigenvalues-of-large-sparse-matrices/135208 "2026-01-23T19:24:55Z")

</div>

Hi all, I am working on a problem which involves the calculation of the eigenvalues (specifically the spectral radius) of matrices with a particular structure. These are specifically sparse, asymmetric matrices with bin…

---

## [Strange performance issue with using parsed commandline parameters in calculation](https://discourse.julialang.org/t/strange-performance-issue-with-using-parsed-commandline-parameters-in-calculation/135010)

<div class="topic-metadata">

**Author:** [@Michael\_Wang](https://discourse.julialang.org/u/Michael_Wang)\
**Replies:** 6\
**Last updated:** [January 12, 2026, 10:29pm UTC](https://discourse.julialang.org/t/strange-performance-issue-with-using-parsed-commandline-parameters-in-calculation/135010 "2026-01-12T22:29:10Z")

</div>

Hi. I am running into a strange performance issue when using parameters obtained from ArgParse.jl (also noted this in Performance issue when using parsed\_args in computation. · Issue #139 · carlobaldassi/ArgParse.jl · G…

---

## [Is this a bug in StatProfilerHTML.jl or Profile.jl?](https://discourse.julialang.org/t/is-this-a-bug-in-statprofilerhtml-jl-or-profile-jl/132247)

<div class="topic-metadata">

**Author:** [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Replies:** 0\
**Last updated:** [September 10, 2025, 8:44am UTC](https://discourse.julialang.org/t/is-this-a-bug-in-statprofilerhtml-jl-or-profile-jl/132247 "2025-09-10T08:44:34Z")

</div>

Recently, when I try to use StatProfilerHTML (julia-1.11.6, StatProfilerHTML-1.0.0) I get errors like julia\> statprofilehtml() ERROR: KeyError: key 0x00007e8e4a7fc010 not found Stacktrace: \[1\] getindex(h::Dict{UInt64,…

---

## [Unreachable reached, v1.11.5: file github issue, or discuss here first?](https://discourse.julialang.org/t/unreachable-reached-v1-11-5-file-github-issue-or-discuss-here-first/130668)

<div class="topic-metadata">

**Author:** [@DanielSussman](https://discourse.julialang.org/u/DanielSussman)\
**Replies:** 6\
**Last updated:** [July 14, 2025, 11:30pm UTC](https://discourse.julialang.org/t/unreachable-reached-v1-11-5-file-github-issue-or-discuss-here-first/130668 "2025-07-14T23:30:17Z")

</div>

Hi all, Despite (or, in this case, almost certainly because of) being fairly new to using Julia I seemed to have stumbled upon an “unreachable reached” crash. On the one hand, I understand this is cause for celebration,…

---

## [😤 Multi-line expressions aren't fully computed](https://discourse.julialang.org/t/multi-line-expressions-arent-fully-computed/130599)

<div class="topic-metadata">

**Author:** [@bpsomu](https://discourse.julialang.org/u/bpsomu)\
**Replies:** 22\
**Last updated:** [July 11, 2025, 7:46am UTC](https://discourse.julialang.org/t/multi-line-expressions-arent-fully-computed/130599 "2025-07-11T07:46:14Z")

</div>

I had a KernelAbstractions.jl based Kernel function with a multi-line expression as below: using KernelAbstractions @kernel function karniadakis\_update!( n\_eₜ₊₁, n\_eₜ, n\_eₜ₋₁, n\_eₜ₋₂, e\_rhsₜ, e\_rhsₜ₋₁, e\_rhsₜ₋₂, …

---

## [Documenting nested functions](https://discourse.julialang.org/t/documenting-nested-functions/129708)

<div class="topic-metadata">

**Author:** [@maxwell3025](https://discourse.julialang.org/u/maxwell3025)\
**Replies:** 2\
**Last updated:** [June 9, 2025, 6:15am UTC](https://discourse.julialang.org/t/documenting-nested-functions/129708 "2025-06-09T06:15:53Z")

</div>

I’m currently working on a project and I came across an issue with using nested functions. In particular, I have a nested function that I want to document, and I am getting a warning about “replacing docs”. This seems …

---

## [CUDA suddenly crashes with check-bounds=no, used to work fine](https://discourse.julialang.org/t/cuda-suddenly-crashes-with-check-bounds-no-used-to-work-fine/129245)

<div class="topic-metadata">

**Author:** [@0samuraiE](https://discourse.julialang.org/u/0samuraiE)\
**Replies:** 1\
**Last updated:** [May 30, 2025, 9:43am UTC](https://discourse.julialang.org/t/cuda-suddenly-crashes-with-check-bounds-no-used-to-work-fine/129245 "2025-05-30T09:43:52Z")

</div>

Hi all, I have some code that used to work perfectly fine with check-bounds=no, but recently it started crashing with a bounds error. If I run it with check-bounds=yes, it works without any issues. I noticed that the s…

---

## [GC error (probable corruption) in 1.11](https://discourse.julialang.org/t/gc-error-probable-corruption-in-1-11/128219)

<div class="topic-metadata">

**Author:** [@fastwave](https://discourse.julialang.org/u/fastwave)\
**Replies:** 0\
**Last updated:** [April 19, 2025, 1:01pm UTC](https://discourse.julialang.org/t/gc-error-probable-corruption-in-1-11/128219 "2025-04-19T13:01:27Z")

</div>

I could not find much about GC corruptions in recent posts. If someone can shed a light on it that would be helpful. I get these crashes randomly sometimes after just a few minutes, other times after couple of days of co…

---

## [How to fix "! Dimension too large." when using pgfplotsx?](https://discourse.julialang.org/t/how-to-fix-dimension-too-large-when-using-pgfplotsx/126730)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 1\
**Last updated:** [March 9, 2025, 1:08pm UTC](https://discourse.julialang.org/t/how-to-fix-dimension-too-large-when-using-pgfplotsx/126730 "2025-03-09T13:08:19Z")

</div>

When trying to plot the following data VectorOfArray{Float64,2}: 2-element Vector{Vector{Float64}}: \[0.00969160836699929, 516.6666666666663\] \[0.00974104323961814, 900.0\] VectorOfArray{Float64,2}: 2-element Vector{Vect…

---

## [Bug in sleep() function - main thread work affecting sleep duration on running tasks](https://discourse.julialang.org/t/bug-in-sleep-function-main-thread-work-affecting-sleep-duration-on-running-tasks/101911)

<div class="topic-metadata">

**Author:** [@algunion](https://discourse.julialang.org/u/algunion)\
**Replies:** 47\
**Last updated:** [January 23, 2025, 8:36pm UTC](https://discourse.julialang.org/t/bug-in-sleep-function-main-thread-work-affecting-sleep-duration-on-running-tasks/101911 "2025-01-23T20:36:44Z")

</div>

What triggered the present experiment was my failure to find a reasonable solution for the issue raised by this topic. It turned out that the issue was unrelated to the HTTP.jl package and went deeper. Now, the experim…

---

## [Mergewith() does not preserve alternate AbstractDict types. Bug?](https://discourse.julialang.org/t/mergewith-does-not-preserve-alternate-abstractdict-types-bug/122576)

<div class="topic-metadata">

**Author:** [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Replies:** 2\
**Last updated:** [November 13, 2024, 2:28pm UTC](https://discourse.julialang.org/t/mergewith-does-not-preserve-alternate-abstractdict-types-bug/122576 "2024-11-13T14:28:52Z")

</div>

If I have two dictionaries of some alternative type like OrderedDict julia\> using OrderedCollections julia\> a = OrderedDict("a"=\>1, "b"=\>"foo") OrderedDict{String, Any} with 2 entries: "a" =\> 1 "b" =\> "foo" julia\> …

---

## [Is this \`Test.detect\_unbound\_args\` result valid or a bug?](https://discourse.julialang.org/t/is-this-test-detect-unbound-args-result-valid-or-a-bug/96987)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 3\
**Last updated:** [September 8, 2024, 4:23pm UTC](https://discourse.julialang.org/t/is-this-test-detect-unbound-args-result-valid-or-a-bug/96987 "2024-09-08T16:23:31Z")

</div>

A module: module M f(::Tuple{}) = nothing f(::NTuple{n, F}) where {n, F} = F end The second method gets flagged as having an unbound argument, even though the first method protects it from ever being called in such…

---

## [Isposdef and eigvals do not agree](https://discourse.julialang.org/t/isposdef-and-eigvals-do-not-agree/118191)

<div class="topic-metadata">

**Author:** [@fmor](https://discourse.julialang.org/u/fmor)\
**Replies:** 9\
**Last updated:** [August 16, 2024, 2:27pm UTC](https://discourse.julialang.org/t/isposdef-and-eigvals-do-not-agree/118191 "2024-08-16T14:27:33Z")

</div>

Hello, I was dealing with some matrices (for a statistical model), when I came across this case which raised an error during the fitting. I was trying to compute beta\_iter\[t\] = rand(MvNormal(b\_star, inv(A\_star))) but a…

---

## [Weird results while trying to measure allocation :/](https://discourse.julialang.org/t/weird-results-while-trying-to-measure-allocation/117745)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 1\
**Last updated:** [August 2, 2024, 12:19am UTC](https://discourse.julialang.org/t/weird-results-while-trying-to-measure-allocation/117745 "2024-08-02T00:19:16Z")

</div>

Consider this Julia program: f() = Vector{Int}(undef, 128\*1024\*1024) (@timed f()).bytes (r = @timed f()); r.bytes Why do recent versions of Julia (v1.8 and up) evaluate the second line as 0? It really seems like the se…

---

## [Calculating a large sum of positive and negative integers gives wrong answer](https://discourse.julialang.org/t/calculating-a-large-sum-of-positive-and-negative-integers-gives-wrong-answer/111334)

<div class="topic-metadata">

**Author:** [@SherlockSage](https://discourse.julialang.org/u/SherlockSage)\
**Replies:** 7\
**Last updated:** [March 8, 2024, 9:13am UTC](https://discourse.julialang.org/t/calculating-a-large-sum-of-positive-and-negative-integers-gives-wrong-answer/111334 "2024-03-08T09:13:29Z")

</div>

Hello! I am trying to solve a Project Euler problem (#193) to get the squarefree integers less than the large number 2^50. I normally wouldn’t just post the code here directly because of spoilers for the problem except I…

---

## [Problem with simulating SBML Model](https://discourse.julialang.org/t/problem-with-simulating-sbml-model/110942)

<div class="topic-metadata">

**Author:** [@max-de-rooij](https://discourse.julialang.org/u/max-de-rooij)\
**Replies:** 4\
**Last updated:** [March 7, 2024, 12:10pm UTC](https://discourse.julialang.org/t/problem-with-simulating-sbml-model/110942 "2024-03-07T12:10:38Z")

</div>

I am trying to solve an ODE problem from a downloaded SBML file, but I seem to get an error. I used to be able to run this file (although I do not remember the specific versions of each package I used before). My code i…

---

## [Possible compiler bug with shadowed global variable](https://discourse.julialang.org/t/possible-compiler-bug-with-shadowed-global-variable/110362)

<div class="topic-metadata">

**Author:** [@binarycat](https://discourse.julialang.org/u/binarycat)\
**Replies:** 2\
**Last updated:** [February 18, 2024, 4:36am UTC](https://discourse.julialang.org/t/possible-compiler-bug-with-shadowed-global-variable/110362 "2024-02-18T04:36:42Z")

</div>

global z = 12 begin print(z) local z = 10 end this gives an undefined variable error. this type of backwards-reaching compile error is extremly unusual, and there could be hundreds of lines of code between the the …

---

## [JuMP: Behaviour of value for infeasible models](https://discourse.julialang.org/t/jump-behaviour-of-value-for-infeasible-models/109662)

<div class="topic-metadata">

**Author:** [@samysweb](https://discourse.julialang.org/u/samysweb)\
**Replies:** 10\
**Last updated:** [February 13, 2024, 2:18am UTC](https://discourse.julialang.org/t/jump-behaviour-of-value-for-infeasible-models/109662 "2024-02-13T02:18:11Z")

</div>

Hello everyone, I stumbled on a potential bug in JuMP and its dependencies, however, I wanted to ask this question here first as I am unsure whether this intended behavior and (if not) on which library level this should…

---

## [\`SymPy.Sym\`s as keys in Dicts](https://discourse.julialang.org/t/sympy-sym-s-as-keys-in-dicts/103995)

<div class="topic-metadata">

**Author:** [@jlbosse](https://discourse.julialang.org/u/jlbosse)\
**Replies:** 5\
**Last updated:** [December 27, 2023, 7:04pm UTC](https://discourse.julialang.org/t/sympy-sym-s-as-keys-in-dicts/103995 "2023-12-27T19:04:45Z")

</div>

It seems that Tuples containting SymPy.Syms don’t work as keys in julia’s standard dicts as expected. See the following MWE and its very counterintuitive behaviour. julia\> using SymPy julia\> t = symbols("t") t julia\> …

---

## [Failure to match a set element](https://discourse.julialang.org/t/failure-to-match-a-set-element/107478)

<div class="topic-metadata">

**Author:** [@canthonissen](https://discourse.julialang.org/u/canthonissen)\
**Replies:** 4\
**Last updated:** [December 12, 2023, 1:59pm UTC](https://discourse.julialang.org/t/failure-to-match-a-set-element/107478 "2023-12-12T13:59:49Z")

</div>

Hi, I found some unexpected behavour when checking set membership. Specifically, I get a key error when I try to pop! a known member of a set. The problem does not occur in a pattern that I could predict, but I prepar…

---

## [Using Documentation panel causes error](https://discourse.julialang.org/t/using-documentation-panel-causes-error/104163)

<div class="topic-metadata">

**Author:** [@benninkrs](https://discourse.julialang.org/u/benninkrs)\
**Replies:** 0\
**Last updated:** [September 22, 2023, 6:47pm UTC](https://discourse.julialang.org/t/using-documentation-panel-causes-error/104163 "2023-09-22T18:47:50Z")

</div>

Starting a day or two ago, whenever I try to use the Documentation pane in vscode it does nothing except pop up an error notice that says “The Julia language extension crashed …” I’m running Windows 10, Julia 1.9.2, vsc…

---

## [NonlinearSolve Falsi algorithm: Unexpected ReturnCode](https://discourse.julialang.org/t/nonlinearsolve-falsi-algorithm-unexpected-returncode/102296)

<div class="topic-metadata">

**Author:** [@laikq](https://discourse.julialang.org/u/laikq)\
**Replies:** 2\
**Last updated:** [July 31, 2023, 1:35pm UTC](https://discourse.julialang.org/t/nonlinearsolve-falsi-algorithm-unexpected-returncode/102296 "2023-07-31T13:35:19Z")

</div>

I’m observing unexpected behavior in SimpleNonlinearSolve/NonlinearSolve’s algorithm Falsi (an algorithm for finding roots of nonlinear functions). I expect Falsi to return a successful return code if it converged, and a…

---

## [Display a variable makes it to be constant ? Rasters.jl bug?](https://discourse.julialang.org/t/display-a-variable-makes-it-to-be-constant-rasters-jl-bug/101157)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 5\
**Last updated:** [July 4, 2023, 10:22am UTC](https://discourse.julialang.org/t/display-a-variable-makes-it-to-be-constant-rasters-jl-bug/101157 "2023-07-04T10:22:18Z")

</div>

I got something really odd working with Raster 0.8, Julia 1.9: This is ok: julia\> using Rasters julia\> X = 2 2 julia\> X 2 julia\> typeof(X) Int64 but (new session): julia\> using Rasters julia\> X X julia\> X = 2 ERROR: …

---

## [Bug in Plots.jl - Unwanted line in the title with multi-column legend](https://discourse.julialang.org/t/bug-in-plots-jl-unwanted-line-in-the-title-with-multi-column-legend/100924)

<div class="topic-metadata">

**Author:** [@Sh\_166](https://discourse.julialang.org/u/Sh_166)\
**Replies:** 3\
**Last updated:** [June 28, 2023, 12:53pm UTC](https://discourse.julialang.org/t/bug-in-plots-jl-unwanted-line-in-the-title-with-multi-column-legend/100924 "2023-06-28T12:53:31Z")

</div>

MWE: Pkg.add(“PlotThemes”) Using Plots, DifferentialEquations, ModelingToolkit, LaTeXStrings, Symbolics, Measures theme(:bright) plot(sol, label = L"some \\ \\LaTeX“, xlabel = L”t“, ylabel = L”\\alpha“, margin=8mm, fra…

---

## [Declaration of CUDA variables in module results in undefined reference](https://discourse.julialang.org/t/declaration-of-cuda-variables-in-module-results-in-undefined-reference/96765)

<div class="topic-metadata">

**Author:** [@dcasbol](https://discourse.julialang.org/u/dcasbol)\
**Replies:** 3\
**Last updated:** [March 30, 2023, 6:53pm UTC](https://discourse.julialang.org/t/declaration-of-cuda-variables-in-module-results-in-undefined-reference/96765 "2023-03-30T18:53:41Z")

</div>

Hi everyone, I am working on a project that makes intensive use of GPU computation and we wanted to have some module constants that were already placed on the GPU memory, but apparently the memory is freed after the mod…

---

## [\`\`\`@turbo\`\`\` producing different (and wrong) results compared to \`\`\`@inbounds @simd\`\`\`](https://discourse.julialang.org/t/turbo-producing-different-and-wrong-results-compared-to-inbounds-simd/96851)

<div class="topic-metadata">

**Author:** [@bremez](https://discourse.julialang.org/u/bremez)\
**Replies:** 3\
**Last updated:** [March 30, 2023, 5:34pm UTC](https://discourse.julialang.org/t/turbo-producing-different-and-wrong-results-compared-to-inbounds-simd/96851 "2023-03-30T17:34:30Z")

</div>

I have a use case where an integer array contains only values between 1 and some maxValue, and I would like the histogram of the array values. I found that counts(array, maxValue) was too slow, and as best as I could und…

---

## [Optimization level setting (-O / --optimize)](https://discourse.julialang.org/t/optimization-level-setting-o-optimize/95809)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 1\
**Last updated:** [March 9, 2023, 4:38pm UTC](https://discourse.julialang.org/t/optimization-level-setting-o-optimize/95809 "2023-03-09T16:38:38Z")

</div>

Couple of questions regarding this. First, is there a good way to determine inside the Julia session what the current setting of the optimization level is? Second, is there some reason this behavior is correct? $ juli…

---

## [Finalizer bug? Or am I dumb?](https://discourse.julialang.org/t/finalizer-bug-or-am-i-dumb/95113)

<div class="topic-metadata">

**Author:** [@cadaverous](https://discourse.julialang.org/u/cadaverous)\
**Replies:** 3\
**Last updated:** [February 24, 2023, 5:22pm UTC](https://discourse.julialang.org/t/finalizer-bug-or-am-i-dumb/95113 "2023-02-24T17:22:21Z")

</div>

I have a julia object that contains some data fields that are initialized inside a ccall, so I am trying to write a finalizer to allow C to free the allocated memory, but I’m getting some weird behavior that I think migh…

---

## [Type-Instability when calling \`fieldtypes\`](https://discourse.julialang.org/t/type-instability-when-calling-fieldtypes/91881)

<div class="topic-metadata">

**Author:** [@uniment](https://discourse.julialang.org/u/uniment)\
**Replies:** 0\
**Last updated:** [December 20, 2022, 1:05am UTC](https://discourse.julialang.org/t/type-instability-when-calling-fieldtypes/91881 "2022-12-20T01:05:21Z")

</div>

Is there a way to make fieldtypes not be type-unstable here? julia\> struct Foo{A,B} a::A; b::B end julia\> ft1(o::T) where T = Tuple(T.types) ft1 (generic function with 1 method) julia\> ft2(o::T) where T = fieldtypes(T…

---

## [Parser bug regarding parametric function expressions?](https://discourse.julialang.org/t/parser-bug-regarding-parametric-function-expressions/81848)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 2\
**Last updated:** [December 9, 2022, 6:07pm UTC](https://discourse.julialang.org/t/parser-bug-regarding-parametric-function-expressions/81848 "2022-12-09T18:07:57Z")

</div>

Some weird behavior here. Suppose we have this: SomeType = Tuple{Int8, Int16} f(::Type{Tuple{A, B}}) where {A \<: Any, B \<: Any} = B If we now do f(SomeType), we get Int16 in return as expected. The following however,…

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