Problem launching CW on Ubuntu Linux 14.10

Here is the place to discuss software and related tools for Slice generation, machine control, & etc...
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
jkao
Posts: 45
Joined: Sun Jan 04, 2015 5:42 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Problem launching CW on Ubuntu Linux 14.10

Postby jkao » Sun Jan 04, 2015 2:40 pm

I installed the mono-complete package and tried launching both 1.0.0.41 and 1.0.0.36 on both Ubuntu 14.04 and 14.10 (same computer, I upgraded to 14.10 to see if it would make any difference).

In all the cases, the launch crashes with the following console output:

$ mono ./CreationWorkshop.exe
X11 Error encountered:
Error: BadMatch (invalid parameter attributes)
Request: 155 (5)
Resource ID: 0x4400040
Serial: 976
Hwnd: Hwnd, Mapped:False ClientWindow:0x4400040, WholeWindow:0x440003F, Zombie=False, Parent:[Hwnd, Mapped:True ClientWindow:0x4400036, WholeWindow:0x4400035, Zombie=False, Parent:[Hwnd, Mapped:True ClientWindow:0x4400034, WholeWindow:0x4400033, Zombie=False, Parent:[Hwnd, Mapped:True ClientWindow:0x4400032, WholeWindow:0x4400031, Zombie=False, Parent:[Hwnd, Mapped:True ClientWindow:0x4400030, WholeWindow:0x440002F, Zombie=False, Parent:[Hwnd, Mapped:True ClientWindow:0x440002E, WholeWindow:0x440002D, Zombie=False, Parent:[Hwnd, Mapped:True ClientWindow:0x440002C, WholeWindow:0x440002B, Zombie=False, Parent:[Hwnd, Mapped:True ClientWindow:0x440002A, WholeWindow:0x4400029, Zombie=False, Parent:[<null>]]]]]]]]
Control: UV_DLP_3D_Printer.GUI.Controls.ctlGL at System.Environment.get_StackTrace()
at System.Windows.Forms.XplatUIX11.HandleError(IntPtr display, XErrorEvent ByRef error_event)
at OpenTK.Platform.X11.Glx.MakeCurrent(IntPtr , IntPtr , IntPtr )
at OpenTK.Platform.X11.Glx.MakeCurrent(IntPtr display, IntPtr drawable, ContextHandle context)
at OpenTK.Platform.X11.X11GLContext.MakeCurrent(IWindowInfo window)
at OpenTK.Graphics.GraphicsContext.MakeCurrent(IWindowInfo window)
at OpenTK.GLControl.MakeCurrent()
at OpenTK.GLControl.OnHandleCreated(System.EventArgs e)
at System.Windows.Forms.Control.WmCreate(Message ByRef m)
at System.Windows.Forms.Control.WndProc(Message ByRef m)
at System.Windows.Forms.ScrollableControl.WndProc(Message ByRef m)
at System.Windows.Forms.ContainerControl.WndProc(Message ByRef m)
at System.Windows.Forms.UserControl.WndProc(Message ByRef m)
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.XplatUIX11.CreateWindow(System.Windows.Forms.CreateParams cp)
at System.Windows.Forms.XplatUI.CreateWindow(System.Windows.Forms.CreateParams cp)
at System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message ByRef m)
at System.Windows.Forms.Control.WndProc(Message ByRef m)
at System.Windows.Forms.ScrollableControl.WndProc(Message ByRef m)
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.XplatUIX11.CreateWindow(System.Windows.Forms.CreateParams cp)
at System.Windows.Forms.XplatUI.CreateWindow(System.Windows.Forms.CreateParams cp)
at System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message ByRef m)
at System.Windows.Forms.Control.WndProc(Message ByRef m)
at System.Windows.Forms.ScrollableControl.WndProc(Message ByRef m)
at System.Windows.Forms.ContainerControl.WndProc(Message ByRef m)
at System.Windows.Forms.SplitContainer.WndProc(Message ByRef msg)
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.XplatUIX11.CreateWindow(System.Windows.Forms.CreateParams cp)
at System.Windows.Forms.XplatUI.CreateWindow(System.Windows.Forms.CreateParams cp)
at System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message ByRef m)
at System.Windows.Forms.Control.WndProc(Message ByRef m)
at System.Windows.Forms.ScrollableControl.WndProc(Message ByRef m)
at System.Windows.Forms.ContainerControl.WndProc(Message ByRef m)
at System.Windows.Forms.UserControl.WndProc(Message ByRef m)
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.XplatUIX11.CreateWindow(System.Windows.Forms.CreateParams cp)
at System.Windows.Forms.XplatUI.CreateWindow(System.Windows.Forms.CreateParams cp)
at System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message ByRef m)
at System.Windows.Forms.Control.WndProc(Message ByRef m)
at System.Windows.Forms.ScrollableControl.WndProc(Message ByRef m)
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.XplatUIX11.CreateWindow(System.Windows.Forms.CreateParams cp)
at System.Windows.Forms.XplatUI.CreateWindow(System.Windows.Forms.CreateParams cp)
at System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message ByRef m)
at System.Windows.Forms.Control.WndProc(Message ByRef m)
at System.Windows.Forms.ScrollableControl.WndProc(Message ByRef m)
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.XplatUIX11.CreateWindow(System.Windows.Forms.CreateParams cp)
at System.Windows.Forms.XplatUI.CreateWindow(System.Windows.Forms.CreateParams cp)
at System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message ByRef m)
at System.Windows.Forms.Control.WndProc(Message ByRef m)
at System.Windows.Forms.ScrollableControl.WndProc(Message ByRef m)
at System.Windows.Forms.ContainerControl.WndProc(Message ByRef m)
at System.Windows.Forms.SplitContainer.WndProc(Message ByRef msg)
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.XplatUIX11.CreateWindow(System.Windows.Forms.CreateParams cp)
at System.Windows.Forms.XplatUI.CreateWindow(System.Windows.Forms.CreateParams cp)
at System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
at System.Windows.Forms.Control.set_Visible(Boolean value)
at System.Windows.Forms.Application.RunLoop(Boolean Modal, System.Windows.Forms.ApplicationContext context)
at System.Windows.Forms.Application.Run(System.Windows.Forms.ApplicationContext context)
at System.Windows.Forms.Application.Run(System.Windows.Forms.Form mainForm)
at UV_DLP_3D_Printer.Program.Main()

OpenTK.Graphics.GraphicsContextException: Failed to make context current.
at OpenTK.Platform.X11.X11GLContext.MakeCurrent (IWindowInfo window) [0x00000] in <filename unknown>:0
at OpenTK.Graphics.GraphicsContext.MakeCurrent (IWindowInfo window) [0x00000] in <filename unknown>:0
at OpenTK.GLControl.MakeCurrent () [0x00000] in <filename unknown>:0
at OpenTK.GLControl.OnHandleCreated (System.EventArgs e) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control.WmCreate (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.ContainerControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.UserControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0
Stacktrace:


Native stacktrace:

mono() [0x4b73d8]
mono() [0x50f13b]
mono() [0x423d22]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfc90) [0x7f1bf2434c90]

Debug info from gdb:

[New LWP 12669]
[New LWP 12668]
[New LWP 12667]
[New LWP 12666]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f1bf2434839 in __libc_waitpid (pid=pid@entry=12672, stat_loc=stat_loc@entry=0x7f1bf2f5f19c, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
40 ../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory.
Id Target Id Frame
5 Thread 0x7f1bef0ff700 (LWP 12666) "mono" sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
4 Thread 0x7f1be1b60700 (LWP 12667) "dconf worker" 0x00007f1bf21502cd in poll () at ../sysdeps/unix/syscall-template.S:81
3 Thread 0x7f1be135f700 (LWP 12668) "gdbus" 0x00007f1bf21502cd in poll () at ../sysdeps/unix/syscall-template.S:81
2 Thread 0x7f1be07a7700 (LWP 12669) "mono" 0x00007f1bf24344fd in nanosleep () at ../sysdeps/unix/syscall-template.S:81
* 1 Thread 0x7f1bf2f377c0 (LWP 12665) "mono" 0x00007f1bf2434839 in __libc_waitpid (pid=pid@entry=12672, stat_loc=stat_loc@entry=0x7f1bf2f5f19c, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40

Thread 5 (Thread 0x7f1bef0ff700 (LWP 12666)):
#0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
#1 0x000000000062f667 in mono_sem_wait (sem=sem@entry=0x982440 <finalizer_sem>, alertable=alertable@entry=1) at mono-semaphore.c:119
#2 0x00000000005aba15 in finalizer_thread (unused=unused@entry=0x0) at gc.c:1073
#3 0x000000000058e34b in start_wrapper_internal (data=0x25d6700) at threads.c:643
#4 start_wrapper (data=0x25d6700) at threads.c:688
#5 0x000000000062410d in thread_start_routine (args=args@entry=0x2562378) at wthreads.c:294
#6 0x0000000000633ef5 in inner_start_thread (arg=0x25d2910) at mono-threads-posix.c:49
#7 0x00007f1bf242d0a5 in start_thread (arg=0x7f1bef0ff700) at pthread_create.c:309
#8 0x00007f1bf215a77d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7f1be1b60700 (LWP 12667)):
#0 0x00007f1bf21502cd in poll () at ../sysdeps/unix/syscall-template.S:81
#1 0x00007f1bedbf9ee4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007f1bedbf9ffc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007f1be1b6827d in ?? () from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#4 0x00007f1bedc20925 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5 0x00007f1bf242d0a5 in start_thread (arg=0x7f1be1b60700) at pthread_create.c:309
#6 0x00007f1bf215a77d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f1be135f700 (LWP 12668)):
#0 0x00007f1bf21502cd in poll () at ../sysdeps/unix/syscall-template.S:81
#1 0x00007f1bedbf9ee4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007f1bedbfa272 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007f1be58c7ef6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4 0x00007f1bedc20925 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5 0x00007f1bf242d0a5 in start_thread (arg=0x7f1be135f700) at pthread_create.c:309
#6 0x00007f1bf215a77d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f1be07a7700 (LWP 12669)):
#0 0x00007f1bf24344fd in nanosleep () at ../sysdeps/unix/syscall-template.S:81
#1 0x000000000062342b in SleepEx (ms=ms@entry=20, alertable=alertable@entry=1) at wthreads.c:842
#2 0x000000000058efbe in ves_icall_System_Threading_Thread_Sleep_internal (ms=20) at threads.c:1224
#3 0x00000000410b6fcd in ?? ()
#4 0x00007f1bd8002540 in ?? ()
#5 0x0000000000e09e17 in ?? ()
#6 0x00007f1bd80025c0 in ?? ()
#7 0x00007f1be07a6b70 in ?? ()
#8 0x00007f1be07a6aa0 in ?? ()
#9 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f1bf2f377c0 (LWP 12665)):
#0 0x00007f1bf2434839 in __libc_waitpid (pid=pid@entry=12672, stat_loc=stat_loc@entry=0x7f1bf2f5f19c, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
#1 0x00000000004b7465 in mono_handle_native_sigsegv (signal=signal@entry=11, ctx=ctx@entry=0x7f1bf2f5fac0) at mini-exceptions.c:2299
#2 0x000000000050f13b in mono_arch_handle_altstack_exception (sigctx=sigctx@entry=0x7f1bf2f5fac0, fault_addr=<optimized out>, stack_ovf=stack_ovf@entry=0) at exceptions-amd64.c:908
#3 0x0000000000423d22 in mono_sigsegv_signal_handler (_dummy=11, info=0x7f1bf2f5fbf0, context=0x7f1bf2f5fac0) at mini.c:6769
#4 <signal handler called>
#5 0x0000000000000000 in ?? ()
#6 0x00000000403009dd in ?? ()
#7 0x0000000000000000 in ?? ()

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Aborted (core dumped)
$

Any idea if this is some kind of configuration related problem or what further info might be needed to diagnose this?

Thanks!

User avatar
PacManFan
Site Admin
Posts: 633
Joined: Sun Dec 01, 2013 11:44 am
Location: Ahead of the curve
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Problem launching CW on Ubuntu Linux 14.10

Postby PacManFan » Sun Jan 04, 2015 3:31 pm

Thanks for posting this. I'll look into it. It looks like the OpenGL / OpenTK failed to make the context current.
-Steve

crusoe
Posts: 33
Joined: Tue Jan 06, 2015 5:04 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Problem launching CW on Ubuntu Linux 14.10

Postby crusoe » Thu Jan 08, 2015 5:06 pm

What is 3d card make, and what drivers are you using? The Opensource Noveau drivers for Nvidia are shit, the Opensource Radon ones are okay ( though the AMD ones are quite a bit more stable ). The included Intel drivers are quite solid.

jkao
Posts: 45
Joined: Sun Jan 04, 2015 5:42 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Problem launching CW on Ubuntu Linux 14.10

Postby jkao » Thu Jan 08, 2015 10:41 pm

It's an NVidia Geforce GTS 450 running the NVidia proprietary binary drivers, version 331.113 currently on Ubuntu 14.10, and 319.60 when I was on Ubuntu 14.04.

MasterCATZ
Posts: 2
Joined: Wed Apr 01, 2015 4:53 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Problem launching CW on Ubuntu Linux 14.10

Postby MasterCATZ » Fri Apr 03, 2015 6:57 pm

I just get a black screen in slice view mode

3D mode works

if I get time I will build direct from git

*edit*
and to just made a liar out of me it just worked then when I launched from cmd line


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable