Can't connect to/control Rostock Max v2 with MatterControl

Having a problem? Post it here and someone will be along shortly to help
Post Reply
Ligerzero_942
Noob
Posts: 3
Joined: Sun May 24, 2015 4:27 am

Can't connect to/control Rostock Max v2 with MatterControl

Post by Ligerzero_942 »

Hello,
I'm having trouble using MatterControl to calibrate my printer in accordance with the official manual.

When i run MatterControl as a non super-user I cannot connect to my printer for "Unknown Reason." When I try again running as root one of a few things will happen.
-MatterControl will attempt to connect but fail with "Invalid Printer Response." Changing the baudrate from 115200 to 250000, trying and failing to connect dut to "invalid Printer Response" then changing BACK to 115200 and attempting to connect will net a "Status:Connected" while in the printing section of the UI it will still state "Attempting to Connect..." During this state the printer cannot be controlled at all, the machine cannot be homed, commands entered in the terminal get no response, and temperature data is displayed as "0.0" rather than the 22 C on the Rostock's LCD display.

-MatterControl will attempt to connect to the printer but never will.

-MatterControl will crash at somepoint.

Something to note:
At one point I was able to get MatterControl to properly connect to the printer (I don't know how though), from their I was able to verify the endstops were working correctly, home the printer and control the cheapskates from the Control menu, turn the hot end and heated bed on and off and attempt to run a PID autotune. However during the autotune MatterControl crashed and I was not able to complete the test. I was able to verify from the printer's LCD display that the temperature in the hotend did not exceed 220C and was able to safely cool back down. Since that crash I have not been able to successfully connect to the printer and control it.

I have also tried using Octoprint but experienced similar connectivity and control issues. I did not try to control the printer in Octoprint but I was able to get a connection.

I'm using
A newly built rostock max v2
Rambo firmware: Repetier 091 ROSTOCKMAX from the seemecnc download site.
MatterControl 1.2
Ubuntu Linux 14.04

Any help or advice would be appreciated.
User avatar
KAS
ULTIMATE 3D JEDI
Posts: 1157
Joined: Thu Dec 04, 2014 6:06 pm

Re: Can't connect to/control Rostock Max v2 with MatterContr

Post by KAS »

bah, disregard. just noticed you're using linux.
Ligerzero_942
Noob
Posts: 3
Joined: Sun May 24, 2015 4:27 am

Re: Can't connect to/control Rostock Max v2 with MatterContr

Post by Ligerzero_942 »

I was able to fix the connectivity issues by patching pyserial to better use non-standard baud rates. Now i'm calibrating but the MC crashes are making it difficult. I have copy and pasted the error messages I get below:
60 ms 1
4 ms 2
0 ms 3
0 ms 3
0 ms 1
0 ms 2
0 ms 3
SetSerial: Reported speed before update 9600
SetSerial: Reported speed after update 250000
ReadFromPrinter thread created.
256 ms 3

Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
at System.Threading.Timer+Scheduler.SchedulerThread () [0x00000] in <filename unknown>:0
at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
at System.Threading.Timer+Scheduler.SchedulerThread () [0x00000] in <filename unknown>:0
at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0
Or
Stacktrace:


Native stacktrace:

mono() [0x4accac]
mono() [0x50451f]
mono() [0x42a7c7]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7f245e59f340]

Debug info from gdb:

[New LWP 12110]
[New LWP 12040]
[New LWP 12011]
[New LWP 12006]
[New LWP 12004]
[New LWP 12003]
[New LWP 12002]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f245e2b712d in poll () at ../sysdeps/unix/syscall-template.S:81
81 ../sysdeps/unix/syscall-template.S: No such file or directory.
Id Target Id Frame
8 Thread 0x7f245d6c4700 (LWP 12002) "Finalizer" sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
7 Thread 0x7f244ca0e700 (LWP 12003) "Timer-Scheduler" 0x00007f245e59eee9 in __libc_waitpid (pid=12148, stat_loc=0x7f24526f719c, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
6 Thread 0x7f24516d7700 (LWP 12004) "Threadpool moni" __clock_nanosleep (clock_id=1, flags=1, req=0x7f24516d6d20, rem=0xffffffffffffffff) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:49
5 Thread 0x7f24393be700 (LWP 12006) "Threadpool work" __clock_nanosleep (clock_id=1, flags=1, req=0x7f24393bd4b0, rem=0xffffffffffffffff) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:49
4 Thread 0x7f24391bd700 (LWP 12011) "Threadpool work" sem_timedwait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S:101
3 Thread 0x7f2439f6f700 (LWP 12040) "Threadpool work" sem_timedwait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S:101
2 Thread 0x7f244c80d700 (LWP 12110) "Threadpool work" sem_timedwait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S:101
* 1 Thread 0x7f245f0c17c0 (LWP 12001) "mono" 0x00007f245e2b712d in poll () at ../sysdeps/unix/syscall-template.S:81

Thread 8 (Thread 0x7f245d6c4700 (LWP 12002)):
#0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
#1 0x0000000000619238 in mono_sem_wait ()
#2 0x000000000059d02d in ?? ()
#3 0x0000000000582484 in ?? ()
#4 0x000000000061e0b6 in ?? ()
#5 0x00007f245e597182 in start_thread (arg=0x7f245d6c4700) at pthread_create.c:312
#6 0x00007f245e2c447d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 7 (Thread 0x7f244ca0e700 (LWP 12003)):
#0 0x00007f245e59eee9 in __libc_waitpid (pid=12148, stat_loc=0x7f24526f719c, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
#1 0x00000000004acd39 in ?? ()
#2 0x000000000050451f in ?? ()
#3 0x000000000042a7c7 in ?? ()
#4 <signal handler called>
#5 0x0000000000000000 in ?? ()
#6 0x0000000040f458e3 in ?? ()
#7 0x00000000020e7620 in ?? ()
#8 0x00007f245d0a32c8 in ?? ()
#9 0x00007f245d0a28c8 in ?? ()
#10 0x00000025ed0f6fb6 in ?? ()
#11 0x0000000000000038 in ?? ()
#12 0x0000000002082f80 in ?? ()
#13 0x0000000001e2f008 in ?? ()
#14 0x00007f245d0a2880 in ?? ()
#15 0x00007f245d0a28b0 in ?? ()
#16 0x0000000002082f60 in ?? ()
#17 0x0000000001e2f008 in ?? ()
#18 0x00007f245d0a2880 in ?? ()
#19 0x0000000000002710 in ?? ()
#20 0x00000025ed0de916 in ?? ()
#21 0x00007f245d0a2880 in ?? ()
#22 0x00007f2400000000 in ?? ()
#23 0x00007f245d0a28b8 in ?? ()
#24 0x0000000002082f40 in ?? ()
#25 0x0000000001e2f008 in ?? ()
#26 0x00007f245d0a2880 in ?? ()
#27 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f24516d7700 (LWP 12004)):
#0 __clock_nanosleep (clock_id=1, flags=1, req=0x7f24516d6d20, rem=0xffffffffffffffff) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:49
#1 0x000000000060c9c0 in ?? ()
#2 0x000000000058582d in ?? ()
#3 0x0000000000582484 in ?? ()
#4 0x000000000061e0b6 in ?? ()
#5 0x00007f245e597182 in start_thread (arg=0x7f24516d7700) at pthread_create.c:312
#6 0x00007f245e2c447d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 5 (Thread 0x7f24393be700 (LWP 12006)):
#0 __clock_nanosleep (clock_id=1, flags=1, req=0x7f24393bd4b0, rem=0xffffffffffffffff) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:49
#1 0x000000000060c9c0 in ?? ()
#2 0x000000000058222a in ?? ()
#3 0x0000000041007192 in ?? ()
#4 0x00007f244402c470 in ?? ()
#5 0x00007f24393bdc40 in ?? ()
#6 0x00007f243821d258 in ?? ()
#7 0x00007f24382255b8 in ?? ()
#8 0x0000000000000001 in ?? ()
#9 0x00007f24340025f0 in ?? ()
#10 0x00007f2452355400 in ?? ()
#11 0x00007f24393bd7d0 in ?? ()
#12 0x00007f24393bd510 in ?? ()
#13 0x00000000410070ec in ?? ()
#14 0x00007f24382255b8 in ?? ()
#15 0x00000000410158ac in ?? ()
#16 0x00007f24523486b8 in ?? ()
#17 0x0000000041015680 in ?? ()
#18 0x0000000000000028 in ?? ()
#19 0x00007f245d172c80 in ?? ()
#20 0x00007f24517747a0 in ?? ()
#21 0x00007f24382202d0 in ?? ()
#22 0x00007f245f048010 in ?? ()
#23 0x00007f24382202d0 in ?? ()
#24 0x00007f245f048010 in ?? ()
#25 0x00007f245f048010 in ?? ()
#26 0x00007f245d009d80 in ?? ()
#27 0x0000000000000251 in ?? ()
#28 0x00007f24382202d0 in ?? ()
#29 0x0000000000000001 in ?? ()
#30 0x00007f24382255b8 in ?? ()
#31 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f24391bd700 (LWP 12011)):
#0 sem_timedwait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S:101
#1 0x000000000061931b in mono_sem_timedwait ()
#2 0x0000000000586b82 in ?? ()
#3 0x0000000000582484 in ?? ()
#4 0x000000000061e0b6 in ?? ()
#5 0x00007f245e597182 in start_thread (arg=0x7f24391bd700) at pthread_create.c:312
#6 0x00007f245e2c447d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f2439f6f700 (LWP 12040)):
#0 sem_timedwait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S:101
#1 0x000000000061931b in mono_sem_timedwait ()
#2 0x0000000000586b82 in ?? ()
#3 0x0000000000582484 in ?? ()
#4 0x000000000061e0b6 in ?? ()
#5 0x00007f245e597182 in start_thread (arg=0x7f2439f6f700) at pthread_create.c:312
#6 0x00007f245e2c447d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f244c80d700 (LWP 12110)):
#0 sem_timedwait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S:101
#1 0x000000000061931b in mono_sem_timedwait ()
#2 0x0000000000586b82 in ?? ()
#3 0x0000000000582484 in ?? ()
#4 0x000000000061e0b6 in ?? ()
#5 0x00007f245e597182 in start_thread (arg=0x7f244c80d700) at pthread_create.c:312
#6 0x00007f245e2c447d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f245f0c17c0 (LWP 12001)):
#0 0x00007f245e2b712d in poll () at ../sysdeps/unix/syscall-template.S:81
#1 0x0000000041013556 in ?? ()
#2 0x0000000000000002 in ?? ()
#3 0x00007ffdb0619150 in ?? ()
#4 0x00007f245d009ab0 in ?? ()
#5 0x00007f24516d8a58 in ?? ()
#6 0x0000000000000002 in ?? ()
#7 0x00007ffdb0619d60 in ?? ()
#8 0x00000000011937b0 in ?? ()
#9 0x00007ffdb0619150 in ?? ()
#10 0x00007ffdb0619150 in ?? ()
#11 0x00007ffdb0618730 in ?? ()
#12 0x00007f245d009ad0 in ?? ()
#13 0x00007ffdb0610001 in ?? ()
#14 0x00007ffdb0619150 in ?? ()
#15 0x00000000410119e8 in ?? ()
#16 0x00007f245d067f50 in ?? ()
#17 0x00007ffdb0619150 in ?? ()
#18 0x00007f24517747a0 in ?? ()
#19 0x00007f2439ffd6d0 in ?? ()
#20 0x00007f24517747a0 in ?? ()
#21 0x00007f24517747a0 in ?? ()
#22 0x000000000000000f in ?? ()
#23 0x00007f245d009ad8 in ?? ()
#24 0x0000000040fcc6a5 in ?? ()
#25 0x0000000040fcc6f0 in ?? ()
#26 0x00007ffdb0618838 in ?? ()
#27 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.
=================================================================
Any help or advice would be appreciated.
geneb
ULTIMATE 3D JEDI
Posts: 5358
Joined: Mon Oct 15, 2012 12:47 pm
Location: Graham, WA
Contact:

Re: Can't connect to/control Rostock Max v2 with MatterContr

Post by geneb »

Please send that information to the MatterControl guys - they don't hang out here much. You can report the crash on the github repo for MatterControl.

g.
Delta Power!
Defeat the Cartesian Agenda!
http://www.f15sim.com - 80-0007, The only one of its kind.
http://geneb.simpits.org - Technical and Simulator Projects
User avatar
KAS
ULTIMATE 3D JEDI
Posts: 1157
Joined: Thu Dec 04, 2014 6:06 pm

Re: Can't connect to/control Rostock Max v2 with MatterContr

Post by KAS »

Looks like a Mono issue with .Net applications. Have you tried to update to the newest version?

http://www.mono-project.com/download/#download-lin

Code: Select all

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update

Linux to me is very much an enthusiast OS. I don't do much with it besides tinker with various flavors and configure a LAMP server for HTML/PHP testing.
Post Reply

Return to “Troubleshooting”