JuliaLang / PackageCompiler.jl

Compile your Julia Package
https://julialang.github.io/PackageCompiler.jl/dev/
MIT License
1.43k stars 191 forks source link

Pluto is crashing when running as precompiled package in sysimage #765

Open jcbritobr opened 1 year ago

jcbritobr commented 1 year ago

Hello, good afternoon.

Pluto.jl is crashing running as precompiled package in sysimage. Dont know if the bug is from Pluto or PackageCompile, but as it crashes in a sysimage I will post the stack below.

julia - 1.8.5 PackageCompiler - v2.1.4 Pluto - v0.19.19

Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x7fff4d97c611 -- ijl_subtype_env at C:/workdir/src\subtype.c:1854
in expression starting at none:1
ijl_subtype_env at C:/workdir/src\subtype.c:1854
#send_notebook_changes!#386 at C:\Users\jcbri\.julia\packages\Pluto\o9SLq\src\webserver\Dynamic.jl:186
send_notebook_changes! at C:\Users\jcbri\.julia\packages\Pluto\o9SLq\src\webserver\Dynamic.jl:180 [inlined]
#7 at C:\Users\jcbri\.julia\packages\Pluto\o9SLq\src\webserver\SessionActions.jl:180 [inlined]
#35 at C:\Users\jcbri\.julia\packages\Pluto\o9SLq\src\evaluation\Throttled.jl:23 [inlined]
lock at .\lock.jl:185
flush at C:\Users\jcbri\.julia\packages\Pluto\o9SLq\src\evaluation\Throttled.jl:21 [inlined]
throttled_f at C:\Users\jcbri\.julia\packages\Pluto\o9SLq\src\evaluation\Throttled.jl:41
unknown function (ip: 00000178fa76e39a)
report_business_finished! at C:\Users\jcbri\.julia\packages\Pluto\o9SLq\src\webserver\Status.jl:53
|> at .\operators.jl:911 [inlined]
report_business_finished! at C:\Users\jcbri\.julia\packages\Pluto\o9SLq\src\webserver\Status.jl:68 [inlined]
report_business! at C:\Users\jcbri\.julia\packages\Pluto\o9SLq\src\webserver\Status.jl:77
#192 at C:\Users\jcbri\.julia\packages\Pluto\o9SLq\src\packages\Packages.jl:160
withtoken at C:\Users\jcbri\.julia\packages\Pluto\o9SLq\src\evaluation\Tokens.jl:19
unknown function (ip: 00000178fa776522)
#sync_nbpkg_core#189 at C:\Users\jcbri\.julia\packages\Pluto\o9SLq\src\packages\Packages.jl:132
sync_nbpkg_core##kw at C:\Users\jcbri\.julia\packages\Pluto\o9SLq\src\packages\Packages.jl:52
unknown function (ip: 00000178fa771138)
#223 at C:\Users\jcbri\.julia\packages\Pluto\o9SLq\src\packages\Packages.jl:311
#222 at C:\Users\jcbri\.julia\packages\Pluto\o9SLq\src\packages\Packages.jl:302 [inlined]
#sync_nbpkg#221 at C:\Users\jcbri\.julia\packages\Pluto\o9SLq\src\packages\Packages.jl:302
sync_nbpkg##kw at C:\Users\jcbri\.julia\packages\Pluto\o9SLq\src\packages\Packages.jl:297 [inlined]
#288 at C:\Users\jcbri\.julia\packages\Pluto\o9SLq\src\evaluation\Run.jl:438
unknown function (ip: 00000178fa76dde3)
unknown function (ip: 00000178fa7693cd)
unknown function (ip: 00000178fa769398)
withtoken at C:\Users\jcbri\.julia\packages\Pluto\o9SLq\src\evaluation\Tokens.jl:19
#287 at C:\Users\jcbri\.julia\packages\Pluto\o9SLq\src\evaluation\Run.jl:424 [inlined]
macro expansion at C:\Users\jcbri\.julia\packages\Pluto\o9SLq\src\evaluation\Tokens.jl:58 [inlined]
#279 at .\task.jl:484
unknown function (ip: 00000178fa769623)
start_task at C:/workdir/src\task.c:931
Allocations: 45953169 (Pool: 45933695; Big: 19474); GC: 54

Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x7fff4d97c611 -- ijl_subtype_env at C:/workdir/src\subtype.c:1854
in expression starting at REPL[3]:1
ijl_subtype_env at C:/workdir/src\subtype.c:1854
#send_notebook_changes!#386 at C:\Users\jcbri\.julia\packages\Pluto\o9SLq\src\webserver\Dynamic.jl:186
send_notebook_changes! at C:\Users\jcbri\.julia\packages\Pluto\o9SLq\src\webserver\Dynamic.jl:180 [inlined]
response_update_notebook at C:\Users\jcbri\.julia\packages\Pluto\o9SLq\src\webserver\Dynamic.jl:283
jfptr_response_update_notebook_112410 at C:\Users\jcbri\Documents\Workspace\julia\explore\sys.explore.dll (unknown line)
process_ws_message at C:\Users\jcbri\.julia\packages\Pluto\o9SLq\src\webserver\WebServer.jl:399
#441 at C:\Users\jcbri\.julia\packages\Pluto\o9SLq\src\webserver\WebServer.jl:190
#upgrade#13 at C:\Users\jcbri\.julia\packages\HTTP\RxlHW\src\WebSockets.jl:439
upgrade at C:\Users\jcbri\.julia\packages\HTTP\RxlHW\src\WebSockets.jl:419 [inlined]
#440 at C:\Users\jcbri\.julia\packages\Pluto\o9SLq\src\webserver\WebServer.jl:171
unknown function (ip: 00000178fa70e376)
jl_apply at C:/workdir/src\julia.h:1843 [inlined]
jl_f__call_latest at C:/workdir/src\builtins.c:774
#invokelatest#2 at .\essentials.jl:729 [inlined]
invokelatest at .\essentials.jl:726 [inlined]
handle_connection at C:\Users\jcbri\.julia\packages\HTTP\RxlHW\src\Servers.jl:447
#16 at .\task.jl:484
unknown function (ip: 00000178fa6f3483)
jl_apply at C:/workdir/src\julia.h:1843 [inlined]
start_task at C:/workdir/src\task.c:931
Allocations: 46785497 (Pool: 46765694; Big: 19803); GC: 55
IanButterworth commented 1 year ago

Can you provide more information on the julia and PackageCompiler versions. Thanks

jcbritobr commented 1 year ago

Can you provide more information on the julia and PackageCompiler versions. Thanks

Hello. I update the description. PackageCompiler - v2.1.4

IanButterworth commented 1 year ago

Did it work previously?

Can you add the detail of the sysimage you're building

jcbritobr commented 1 year ago

Did it work previously?

Can you add the detail of the sysimage you're building

Hello. Was the first time I tryed to build a sysimage. I only had added PackageCompiler and used the function:

create_package([:Pluto, :Plots], sysimage_path="sysexplore.dll")

This is running on windows 10 x64 with julia 1.8.5

All the compilation process runned without issues. The problem only happens when I load the image, add Pluto and run Pluto.run(). The interface loads, and when a tried to load the notebook it crashes,

jcbritobr commented 1 year ago

Another info I got here. This issue only happens when loading a notebook. If I create one it works as expected.

DilumAluthge commented 1 year ago

Can you share the notebook that you're trying to load?

jcbritobr commented 1 year ago

Off corse. Here it is. explorer.zip

jcbritobr commented 1 year ago

It happens when loading in everyone notebook.