Page 1 of 1

crash on ubuntu

PostPosted: Sat Mar 02, 2013 11:09
by legumev
This is an old laptop and anything more recent than .3.1 slows down to a crawl.
3.1 used to work fine, but I did something wrong trying other versions and now, I can't get back to 3.1 working.

i am on Ubuntu 12.04
installed Minetest using synaptic manager
some clue to the crash:

"minetest crashed with SIGSEGV in vtable for irr::core::irrAllocator......"

"executing non-writable VMA/usr/games/minetest
reading unknown VMA"

suggestions?

PostPosted: Sat Mar 02, 2013 11:15
by kaeza
Try to move/rename your ~/.minetest directory to reset all settings.
Move world to new dir if necessary.

PostPosted: Sat Mar 02, 2013 11:21
by legumev
I tried to delete all minetest related files and directories and reinstall, but obviously, I missed some.

I first completely removed the package with synaptic, then did a search for "minetest" and removed:
/usr/share/app-install/desktop/minetest
/usr/share/app-install/icons/minetest
/var/cache/apt/archives/minetest..

Can you suggest where else I go look for other minetest related stuff?

Thanks

PostPosted: Sat Mar 02, 2013 11:54
by Calinou
Try compiling it yourself:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
sudo apt-get install build-essential libirrlicht-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev
git clone https://github.com/minetest/minetest.git
cd minetest
git checkout stable-0.3
cmake .
cd src
make -j2
cd ../bin
./minetest


This downloads, compiles and runs Minetest. Just open a terminal and paste the whole code block (it'll do the commands in the right order just fine).

PostPosted: Sat Mar 02, 2013 12:53
by legumev
Calinou: so far, so good, if slow.

Thanks a lot

PostPosted: Sat Mar 02, 2013 13:03
by legumev
On a second try, it crashes again.

Here is some terminal log info, can you make sense of it:

bruno@ubuntu:~/minetest/bin$ git clone https://github.com/minetest/minetest.git
fatal: destination path 'minetest' already exists and is not an empty directory.
bruno@ubuntu:~/minetest/bin$ cd minetest
bash: cd: minetest: Not a directory
bruno@ubuntu:~/minetest/bin$ git checkout stable-0.3
Already on 'stable-0.3'
bruno@ubuntu:~/minetest/bin$ cmake .
CMake Error: The source directory "/home/bruno/minetest/bin" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
bruno@ubuntu:~/minetest/bin$ cd src
bash: cd: src: No such file or directory
bruno@ubuntu:~/minetest/bin$ make -j2
make: *** No targets specified and no makefile found. Stop.
bruno@ubuntu:~/minetest/bin$ cd ../bin
bruno@ubuntu:~/minetest/bin$ ./minetest
signal_handler_init()
Using system-wide paths (NOT RUN_IN_PLACE)
WARNING: data path /home/bruno/minetest/bin/../share/minetest not found! Trying /home/bruno/minetest/bin/../data
path_data = /home/bruno/minetest/bin/../data
path_userdata = /home/bruno/.minetest
Debug streams initialized, disable_stderr=0
13:51:00: ACTION[main]: minetest with SER_FMT_VER_HIGHEST=20, VER=0.3.2 RUN_IN_PLACE=0 USE_GETTEXT=0 INSTALL_PREFIX=/usr/local BUILD_TYPE=Release
INFO: Initial run of init_mapnode with g_texturesource=NULL. If this segfaults, there is a bug with something not checking for the NULL value.
Irrlicht Engine version 1.7.2
Linux 3.2.0-38-generic-pae #61-Ubuntu SMP Tue Feb 19 12:39:51 UTC 2013 i686
Creating X window...
Visual chosen: : 39
Using renderer: OpenGL 2.1.2
GeForce Go 6600/PCIe/SSE2: NVIDIA Corporation
OpenGL driver version is 1.2 or better.
GLSL version: 1.2
INFO: Full run of init_mapnode with g_texturesource!=NULL
Unsupported texture format
Loaded texture: /home/bruno/minetest/data/mud.png
Loaded texture: /home/bruno/minetest/data/menulogo.png
locale has been set to:en_US.UTF-8
locale has been set to:C
locale has been set to:en_US.UTF-8
locale has been set to:C
locale has been set to:en_US.UTF-8
locale has been set to:C
INFO: Full run of init_mapnode with g_texturesource!=NULL
AuthManager: loading from /home/bruno/.minetest/world/auth.txt
BanManager: loading from /home/bruno/.minetest/world/ipban.txt
BanManager: failed loading from /home/bruno/.minetest/world/ipban.txt
WARNING: BanManager: creating /home/bruno/.minetest/world/ipban.txt
13:51:10: ACTION[ServerThread]: cat joins game. List of players: cat
Loaded texture: /home/bruno/minetest/data/skybox1.png
Loaded texture: /home/bruno/minetest/data/skybox3.png
Loaded texture: /home/bruno/minetest/data/skybox2.png
Clouds::Clouds(irr::scene::ISceneNode*, irr::scene::ISceneManager*, irr::s32, float, irr::u32)
locale has been set to:en_US.UTF-8
locale has been set to:C
Loaded texture: /home/bruno/minetest/data/heart.png
GUIPauseMenu: Not allowing focus change.
AuthManager: saving to /home/bruno/.minetest/world/auth.txt
locale has been set to:en_US.UTF-8
locale has been set to:C
BanManager: saving to /home/bruno/.minetest/world/ipban.txt
AuthManager: saving to /home/bruno/.minetest/world/auth.txt
virtual Clouds::~Clouds()
bruno@ubuntu:~/minetest/bin$

PostPosted: Sat Mar 02, 2013 16:50
by Calinou
You already had a directory named "minetest" in your home directory, the game didn't download and compile. Rename it then try again. ;)

PostPosted: Sat Mar 02, 2013 21:20
by legumev
Calinou wrote:You already had a directory named "minetest" in your home directory, the game didn't download and compile. Rename it then try again. ;)



I don't know where it was hiding, because I did a system wide search for minetest and found nothing before using your terminal script. I will look further when I get back to that computer.

Thank you for responding.

PostPosted: Sat Mar 02, 2013 23:21
by 0gb.us
Go into you file manager, and tell it to quit hiding files and directories from you.

Also, the directory is called ".minetest", if that helps.

PostPosted: Sun Mar 03, 2013 11:29
by legumev
0gb.us wrote:Go into you file manager, and tell it to quit hiding files and directories from you.

Also, the directory is called ".minetest", if that helps.



You are right, Ogb, I now know to do that and it is saving me a lot of time.

I just need another tip to give myself quick permission to delete or edit system files without the painfully slow "sudo rm" command in terminal. (I am not more linux savy than the minimum to use Ubuntu)

PostPosted: Sun Mar 03, 2013 12:29
by kaeza
Giving yourself permission to edit system-critical files is bad for security.
If you do that, then any program you run is capable of edit such files (what would happen if you allowed a trojan to edit/access such files?)

PostPosted: Sun Mar 03, 2013 12:30
by Calinou
You shouldn't remove system files unless you know what you're doing. :P

PostPosted: Sun Mar 03, 2013 13:46
by legumev
and I shouldn't play minetest until it is a stable released game ?

seriously: all I wanted to do the other day, was remove all minetest files and folders (some had been left even after "complete package removal") to do a clean new installation. I failed anyway because I had missed the hidden files. I'll try again when I get back to that laptop in a few days.


Calinou wrote:You shouldn't remove system files unless you know what you're doing. :P

PostPosted: Sun Mar 03, 2013 15:43
by Calinou
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
sudo apt-get purge minetest
removes the Minetest package, including configuration files and user data (this includes your worlds).

PostPosted: Sun Mar 03, 2013 15:51
by legumev
Calinou wrote:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
sudo apt-get purge minetest
removes the Minetest package, including configuration files and user data (this includes your worlds).


Thanks a lot, Calinou