Giter Site home page Giter Site logo

Julia aborts from a Scale on mac about gtk.jl HOT 8 OPEN

yakir12 avatar yakir12 commented on August 22, 2024
Julia aborts from a Scale on mac

from gtk.jl.

Comments (8)

giordano avatar giordano commented on August 22, 2024 1

I mean, someone needs to follow the code, follow why the assertion is being triggered and understand if this package is doing something wrong (passing garbage to libcairo?) or maybe it's an error inside libcario.

from gtk.jl.

giordano avatar giordano commented on August 22, 2024

I don't see any segmentation fault, only an abort due to a failed assertion, which is quite a lot different.

from gtk.jl.

yakir12 avatar yakir12 commented on August 22, 2024

Frustratingly, I have been getting segfaults before, but I can't seem to reproduce one right now. In any case, any ideas why Julia would abort from such MWE?

from gtk.jl.

giordano avatar giordano commented on August 22, 2024

It isn't julia, it's an internal assertion in Cairo. Quoting from the error you shared:

Assertion failed: (!surface->finished), function _cairo_surface_release_source_image, file cairo-surface.c, line 2092.

from gtk.jl.

yakir12 avatar yakir12 commented on August 22, 2024

Oh... OK. So something closer to this: https://bugs.eclipse.org/bugs/show_bug.cgi?id=114298 and not https://github.com/JuliaGraphics/Cairo.jl?

from gtk.jl.

yakir12 avatar yakir12 commented on August 22, 2024

I tried this on Julia version 1.9.0-alpha1 and got a segmentation fault:

julia> 
[3002] signal (11.2): Segmentation fault: 11
in expression starting at none:0
_cairo_surface_release_source_image at /Users/yakir/.julia/artifacts/ada2a202928dd4cb2fc4bd18c4efa9d5455ec742/lib/libcairo.2.dylib (unknown line)
DataProviderReleaseCallback at /Users/yakir/.julia/artifacts/ada2a202928dd4cb2fc4bd18c4efa9d5455ec742/lib/libcairo.2.dylib (unknown line)
data_release_info at /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics (unknown line)
Allocations: 6402510 (Pool: 6396917; Big: 5593); GC: 30
zsh: segmentation fault  /Applications/Julia-1.9.app/Contents/Resources/julia/bin/julia

Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

as well as in version 1.10.0-DEV.39:

julia> 
[10156] signal (11.2): Segmentation fault: 11
in expression starting at none:0
_cairo_surface_release_source_image at /Users/yakir/.julia/artifacts/ada2a202928dd4cb2fc4bd18c4efa9d5455ec742/lib/libcairo.2.dylib (unknown line)
DataProviderReleaseCallback at /Users/yakir/.julia/artifacts/ada2a202928dd4cb2fc4bd18c4efa9d5455ec742/lib/libcairo.2.dylib (unknown line)
data_release_info at /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics (unknown line)
Allocations: 4952694 (Pool: 4948697; Big: 3997); GC: 8
zsh: segmentation fault  ./julia

However, It worked just fine on the current LTS: 1.6.7!

from gtk.jl.

mchitre avatar mchitre commented on August 22, 2024

I get segfault as well:

Assertion failed: (!surface->finished), function _cairo_surface_release_source_image, file cairo-surface.c, line 2092.

[413] signal (6): Abort trap: 6
in expression starting at none:0
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 5701615 (Pool: 5697132; Big: 4483); GC: 9
fish: Job 1, 'julia' terminated by signal SIGABRT (Abort)

on

julia> versioninfo()
Julia Version 1.9.2
Commit e4ee485e909 (2023-07-05 09:39 UTC)
Platform Info:
  OS: macOS (arm64-apple-darwin22.4.0)
  CPU: 10 Γ— Apple M1 Pro
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, apple-m1)
  Threads: 1 on 8 virtual cores

from gtk.jl.

giordano avatar giordano commented on August 22, 2024

I get segfault as well:

I still don't see any segmentation fault.

from gtk.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.