
 Posts: 3
 Joined: Fri Jan 01, 2016 7:19 pm
Mathematica startup crashing RDP session
Hi all,
First of all, I'm a Pi noob, so please let me know if I'm doing things wrong
My problem is very similar to the one described here: viewtopic.php?f=94&t=122306
In my case I am running the xrdp service on my Pi 2 and connecting to it using Microsoft Remote Desktop; i.e. I'm running my Pi headless.
Everything works fine using this setup apart from Mathematica, which crashes the RDP session EVERY time that the application is started. Basically, the RDP session stays open long enough for me to see that Mathematica is starting, even getting as far as the 'Opening Welcome Screen' message and a brief of glimpse of the Mathematica GUI window, before my RDP session is closed.
When I relog back in using RDP, the Pi is working fine but it's as if Mathematica was never started; e.g. no error messages indicating it has crashed.
I believe that Mathematica and the underlying Wolfram Language have a client/server relationship with each other, and wonder if that might somehow be the cause of this problem? Unfortunately, the solution posted at the above URL will not work for me as I already have the 2 mentioned lines in my /etc/network/interfaces file.
I really do need to run in headless mode so any help and/or solution would be greatly appreciated.
Many thanks
Will
First of all, I'm a Pi noob, so please let me know if I'm doing things wrong
My problem is very similar to the one described here: viewtopic.php?f=94&t=122306
In my case I am running the xrdp service on my Pi 2 and connecting to it using Microsoft Remote Desktop; i.e. I'm running my Pi headless.
Everything works fine using this setup apart from Mathematica, which crashes the RDP session EVERY time that the application is started. Basically, the RDP session stays open long enough for me to see that Mathematica is starting, even getting as far as the 'Opening Welcome Screen' message and a brief of glimpse of the Mathematica GUI window, before my RDP session is closed.
When I relog back in using RDP, the Pi is working fine but it's as if Mathematica was never started; e.g. no error messages indicating it has crashed.
I believe that Mathematica and the underlying Wolfram Language have a client/server relationship with each other, and wonder if that might somehow be the cause of this problem? Unfortunately, the solution posted at the above URL will not work for me as I already have the 2 mentioned lines in my /etc/network/interfaces file.
I really do need to run in headless mode so any help and/or solution would be greatly appreciated.
Many thanks
Will

 Posts: 3
 Joined: Fri Jan 01, 2016 7:19 pm
Re: Mathematica startup crashing RDP session
Solved (at least for me): I've changed over to using vncserver on the Pi and connect to it using VNC Viewer  Mathematica now works splendidly...!
But... now I'm getting an annoying "GDBus" error message that seems to be widely associated with VNC... Is Linux frustrating or what!
Will
But... now I'm getting an annoying "GDBus" error message that seems to be widely associated with VNC... Is Linux frustrating or what!
Will
Re: Mathematica startup crashing RDP session
There's a fix for that  you go into one of the "preferences" menus in LXDE (or pcmanfm, whatever) and unclick something (something that says something like "Try to do GDBus polling").But... now I'm getting an annoying "GDBus" error message...
I did it long ago one one of the machines that I VNC into  I don't remember the details (obviously), but it is very obvious once you get to the right menu.
"If you haven't got anything nice to say about anybody come sit next to me." — Alice Roosevelt Longworth

 Posts: 3
 Joined: Fri Jan 01, 2016 7:19 pm
Re: Mathematica startup crashing RDP session
hi QuietZone, I think you're probably referring to the details that I found at the following 2 links, but there are many more where these came from.
http://raspberrypi.stackexchange.com/qu ... nstartup
http://helloraspberrypi.blogspot.co.uk/ ... kit1e.html
In summary, go into the terminal, type in 'lxsessionedit', untick the LXPolKit option, reboot. Only this doesn't work, because on my version of raspbian there is no LXPolKit option. I can't go to Preferences>Desktop Session Settings, because there is no such option in Preferences.
I went into 'add/remove software', searched for 'LXPolKit', and lo and behold found it, but it's not installed. Clicking the tick to install it, unticks a load of other already ticked options. I persevered and tried to install LXPolKit anyway, but the installation process says 'authenticating' and goes nowhere. (NB  my thinking here was to install it so that I would, hopefully, have something to untick from having entered 'lxsessionedit' as above.
None of this has worked and I'm at a complete loss as to how to proceed...
Will
http://raspberrypi.stackexchange.com/qu ... nstartup
http://helloraspberrypi.blogspot.co.uk/ ... kit1e.html
In summary, go into the terminal, type in 'lxsessionedit', untick the LXPolKit option, reboot. Only this doesn't work, because on my version of raspbian there is no LXPolKit option. I can't go to Preferences>Desktop Session Settings, because there is no such option in Preferences.
I went into 'add/remove software', searched for 'LXPolKit', and lo and behold found it, but it's not installed. Clicking the tick to install it, unticks a load of other already ticked options. I persevered and tried to install LXPolKit anyway, but the installation process says 'authenticating' and goes nowhere. (NB  my thinking here was to install it so that I would, hopefully, have something to untick from having entered 'lxsessionedit' as above.
None of this has worked and I'm at a complete loss as to how to proceed...
Will
Re: Mathematica startup crashing RDP session
The problem continues even after the recent upgrades, wolframengine_10.3.1 in "RASPBIAN JESSIE,Full desktop image based on Debian Jessie,Version:February 2016,Release date:20160209,Kernel version:4.1"
Enabled the experimental GL driver for desktop but there is no change to crashing of xrdp session...
Enabled the experimental GL driver for desktop but there is no change to crashing of xrdp session...
Re: Mathematica startup crashing RDP session
This happens for me too, on my brand new shiny RPi 3. Clean install of raspbian from NOOBS, then install xrdp. Remote desktop in from a Windows 10 machine and try to start Mathematica. The remote session disconnects, and after reconnecting there's no sign of Mathematica running.
Any suggestions would be welcome!
Any suggestions would be welcome!
Re: Mathematica startup crashing RDP session
I'm starting to think that they did this on porpose, so you can not rdp in and use mathematica, instead you have to buy one of their service for using it on another machine :S
I hope really not to be like this...
I hope really not to be like this...

 Posts: 1
 Joined: Thu Mar 17, 2016 4:15 pm
Re: Mathematica startup crashing RDP session
Hi
I also have this problem with RPi 3 with RDP and the latest release. I would like to use a remote desktop client to connect to my RPi 3 and run Mathematica rather than having to hard wire my RPi.
I also have this problem with RPi 3 with RDP and the latest release. I would like to use a remote desktop client to connect to my RPi 3 and run Mathematica rather than having to hard wire my RPi.
Re: Mathematica startup crashing RDP session
I have Mathematica running on a Pi B+ with MS RDP on a Windows 10 Computer. I did not do anything special to get it running.
I have a Pi 3 on the way, due Monday 21 Mar, and I will try again with the same SD card in the Pi 3, and report back then.
Software versions:
Dave.
I have a Pi 3 on the way, due Monday 21 Mar, and I will try again with the same SD card in the Pi 3, and report back then.
Software versions:
Code: Select all
flash@RaspberryPlus ~ $ mathematica version
10.3
flash@RaspberryPlus ~ $ xrdp version
xrdp: A Remote Desktop Protocol server.
Copyright (C) Jay Sorg 20042011
See http://xrdp.sourceforge.net for more information.
Version 0.6.1
flash@RaspberryPlus ~ $ uname a
Linux RaspberryPlus 4.1.19+ #853 Wed Mar 9 18:04:48 GMT 2016 armv6l GNU/Linux
flash@RaspberryPlus ~ $ vcgencmd version
Mar 9 2016 18:15:17
Copyright (c) 2012 Broadcom
version 3a754304b032a5298ee7889b179c667bbc75dec5 (clean) (release)
Re: Mathematica startup crashing RDP session
Yes, it works on my B+ too, but not on my 3
Re: Mathematica startup crashing RDP session
I've found the fix here: http://ha5kfu.sch.bme.hu/node/193
Problem solved by running: sudo aptget install libgl1mesaswx11
Problem solved by running: sudo aptget install libgl1mesaswx11
Re: Mathematica startup crashing RDP session
Oooo... worked for me too
Re: Mathematica startup crashing RDP session
OK... if I've understood this properly, the effect of that installation is to replace the Pi's hardwareassisted 3D rendering library with a pure software version. This will presumably adversely affect performance (though, poor performance is better than a crash!).
Presumably this suggests that the underlying problem is a bug in the hardwareassisted 3D library? Does anyone know how to report this so that it can be fixed?
Presumably this suggests that the underlying problem is a bug in the hardwareassisted 3D library? Does anyone know how to report this so that it can be fixed?
Re: Mathematica startup crashing RDP session
Indeed that would be great to fix this properly.
What can we do ?
What can we do ?
Re: Mathematica startup crashing RDP session
Reference my post above
New Pi 3 B arrived
Updated my SD card firmware in my Pi B+ to:
I have Mathematica running using RDP from Windows 10 & Windows XP Computers.
Dave.
New Pi 3 B arrived
Updated my SD card firmware in my Pi B+ to:
Code: Select all
flash@RaspberryThree ~ $ uname a
Linux RaspberryThree 4.1.19v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux
flash@RaspberryThree ~ $ vcgencmd version
Mar 15 2016 14:51:23
Copyright (c) 2012 Broadcom
version 1bf9a9a77026af9128a339c82d72e331d3532ee4 (clean) (release)
My Pi 3 B does not have libgl1mesaswx11 installed, but it does have libgl1mesaglx installed. I don't know if this is relevant or not.drupol wrote:I've found the fix here: http://ha5kfu.sch.bme.hu/node/193
Problem solved by running: sudo aptget install libgl1mesaswx11
Dave.
Re: Mathematica startup crashing RDP session
Curious!
My pi3 also had libgl1mesaglx (I think it's the hardware accelerated version of the library) installed to start with, i.e. when Mathematica was failing, but it was uninstalled automatically when I installed libgl1mesaswx11.
I had also done an "aptget distupgrade" before posting in the first place, which left my pi3 in this state:I.e. slightly older than yours, so presumably there've been more updates since which may be relevant. Does distupgrade do the Broadcom firmware as well, or do I need to do that separately somehow?
I guess I should try reinstating libgl1mesaglx and then see if a new distupgrade fixes Mathematica.
My pi3 also had libgl1mesaglx (I think it's the hardware accelerated version of the library) installed to start with, i.e. when Mathematica was failing, but it was uninstalled automatically when I installed libgl1mesaswx11.
I had also done an "aptget distupgrade" before posting in the first place, which left my pi3 in this state:
Code: Select all
pi@pi3:~ $ mathematica version
10.3
pi@pi3:~ $ xrdp version
xrdp: A Remote Desktop Protocol server.
Copyright (C) Jay Sorg 20042011
See http://xrdp.sourceforge.net for more information.
Version 0.6.1
pi@pi3:~ $ uname a
Linux pi3 4.1.18v7+ #846 SMP Thu Feb 25 14:22:53 GMT 2016 armv7l GNU/Linux
pi@pi3:~ $ vcgencmd version
Feb 25 2016 14:25:47
Copyright (c) 2012 Broadcom
version dea971b793dd6cf89133ede5a8362eb77e4f4ade (clean) (release)
pi@pi3:~ $
I guess I should try reinstating libgl1mesaglx and then see if a new distupgrade fixes Mathematica.
Re: Mathematica startup crashing RDP session
Still crashing after reinstalling libgl1mesaglx and doing a distupgrade.
Code: Select all
pi@rpi8gb:~ $ Mathematica version
10.3
pi@rpi8gb:~ $ uname a
Linux rpi8gb 4.1.19v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux
pi@rpi8gb:~ $ xrdp version
xrdp: A Remote Desktop Protocol server.
Copyright (C) Jay Sorg 20042011
See http://xrdp.sourceforge.net for more information.
Version 0.6.1
pi@rpi8gb:~ $ vcgencmd version
Mar 15 2016 14:47:28
Copyright (c) 2012 Broadcom
version 1bf9a9a77026af9128a339c82d72e331d3532ee4 (clean) (release)
pi@rpi8gb:~ $
Last edited by drupol on Thu Mar 24, 2016 1:06 pm, edited 1 time in total.
Re: Mathematica startup crashing RDP session
OK, I've done that. Now at versionsand Mathematica is back to crashing the session at startup again
Code: Select all
pi@pi3:~ $ mathematica version
10.3
pi@pi3:~ $ xrdp version
xrdp: A Remote Desktop Protocol server.
Copyright (C) Jay Sorg 20042011
See http://xrdp.sourceforge.net for more information.
Version 0.6.1
pi@pi3:~ $ uname a
Linux pi3 4.1.19v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux
pi@pi3:~ $ vcgencmd version
Mar 15 2016 14:47:28
Copyright (c) 2012 Broadcom
version 1bf9a9a77026af9128a339c82d72e331d3532ee4 (clean) (release)
pi@pi3:~ $
Re: Mathematica startup crashing RDP session
By any chance, do you guys have the new experimental graphic drivers enabled, that is have you got in /boot/config.txt? It could cause problems if you do.
Dave.
Code: Select all
dtoverlay=vc4kmsv3d
Dave.
Re: Mathematica startup crashing RDP session
My Pi doesn't boot when I add this line. I will check tomorrow.dgordon42 wrote:By any chance, do you guys have the new experimental graphic drivers enabled, that is have you gotin /boot/config.txt? It could cause problems if you do.Code: Select all
dtoverlay=vc4kmsv3d
Dave.
Re: Mathematica startup crashing RDP session
There's no line like that in my config.txt either.
By the way, what RDP client are you using? I'm using the builtin Remote Desktop Connection client on Windows 10.
By the way, what RDP client are you using? I'm using the builtin Remote Desktop Connection client on Windows 10.
Re: Mathematica startup crashing RDP session
I'm using the built in RDP Client from both Windows 10 Pro and Windows XP Home.
Maybe it's worth tryingIt's a big package, might take a little time.
Dave.
Maybe it's worth trying
Code: Select all
sudo aptget reinstall wolframengine
Dave.
Re: Mathematica startup crashing RDP session
How do I do that? On my machine aptget doesn't have a reinstall operation......and a quick check through its help options doesn't suggest anything similar.
So all I did to my pi3 after unpacking it was
Code: Select all
pi@pi3:~ $ sudo aptget reinstall wolframengine
E: Invalid operation reinstall
So all I did to my pi3 after unpacking it was
 Connect it to HDMI screen, mouse, keyboard & ethernet, and install & boot Raspbian from NOOBS.
 Use Menu>Preferences>Raspberry Pi Configuration to change Hostname to pi3, then reboot.
Code: Select all
sudo aptget update sudo aptget install xrdp sudo aptget distupgrade
 Shutdown, disconnect everything except the ethernet cable and restart.
 Use Remote Desktop Connection from Windows 10 Pro to start a session on the pi3, and try to start Mathematica. This shows some of the normal Mathematica startup splash screen feedback, but then dumps me back to the Remote Desktop Connection start screen.
Re: Mathematica startup crashing RDP session
A Linux is not a Windows. Reinstalling won't change anything.dgordon42 wrote:I'm using the built in RDP Client from both Windows 10 Pro and Windows XP Home.
Maybe it's worth tryingIt's a big package, might take a little time.Code: Select all
sudo aptget reinstall wolframengine
Dave.
Re: Mathematica startup crashing RDP session
Sorry guys, finger trouble, should be:dgordon42 wrote:sudo aptget reinstall wolframengine
Code: Select all
sudo aptget install reinstall wolframengine
Instead of starting Mathematica from the Start Menu or an icon, try starting it by opening an LXTerminal, and typing:
Code: Select all
mathematica
Code: Select all
/usr/share/raspiuioverrides/applications/wolframmathematica.desktop
Code: Select all
[Desktop Entry]
Encoding=UTF8
Type=Application
Version=1.0
Name=Mathematica
Comment=Technical Computing System
Icon=wolframmathematica
Exec=mathematica %F
TryExec=mathematica
Terminal=False
MimeType=application/mathematica;application/vnd.wolfram.cdf;application/mathematicaplayer
Categories=Application;Development;
StartupNotify=true
This is based on this post.
Dave.