Skip to content

Hang while streaming command on Windows #30

Description

@ssbotelh

First off, thanks for this library. Awesome project!

I'm seeing a consistent hang when using gnuplot-iostream on Windows, and was hoping you could point me in the right direction to resolve it. These tend to happen when the command is very large (thousands of lines). I attached the debugger, and noticed that it stalls inside some deep boost::iostreams method, not sure if this will mean much to you:

template<>
struct write_device_impl<output> {
    template<typename T>
    static bool put(T& t, typename char_type_of<T>::type c)
    { return t.write(&c, 1) == 1; }

    template<typename T>
    static std::streamsize
    write(T& t, const typename char_type_of<T>::type* s, std::streamsize n)
    { return t.write(s, n); }
};

This is in boost\iostreams\write.hpp, and that last t.write(s,n) call is where it seems to always hang. I tried the exact same code on Linux, and it works fine (plot takes 2 secs to generate). Any pointer will be incredibly helpful. Thank you!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions