lognplot icon indicating copy to clipboard operation
lognplot copied to clipboard

Crash when adding plots

Open phectori opened this issue 5 years ago • 1 comments

The lognplotgtk application crashes when adding plots to the "extra" 2x2 plot window.

To reproduce:

  • Run application cargo run --release
  • Open extra plot window by clicking View -> New 2x2 plot window
  • Drag plots to all 4 plots in the new window.
  • Keep adding plots until it crashes (usually after 5 or 6 in total)

Output:

    Updating crates.io index
    Finished release [optimized] target(s) in 4.45s
     Running `/Users/frits/Documents/Projects/lognplot/target/release/lognplotgtk`
2020-03-04 20:29:50,819 INFO  [lognplotgtk] Starting lognplot GUI tool
2020-03-04 20:29:50,823 INFO  [lognplot::net::server] Server thread begun!!!
2020-03-04 20:29:50,823 INFO  [lognplot::net::server] Starting up server at port 12345!
2020-03-04 20:29:50,824 INFO  [lognplot::net::server] Server listening on [::]:12345
2020-03-04 20:29:50.936 lognplotgtk[56082:1894993] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.

(<unknown>:56082): Gdk-WARNING **: 20:29:51.144: GdkQuartzDisplay does not implement the monitor vfuncs
Key! 65513
2020-03-04 20:29:57,273 INFO  [lognplotgtk::mainwindow] New window!
2020-03-04 20:30:06,201 INFO  [lognplotgtk::chart_widget] DROP ["META_chart_render_time_chart1"]
2020-03-04 20:30:14,775 INFO  [lognplotgtk::chart_widget] DROP ["META_chart_render_time_chart1"]
2020-03-04 20:30:16,954 INFO  [lognplotgtk::chart_widget] DROP ["META_chart_render_time_chart1"]
2020-03-04 20:30:20,572 INFO  [lognplotgtk::chart_widget] DROP ["META_chart_render_time_chart1"]
2020-03-04 20:30:22,448 INFO  [lognplotgtk::chart_widget] DROP ["META_chart_render_time_chart1"]
2020-03-04 20:30:24,512 INFO  [lognplotgtk::chart_widget] DROP ["META_chart_render_time_chart1"]
2020-03-04 20:30:24,512 INFO  [lognplotgtk::chart_widget] Signal META_chart_render_time_chart1 is already shown

(<unknown>:56082): Gdk-WARNING **: 20:30:24.514: losing last reference to undestroyed window

(<unknown>:56082): GLib-GObject-CRITICAL **: 20:30:24.514: g_object_ref: assertion 'old_val > 0' failed
[1]    56082 segmentation fault  cargo run --release

Test environment:

  • macOS Catalina 10.15.1
  • cargo 1.41.0

phectori avatar Mar 04 '20 20:03 phectori

This appears to be a mac specific issue, since the last message is a segfault, it should be checked with xcode what the cause is here.

windelbouwman avatar Mar 06 '20 09:03 windelbouwman