Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with FSharp.Charting on Xamarin #126

Open
FaguiCurtain opened this issue Apr 19, 2017 · 3 comments
Open

problem with FSharp.Charting on Xamarin #126

FaguiCurtain opened this issue Apr 19, 2017 · 3 comments
Labels

Comments

@FaguiCurtain
Copy link

FaguiCurtain commented Apr 19, 2017

I am running on Xamarin 6.3 on MacOS Sierra on a recent iMAC

I have loaded FSharp.Charting.Gtk (0.90.14)

  1. Problem when executing after compilation

capture d ecran 2017-04-20 a 00 58 05

this is what I get

The beginning of the error log looks like

Last login: Thu Apr 20 00:55:57 on ttys000
59x159x64x204:~ ...$ clear; cd "/Users/.../bin/Debug"; export PKG_CONFIG_PATH="/Applications/Xamarin Studio.app/Contents/Resources/lib/pkgconfig:/Library/Frameworks/Mono.framework/Versions/4.8.1/lib/pkgconfig"; export PKG_CONFIG_LIBDIR=""; export PATH="/Library/Frameworks/Mono.framework/Commands:/Applications/Xamarin Studio.app/Contents/Resources:/Applications/Xamarin Studio.app/Contents/MacOS:/usr/bin:/bin:/usr/sbin:/sbin"; export MONO_GAC_PREFIX="/Applications/Xamarin Studio.app/Contents/Resources"; export XBUILD_FRAMEWORK_FOLDERS_PATH=""; "/Library/Frameworks/Mono.framework/Versions/4.8.1/bin/mono32" --debug "/Users/.../bin/Debug/The42project.exe" ; echo $? > /var/folders/gm/z065gk616xg6g0xgn4c7_bvc0000gn/T/tmp1493d63.tmp; echo; read -p 'Press any key to continue...' -n1; exit

(process:14805): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(process:14805): GLib-GObject-CRITICAL **: gulong g_signal_connect_data(gpointer, const gchar *, GCallback, gpointer, GClosureNotify, GConnectFlags): assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(process:14805): Gtk-WARNING **: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window

(process:14805): Gdk-CRITICAL **: GdkColormap *gdk_screen_get_default_colormap(GdkScreen *): assertion `GDK_IS_SCREEN (screen)' failed

full error message here
https://gist.github.com/FaguiCurtain/a70fb8d894199f0a65de3a9006fb4758

  1. problem when executing in FSI

capture d ecran 2017-04-20 a 01 07 05

in FSI, the chart window opens immediately but it takes 20-30 sec for the chart to actually appear.
is it normal it takes so long ?
When i hover on the chart, i see no coordinates, is it normal ?
i cannot close this window. As you can see on the screenshot, the 3 buttons on the upperleft of the chart window are not activated. I cannot find a way to make this window disappear. is it normal ?

thanks

@dsyme
Copy link
Member

dsyme commented Jun 7, 2017

in FSI, the chart window opens immediately but it takes 20-30 sec for the chart to actually appear.
is it normal it takes so long ? i cannot close this window. As you can see on the screenshot, the 3 buttons on the upperleft of the chart window are not activated. I cannot find a way to make this window disappear. is it normal ?

I have seen this problem on Windows too - the chart only renders when you move the chart window. And then the chart window only disappears when you move the chart window.

It feels like a Gtk problem, or an interaction between OxtPlot and Gtk.

@dsyme
Copy link
Member

dsyme commented Jun 7, 2017

@nosami if you ever get a chance to try this out on Mac OSX that would be great

@dsyme dsyme added the bug label Jun 7, 2017
@nosami
Copy link

nosami commented Jun 23, 2017

From fsharpi on OSX, the chart launches instantly and the close buttons work as expected.

From Visual Studio for Mac, I see the same issues (delayed start and no close buttons). I'm not sure what the issue might be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants