Skip to content

Seems to cause my program execution to be stuck? #18

@x-ji

Description

@x-ji

For some reason my program seem to be stuck at the very beginning (reading in a corpus, before training can be performed on that corpus) when I prepend the train function with @trace. For an hour there is no output, while normally the corpus reading should be done very fast. The following are the stacktrace after I interrupted the program with Ctrl+C:

^CERROR: InterruptException:
Stacktrace:
 [1] Traceur.DynamicCall(::Function, ::Int64, ::Vararg{Int64,N} where N) at /home/jx/.julia/packages/Traceur/bKqVY/src/analysis.jl:17
 [2] posthook(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Cassette.NoPass,Nothing,Nothing}, ::Bool, ::Function, ::Int64, ::Vararg{Int64,N} where N) at /home/jx/.julia/packages/Traceur/bKqVY/src/trace.jl:18
 [3] ismalformed at ./char.jl:79 [inlined]
 [4] overdub(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Cassette.NoPass,Nothing,Nothing}, ::typeof(Base.ismalformed), ::Char) at /home/jx/.julia/packages/Cassette/XwZ3M/src/overdub.jl:0
 [5] category_code at ./strings/unicode.jl:250 [inlined]
 [6] overdub(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Cassette.NoPass,Nothing,Nothing}, ::typeof(Base.Unicode.category_code), ::Char) at /home/jx/.julia/packages/Cassette/XwZ3M/src/overdub.jl:0
 [7] isspace at ./strings/unicode.jl:460 [inlined]
 [8] #3 at ./none:0 [inlined]
 [9] overdub(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Cassette.NoPass,Nothing,Nothing}, ::getfield(Main.HPYLM, Symbol("##3#7")), ::Char) at /home/jx/.julia/packages/Cassette/XwZ3M/src/overdub.jl:0
 [10] iterate at ./iterators.jl:434 [inlined]
 [11] overdub(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Cassette.NoPass,Nothing,Nothing}, ::typeof(iterate), ::Base.Iterators.Filter{getfield(Main.HPYLM, Symbol("##3#7")),String}, ::Int64) at /home/jx/.julia/packages/Cassette/XwZ3M/src/overdub.jl:0
 [12] overdub at /home/jx/.julia/packages/Cassette/XwZ3M/src/overdub.jl:430 [inlined]
 [13] iterate at ./generator.jl:44 [inlined]
 [14] grow_to! at ./array.jl:700 [inlined]
 [15] overdub(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Cassette.NoPass,Nothing,Nothing}, ::typeof(Base.grow_to!), ::Array{Int64,1}, ::Base.Generator{Base.Iterators.Filter{getfield(Main.HPYLM, Symbol("##3#7")),String},getfield(Main.HPYLM, Symbol("##2#6")){Main.HPYLM.Vocabulary}}, ::Int64) at /home/jx/.julia/packages/Cassette/XwZ3M/src/overdub.jl:0
 [16] grow_to! at ./array.jl:678 [inlined]
 [17] overdub(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Cassette.NoPass,Nothing,Nothing}, ::typeof(Base.grow_to!), ::Array{Int64,1}, ::Base.Generator{Base.Iterators.Filter{getfield(Main.HPYLM, Symbol("##3#7")),String},getfield(Main.HPYLM, Symbol("##2#6")){Main.HPYLM.Vocabulary}}) at /home/jx/.julia/packages/Cassette/XwZ3M/src/overdub.jl:0
 [18] collect at ./array.jl:617 [inlined]
 [19] overdub(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Cassette.NoPass,Nothing,Nothing}, ::typeof(collect), ::Base.Generator{Base.Iterators.Filter{getfield(Main.HPYLM, Symbol("##3#7")),String},getfield(Main.HPYLM, Symbol("##2#6")){Main.HPYLM.Vocabulary}}) at /home/jx/.julia/packages/Cassette/XwZ3M/src/overdub.jl:0
 [20] overdub(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Cassette.NoPass,Nothing,Nothing}, ::getfield(Main.HPYLM, Symbol("##1#5")){Main.HPYLM.Vocabulary}, ::String) at ./none:0
 [21] iterate at ./generator.jl:47 [inlined]
 [22] grow_to! at ./array.jl:700 [inlined]
 [23] overdub(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Cassette.NoPass,Nothing,Nothing}, ::typeof(Base.grow_to!), ::Array{Array{Int64,1},1}, ::Base.Generator{Base.Iterators.Filter{getfield(Main.HPYLM, Symbol("##4#8")),Array{String,1}},getfield(Main.HPYLM, Symbol("##1#5")){Main.HPYLM.Vocabulary}}, ::Int64) at /home/jx/.julia/packages/Cassette/XwZ3M/src/overdub.jl:0
 [24] grow_to! at ./array.jl:678 [inlined]
 [25] overdub(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Cassette.NoPass,Nothing,Nothing}, ::typeof(Base.grow_to!), ::Array{Array{Int64,1},1}, ::Base.Generator{Base.Iterators.Filter{getfield(Main.HPYLM, Symbol("##4#8")),Array{String,1}},getfield(Main.HPYLM, Symbol("##1#5")){Main.HPYLM.Vocabulary}}) at /home/jx/.julia/packages/Cassette/XwZ3M/src/overdub.jl:0
 [26] collect at ./array.jl:617 [inlined]
 [27] overdub(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Cassette.NoPass,Nothing,Nothing}, ::typeof(collect), ::Base.Generator{Base.Iterators.Filter{getfield(Main.HPYLM, Symbol("##4#8")),Array{String,1}},getfield(Main.HPYLM, Symbol("##1#5")){Main.HPYLM.Vocabulary}}) at /home/jx/.julia/packages/Cassette/XwZ3M/src/overdub.jl:0
 [28] read_corpus at /home/julia-hpylm/Corpus.jl:107 [inlined]
 [29] overdub(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Cassette.NoPass,Nothing,Nothing}, ::typeof(Main.HPYLM.read_corpus), ::IOStream, ::Main.HPYLM.Vocabulary) at /home/jx/.julia/packages/Cassette/XwZ3M/src/overdub.jl:0
 [30] train at /home/jx/Dropbox/Tuebingen1819WS/thesis/repo/julia-hpylm/HPYLM.jl:65 [inlined]
 [31] overdub(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Cassette.NoPass,Nothing,Nothing}, ::typeof(Main.HPYLM.train), ::String, ::Int64, ::Int64, ::String) at /home/jx/.julia/packages/Cassette/XwZ3M/src/overdub.jl:0
 [32] #7 at /home/jx/.julia/packages/Traceur/bKqVY/src/trace.jl:39 [inlined]
 [33] overdub(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Cassette.NoPass,Nothing,Nothing}, ::getfield(Main, Symbol("##7#8"))) at /home/jx/.julia/packages/Cassette/XwZ3M/src/overdub.jl:0
 [34] trace(::Function, ::Function) at /home/jx/.julia/packages/Traceur/bKqVY/src/trace.jl:28
 [35] warntrace(::Function) at /home/jx/.julia/packages/Traceur/bKqVY/src/trace.jl:30
 [36] top-level scope at none:0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions