gqt icon indicating copy to clipboard operation
gqt copied to clipboard

gqt query crashes with large annotations (fix inside)

Open jpiper opened this issue 8 years ago • 1 comments

I have a BCF file, and one line has a very large annotation field (2 million characters - almost 10MB), which crashes gqt query.

This stems from the conservative 1MiB output_buffer_main_buf_size as defined in src/output_buffer.c, so this issue can can be solved by increasing this and recompiling.

I'm wondering if you think it's worth increasing the buffer size or allowing for dynamic growth or automatic flushing of the output buffer?

If not, at least this issue will help other people solve this issue if they run into it :)

jpiper avatar Jul 05 '16 05:07 jpiper

Thanks for finding this. I think it is a good idea to increase this buffer and I will in the next release.

On Mon, Jul 4, 2016 at 11:28 PM, Jason Piper [email protected] wrote:

I have a BCF file, and one line has a very large annotation field (2 million characters - almost 10MB), which crashes gqt query.

This stems from the conservative 1MiB output_buffer_main_buf_size as defined in src/output_buffer.c, so this issue can can be solved by increasing this and recompiling.

I'm wondering if you think it's worth increasing the buffer size or allowing for dynamic growth or automatic flushing of the output buffer?

If not, at least this issue will help other people solve this issue if they run into it :)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ryanlayer/gqt/issues/37, or mute the thread https://github.com/notifications/unsubscribe/AAlDUXNlwnEAA0TE2FtYPx9Vj0036mQZks5qSeuYgaJpZM4JEyXg .

Ryan Layer

ryanlayer avatar Aug 03 '16 19:08 ryanlayer