Giter Club home page Giter Club logo

Comments (5)

jnweiger avatar jnweiger commented on June 28, 2024 2

Manually using imagemagick convert trace01.bmp trace01.pbm produces a pbm image that works fine. Converting to png does not work for me, it prints a chunk error like
y[B8][AD][D9]: invalid chunk type -- but that is probably a different issue.

from autotrace.

lemenkov avatar lemenkov commented on June 28, 2024

Could you please attach test_image.bmp?

from autotrace.

ThSGM avatar ThSGM commented on June 28, 2024

@lemenkov

Thanks. It does seem to be image dependent. I've tested it on the two images below in the zip file. One is half the size of the other. It works on the smaller of the two. So

autotrace -centerline -output-file test.svg -output-format svg -report-progress trace02.bmp

works but trace01.bmp does not.

Archive.zip

from autotrace.

jnweiger avatar jnweiger commented on June 28, 2024

I can reproduce the crash on Ubuntu18.04

Core was generated by `autotrace -centerline -output-file test.svg -output-format svg trace01.bmp'.
Program terminated with signal SIGSEGV, Segmentation fault.
0x00007ffff7bbd39a in at_bitmap_get_color (bitmap=0x555555787de0, row=285, col=4294967295, color=0x7fffffffda65) at src/autotrace.c:210
210	    at_color_set(color, p[0], p[1], p[2]);
(gdb) where
#0  0x00007ffff7bbd39a in at_bitmap_get_color (bitmap=0x555555787de0, row=285, col=4294967295, color=0x7fffffffda65)
    at src/autotrace.c:210
#1  0x00007ffff7bbf38e in is_valid_dir (row=284, col=0, dir=SOUTHWEST, bitmap=0x555555787de0, marked=0x555555787d40)
    at src/pxl-outline.c:208
#2  0x00007ffff7bc017e in find_centerline_pixels (bitmap=0x555555787de0, bg_color=..., notify_progress=0x0, progress_data=0x7fffffffdcdc, test_cancel=0x0, testcancel_data=0x0, exp=0x7fffffffdc50) at src/pxl-outline.c:256
#3  0x00007ffff7bbd7f4 in at_splines_new_full (bitmap=0x555555787de0, opts=0x555555787ce0, msg_func=0x555555557b28 <exception_handler>, msg_data=0x0, notify_progress=0x0, progress_data=0x7fffffffdcdc, test_cancel=0x0, testcancel_data=0x0) at src/autotrace.c:289
#4  0x0000555555556564 in main (argc=7, argv=0x7fffffffde38) at src/main.c:147
(gdb) 

from autotrace.

martweb1 avatar martweb1 commented on June 28, 2024

Should now work fine with the patches provided here:
#15

from autotrace.

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.