JunoLab / Juno.jl

MIT License
144 stars 23 forks source link

[BUG?] julia session crashes after the execution of a few commands #526

Closed mmikhasenko closed 4 years ago

mmikhasenko commented 4 years ago

I cannot say that the problem appeared after update Atom.jl... Just started crashing at the rush time when I needed to produce some plots for the upcoming meeting :(

julia> ┌ Error: Error in the keymap
│   exception =
│    InterruptException:
│    Stacktrace:
│     [1] iolock_end at .\libuv.jl:49 [inlined]
│     [2] displaysize(::Base.TTY) at .\stream.jl:481
│     [3] displaysize(::REPL.Terminals.TTYTerminal) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\REPL\src\Terminals.jl:153
│     [4] width(::REPL.Terminals.TTYTerminal) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\REPL\src\Terminals.jl:79
│     [5] edit_insert(::REPL.LineEdit.PromptState, ::Any) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\REPL\src\LineEdit.jl:715
│     [6] edit_insert(::REPL.LineEdit.MIState, ::Any) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\REPL\src\LineEdit.jl:215
│     [7] (::REPL.LineEdit.var"#131#183")(::Any, ::Any, ::Any) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\REPL\src\LineEdit.jl:2087
│     [8] #invokelatest#1 at .\essentials.jl:709 [inlined]
│     [9] invokelatest at .\essentials.jl:708 [inlined]
│     [10] (::REPL.LineEdit.var"#27#28"{REPL.LineEdit.var"#131#183",String})(::Any, ::Any) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\REPL\src\LineEdit.jl:1356
│     [11] prompt!(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\REPL\src\LineEdit.jl:2398
│     [12] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\REPL\src\LineEdit.jl:2301
│     [13] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\REPL\src\REPL.jl:1045
│     [14] run_repl(::REPL.AbstractREPL, ::Any) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\REPL\src\REPL.jl:201
│     [15] (::Base.var"#770#772"{Bool,Bool,Bool,Bool})(::Module) at .\client.jl:382
│     [16] #invokelatest#1 at .\essentials.jl:709 [inlined]
│     [17] invokelatest at .\essentials.jl:708 [inlined]
│     [18] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at .\client.jl:366
│     [19] exec_options(::Base.JLOptions) at .\client.jl:304

I have tried:

Any ideas what could be the problem? Coronavirus?

The debug info follows:

# Atom:
Version: 1.45.0
Dev Mode: false
Official Release: true
{
  "http_parser": "2.8.0",
  "node": "10.11.0",
  "v8": "6.9.427.31-electron.0",
  "uv": "1.23.0",
  "zlib": "1.2.11",
  "ares": "1.14.0",
  "modules": "69",
  "nghttp2": "1.33.0",
  "napi": "3",
  "openssl": "1.1.0",
  "electron": "4.2.7",
  "chrome": "69.0.3497.128",
  "icu": "62.2",
  "unicode": "11.0",
  "cldr": "33.1",
  "tz": "2019a"
}
# julia-client:
Version: 0.12.3
Config:
{
  "firstBoot": false,
  "juliaPath": "C:\\Users\\mikha\\AppData\\Local\\Julia-1.3.0\\bin\\julia.exe",
  "uiOptions": {
    "enableMenu": true,
    "enableToolBar": true
  }
}

# ink:
Version: 0.12.3
Config:
undefined

# uber-juno:
Version: 0.3.0
Config:
{
  "disable": true
}

# language-julia:
Version: 0.19.2
Config:
undefined

# language-weave:
Version: 0.6.7
Config:
undefined

# indent-detective:
Version: 0.4.0
Config:
undefined

# latex-completions:
Version: 0.3.6
Config:
undefined

# versioninfo():
Julia Version 1.3.0
Commit 46ce4d7933 (2019-11-26 06:09 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)
Environment:
  JULIA_EDITOR = "C:\Users\mikha\AppData\Local\atom\app-1.45.0\atom.exe"  -a
  JULIA_NUM_THREADS = 2

    Status `C:\Users\mikha\.julia\environments\v1.3\Project.toml`
  [0bf59076] AdvancedHMC v0.2.21
  [c52e3926] Atom v0.12.9
  [6e4b80f9] BenchmarkTools v0.5.0
  [9e28174c] BinDeps v1.0.0
  [12aac903] BinaryBuilder v0.2.3
  [d38c429a] Contour v0.5.2
  [3a865a2d] CuArrays v1.7.3
  [8a292aeb] Cuba v2.0.0
  [a0b5b9ef] Cxx v0.4.0
  [a93c6f00] DataFrames v0.20.2
  [39dd38d3] Dierckx v0.4.1
  [31c24e10] Distributions v0.22.5
  [bbc10e6e] DynamicHMC v2.1.5
  [587475ba] Flux v0.10.3
  [f6369f11] ForwardDiff v0.10.9
  [92c85e6c] GSL v0.6.0
  [d54b0c1a] GaussQuadrature v0.5.0
  [f0d1745a] HalfIntegers v1.0.0
  [7073ff75] IJulia v1.21.1
  [6218d12a] ImageMagick v1.1.3
  [c601a237] Interact v0.10.3
  [a98d9a8b] Interpolations v0.12.8
  [033835bb] JLD2 v0.1.12
  [682c06a0] JSON v0.21.0
  [e5e0dc1b] Juno v0.8.1
  [b964fa9f] LaTeXStrings v1.1.0
  [23fbe1c1] Latexify v0.13.0
  [41a77e93] LhcbUIIvelo v0.1.0 [`C:\Users\mikha\.julia\dev\LhcbUIIvelo`]
  [6fdf6af0] LogDensityProblems v0.10.3
  [2fda8390] LsqFit v0.10.0
  [c7f686f2] MCMCChains v3.0.4
  [6e857e4b] MCMCDiagnostics v0.3.0
  [683d4edd] Minuit2_jll v6.18.4+0
  [76087f3c] NLopt v0.5.1
  [2774e3e8] NLsolve v4.3.0
  [47be7bcc] ORCA v0.3.1
  [429524aa] Optim v0.20.1
  [3b7a836e] PGFPlots v3.2.0
  [d96e819e] Parameters v0.12.0
  [14b8a8f1] PkgTemplates v0.6.4
  [ccf2f8ad] PlotThemes v1.0.1
  [91a5bcdd] Plots v0.29.7
  [438e738f] PyCall v1.91.4
  [d330b81b] PyPlot v2.8.2
  [a3f1d539] Pythia v0.0.0 #master (https://github.com/Keno/Pythia.jl)
  [1fd47b50] QuadGK v2.3.1
  [1a8c2f83] Query v0.12.2
  [3cdcf5f2] RecipesBase v0.8.0
  [f2b01f46] Roots v1.0.0
  [1bc83da4] SafeTestsets v0.0.1
  [276daf66] SpecialFunctions v0.10.0
  [90137ffa] StaticArrays v0.12.1
  [f3b207a7] StatsPlots v0.14.1
  [24249f21] SymPy v1.0.7
  [bd369af6] Tables v1.0.3
  [e6563dab] ThreeBodyDecay v0.2.0 [`C:\Users\mikha\.julia\dev\ThreeBodyDecay`]
  [84d833dd] TransformVariables v0.3.9
  [fce5fe82] Turing v0.7.1
  [b8865327] UnicodePlots v1.2.0
  [69ce31c6] UpROOT v0.2.2 [`dev\UpROOT`]
  [44d3d7a6] Weave v0.9.3
  [0f1e0344] WebIO v0.8.13
  [104b5d7c] WebSockets v1.5.2
  [cc8bc4a8] Widgets v0.6.2
  [9f57e263] WignerSymbols v1.1.0
  [f967d742] X3872 v0.1.0 [`C:\Users\mikha\.julia\dev\X3872`]
  [e88e6eb3] Zygote v0.4.9
  [9a3f8284] Random
mmikhasenko commented 4 years ago

I have a feeling that it is some allergic reaction to Plots.jl, because it is always included together with a few other modules

using LhcbUIIvelo # my module
#
using LaTeXStrings
using DelimitedFiles
#
using DataFrames
using Query
#
using Statistics
using Parameters
using Plots
using StatsPlots

Also: the error does not happen if I run the same scripts in the terminal

mmikhasenko commented 4 years ago

Reproduced in small example.

# example 1
using Plots, LaTeXStrings
histogram(rand(10), lab=L"\sigma") # works
histogram(rand(10), lab=L"\sigma\sigma") # works
# now, with incorrect latex expressoion 
histogram(rand(10), lab=L"\sss") # InterruptException, julia crash
#
# example 2
using Plots, LaTeXStrings
# now, with incorrect latex expressoion 
histogram(rand(10), lab=L"\sss")  # works, without label, and with the warning, latex: failed to create a dvi file
# again, different incorrect latex expressoion 
histogram(rand(10), lab=L"\ssss") # ERROR: InterruptException: julia crashes

It fails with atom interactive session when evaluated line by line. Julia crashed on the second try of producing a plot with incorrect latex expression.