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

Julia v0.6 fix #123

Merged
merged 6 commits into from
Mar 9, 2017
Merged

Julia v0.6 fix #123

merged 6 commits into from
Mar 9, 2017

Conversation

fredrikekre
Copy link
Member

No description provided.

@fredrikekre
Copy link
Member Author

Test segfaultar:

signal (4): Illegal instruction
while loading /home/fredrik/Dropbox/Programming/JuAFEM.jl/test/test_VTK.jl, in expression starting on line 2
vtk_grid at /home/fredrik/Dropbox/Programming/JuAFEM.jl/src/deprecations.jl:20
macro expansion at /home/fredrik/Dropbox/Programming/JuAFEM.jl/test/test_VTK.jl:64 [inlined]
macro expansion at ./test.jl:853 [inlined]
anonymous at ./<missing> (unknown line)
jl_call_method_internal at /home/fredrik/julia-master/src/julia_internal.h:248 [inlined]
jl_toplevel_eval_flex at /home/fredrik/julia-master/src/toplevel.c:589
jl_parse_eval_all at /home/fredrik/julia-master/src/ast.c:874
jl_load at /home/fredrik/julia-master/src/toplevel.c:616
include_from_node1 at ./loading.jl:539
unknown function (ip: 0x7f5af5b8dc52)
jl_call_method_internal at /home/fredrik/julia-master/src/julia_internal.h:248 [inlined]
jl_apply_generic at /home/fredrik/julia-master/src/gf.c:2212
include at ./sysimg.jl:14
unknown function (ip: 0x7f5d070d2f3b)
jl_call_method_internal at /home/fredrik/julia-master/src/julia_internal.h:248 [inlined]
jl_apply_generic at /home/fredrik/julia-master/src/gf.c:2212
do_call at /home/fredrik/julia-master/src/interpreter.c:75
eval at /home/fredrik/julia-master/src/interpreter.c:230
jl_interpret_toplevel_expr at /home/fredrik/julia-master/src/interpreter.c:34
jl_toplevel_eval_flex at /home/fredrik/julia-master/src/toplevel.c:577
jl_parse_eval_all at /home/fredrik/julia-master/src/ast.c:874
jl_load at /home/fredrik/julia-master/src/toplevel.c:616
include_from_node1 at ./loading.jl:539
unknown function (ip: 0x7f5af5b8dc52)
jl_call_method_internal at /home/fredrik/julia-master/src/julia_internal.h:248 [inlined]
jl_apply_generic at /home/fredrik/julia-master/src/gf.c:2212
include at ./sysimg.jl:14
unknown function (ip: 0x7f5d070d2f3b)
jl_call_method_internal at /home/fredrik/julia-master/src/julia_internal.h:248 [inlined]
jl_apply_generic at /home/fredrik/julia-master/src/gf.c:2212
do_call at /home/fredrik/julia-master/src/interpreter.c:75
eval at /home/fredrik/julia-master/src/interpreter.c:230
jl_interpret_toplevel_expr at /home/fredrik/julia-master/src/interpreter.c:34
jl_toplevel_eval_flex at /home/fredrik/julia-master/src/toplevel.c:577
jl_toplevel_eval_flex at /home/fredrik/julia-master/src/toplevel.c:551
jl_toplevel_eval_in at /home/fredrik/julia-master/src/builtins.c:484
eval at ./boot.jl:235
unknown function (ip: 0x7f5d071f097f)
jl_call_method_internal at /home/fredrik/julia-master/src/julia_internal.h:248 [inlined]
jl_apply_generic at /home/fredrik/julia-master/src/gf.c:2212
eval_user_input at ./REPL.jl:66
unknown function (ip: 0x7f5af5b66736)
jl_call_method_internal at /home/fredrik/julia-master/src/julia_internal.h:248 [inlined]
jl_apply_generic at /home/fredrik/julia-master/src/gf.c:2212
macro expansion at ./REPL.jl:97 [inlined]
#1 at ./event.jl:73
unknown function (ip: 0x7f5af5b61f0f)
jl_call_method_internal at /home/fredrik/julia-master/src/julia_internal.h:248 [inlined]
jl_apply_generic at /home/fredrik/julia-master/src/gf.c:2212
jl_apply at /home/fredrik/julia-master/src/julia.h:1410 [inlined]
start_task at /home/fredrik/julia-master/src/task.c:261
unknown function (ip: 0xffffffffffffffff)
Allocations: 46120131 (Pool: 46114149; Big: 5982); GC: 90
Illegal instruction (core dumped)

@KristofferC
Copy link
Collaborator

Ta bort VTK deprecationen?

test/test_VTK.jl Outdated
@@ -46,49 +46,33 @@ using SHA
("tetras", coords_3D, tetra_mesh_edof, VTKCellTypes.VTK_TETRA))

vtkfile = vtk_grid(name, coord, edof, ctype)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line segfaults... But only if this file is ran with include, copy pasting the full testset in the REPL passes just fine.

@KristofferC
Copy link
Collaborator

JuliaLang/julia#17003

@@ -5,7 +5,7 @@ makedocs(
format = :html,
sitename = "JuAFEM.jl",
doctest = true,
strict = true,
strict = false, # VERSION.minor == 6, # only strict mode on release bot
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doing this since some packages still spew out deprecations...

@@ -1,5 +1,7 @@
using SHA
@testset "VTK" begin
if VERSION.minor < 6 # temporarily skip tests on this until
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skipping 0.6 tests here. Seems to work outside the test suite so thats nice at least.

julia> function foo()
           grid = generate_grid(Triangle, (2, 2))
           vtk = vtk_grid("testfile", grid)
           vtk_save(vtk)
       end
foo (generic function with 1 method)

julia> foo()
1-element Array{String,1}:
 "testfile.vtu"

@fredrikekre fredrikekre requested a review from KristofferC March 2, 2017 13:28
@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@083ca48). Click here to learn what that means.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             master     #123   +/-   ##
=========================================
  Coverage          ?   88.79%           
=========================================
  Files             ?       14           
  Lines             ?      946           
  Branches          ?        0           
=========================================
  Hits              ?      840           
  Misses            ?      106           
  Partials          ?        0
Impacted Files Coverage Δ
src/grid.jl 12.06% <ø> (ø)
src/interpolations.jl 100% <ø> (ø)
src/VTK.jl 62.5% <ø> (ø)
src/quadrature.jl 93.33% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 083ca48...7763a7b. Read the comment docs.

@fredrikekre fredrikekre merged commit 102cbb1 into master Mar 9, 2017
@fredrikekre fredrikekre deleted the fe/v06-fix branch March 9, 2017 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants