Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ctrl+C broken with julia -e "Pluto.run()" instead of the REPL #836

Closed
yurivish opened this issue Jan 10, 2021 · 0 comments
Closed

Ctrl+C broken with julia -e "Pluto.run()" instead of the REPL #836

yurivish opened this issue Jan 10, 2021 · 0 comments
Labels
one day Closed because we won't work on it soon, will be opened again later.

Comments

@yurivish
Copy link

  1. Run Pluto: julia --eval "using Pluto; Pluto.run()"
  2. Click "Create new notebook"
  3. Enter a = Int8(1):Int8(100) into the default empty cell and evaluate it
  4. Ctrl+C in the Pluto terminal

Here's what I see:

% julia --eval "using Pluto; Pluto.run()"

Opening http://localhost:1234/?secret=NNi0aLHM in your default browser... ~ have fun!

Press Ctrl+C in this terminal to stop Pluto

^Cfatal: error thrown and no exception handler available.
InterruptException()
jl_mutex_unlock at /Users/julia/buildbot/worker/package_macos64/build/src/./locks.h:144 [inlined]
jl_task_get_next at /Users/julia/buildbot/worker/package_macos64/build/src/partr.c:476
poptask at ./task.jl:704
wait at ./task.jl:712 [inlined]
task_done_hook at ./task.jl:442
jl_apply at /Users/julia/buildbot/worker/package_macos64/build/src/./julia.h:1690 [inlined]
jl_finish_task at /Users/julia/buildbot/worker/package_macos64/build/src/task.c:196
start_task at /Users/julia/buildbot/worker/package_macos64/build/src/task.c:715
┌ Warning: Forcibly interrupting busy workers
│   exception = schedule: Task not runnable
└ @ Distributed /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Distributed/src/cluster.jl:1234
┌ Error: Exception while generating log record in module Distributed at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Distributed/src/cluster.jl:1234
│   exception =
│    schedule: Task not runnable
│    Stacktrace:
│     [1] error(::String) at ./error.jl:33
│     [2] schedule(::Task, ::Any; error::Bool) at ./task.jl:586
│     [3] schedule at ./task.jl:586 [inlined]
│     [4] uv_writecb_task(::Ptr{Nothing}, ::Int32) at ./stream.jl:1051
│     [5] poptask(::Base.InvasiveLinkedListSynchronized{Task}) at ./task.jl:704
│     [6] wait at ./task.jl:712 [inlined]
│     [7] uv_write(::Base.TTY, ::Ptr{UInt8}, ::UInt64) at ./stream.jl:933
│     [8] unsafe_write(::Base.TTY, ::Ptr{UInt8}, ::UInt64) at ./stream.jl:1005
│     [9] unsafe_write at ./io.jl:622 [inlined]
│     [10] write(::Base.TTY, ::Array{UInt8,1}) at ./io.jl:645
│     [11] handle_message(::Logging.ConsoleLogger, ::Base.CoreLogging.LogLevel, ::String, ::Module, ::Symbol, ::Symbol, ::String, ::Int64; maxlog::Nothing, kwargs::Base.Iterators.Pairs{Symbol,ErrorException,Tuple{Symbol},NamedTuple{(:exception,),Tuple{ErrorException}}}) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Logging/src/ConsoleLogger.jl:161
│     [12] macro expansion at ./logging.jl:332 [inlined]
│     [13] terminate_all_workers() at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Distributed/src/cluster.jl:1234
│     [14] _atexit() at ./initdefs.jl:316
└ @ Distributed /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Distributed/src/cluster.jl:1234
Exception handling log message: fatal: error thrown and no exception handler available.
ErrorException("schedule: Task not runnable")
error at ./error.jl:33
#schedule#500 at ./task.jl:586
schedule##kw at ./task.jl:586 [inlined]
notify at ./condition.jl:130
#notify#483 at ./condition.jl:124 [inlined]
notify at ./condition.jl:124 [inlined]
notify at ./condition.jl:124 [inlined]
task_done_hook at ./task.jl:425
jl_apply at /Users/julia/buildbot/worker/package_macos64/build/src/./julia.h:1690 [inlined]
jl_finish_task at /Users/julia/buildbot/worker/package_macos64/build/src/task.c:196
start_task at /Users/julia/buildbot/worker/package_macos64/build/src/task.c:715

Version info (Pluto version Pluto v0.12.18):

julia> versioninfo()
Julia Version 1.5.3
Commit 788b2c77c1 (2020-11-09 13:37 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.7.0)
  CPU: Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, skylake)
@fonsp fonsp changed the title Crash upon Ctrl+C of an idle Pluto process Ctrl+C broken with julia -e "Pluto.run()" instead of the REPL Jan 11, 2021
@fonsp fonsp added the one day Closed because we won't work on it soon, will be opened again later. label Jan 25, 2021
@fonsp fonsp closed this as completed Jan 25, 2021
pankgeorg pushed a commit that referenced this issue Jan 28, 2021
[Diff since v0.12.18](v0.12.18...v0.12.19)

**Closed issues:**
- GPU usage and console messages (#685)
- Feature Proposal: Exported HTML can be passed to a static site generator (#794)
- wait and resume execution on button press (#803)
- Latex code not appropriately displayed (#817)
- Python doesn't work in Pluto (#818)
- add pluto - pluto not found - Julia 1.5.3 macOS (#819)
- Cell output not shown correctly if in-line comment ends with semicolon (#820)
- _llvm (#821)
- Can't move cells (#822)
- Conditions on list comprehensions and execution order (#824)
- Electron app (#825)
- Errors when pressing Ctrl+C to stop Pluto (#827)
- Failed to load notebook error (#829)
- Popup docs don't work for some symbols (#832)
- Running a notebook deleted contents of `.julia/registries` (#834)
- Ctrl+C broken with `julia -e "Pluto.run()"` instead of the REPL (#836)
- Edit or remove default header and footer in exported static PDF (#837)
- Parameters.jl dynamically created macros confuse Pluto (#838)
- Feature request: Open URL from terminal (#840)
- Notebook gets stuck in forever loading state after restarting my PC while running it (#849)
- Syntax highlighting of @. (#854)
- File not found when file newly created while session is running (#855)
- Weird output from a mix of MathJax, Markdown and PlutoUI (#856)
- Misaligned plots when plotting with UnicodePlots.jl using BrailleCanvas (#870)

**Merged pull requests:**
- Pluto ux process file drop (#707) (@pankgeorg)
- Dralbase state managment (#710) (@dralletje)
- PLJ-785 CodeMirror Eject to TextArea - Reload from TextArea in Offline HTML export (#805) (@pankgeorg)
-  Dralbase state managment: Fix front-end tests (#809) (@pankgeorg)
- Update README.md (#814) (@fonsp)
- Regard `:=` in macros as einsum notation (take 2) (#816) (@mcabbott)
- 🧸 Open your own files as samples (#828) (@fonsp)
- Handle filters in generators, closes #824 (#839) (@Pangoraw)
- Update `== nothing` to `=== nothing` in Parse.jl (#841) (@heetbeet)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
one day Closed because we won't work on it soon, will be opened again later.
Projects
None yet
Development

No branches or pull requests

2 participants