Linux version 2.28c in trouble!!

General discussion about the development of the open source Blender

Moderators: jesterKing, stiv

flb_z
Posts: 20
Joined: Wed Oct 16, 2002 11:51 am

Linux version 2.28c in trouble!!

Post by flb_z »

:shock:
When i run blender 2.28c DYNAMIC VERSION i get this message:

'import site' failed; use -v for traceback
Segmentation fault

When i run blender 2.28c STATIC VERSION i get this one:

bus error

How come ???

have you test these binairy s??

PS:Yes 2.28b is working ...

Michel
Posts: 180
Joined: Wed Oct 16, 2002 7:27 pm
Location: Somewhere below the rivers in Holland (but not Limburg)

Re: Linux version 2.28c in trouble!!

Post by Michel »

Hi,

I have built the Linux binaries on a Debian box. With the previous version of Blender (2.28a), Spe could not be started from within Blender. The reason was of an incompatible (read: old) version of libpng. I had to upgrade the libpng package to a newer version.
After the upgrade, I have tested Blender on my own machine, and everything runs smooth, including starting Spe from Blender.
So, yes, I have tested the Linux binaries on my system. And, yes, they run without problems - again, on my system.
It could be that the problem is in the libpng library, other than that, I have no idea where the problem would be.

I will build new Linux binaries and let them test by Linux users who experience the same problem.

This problem has already been reported in the article on the frontpage. I will post an update there when I have something useful to say.

With regards,
Michel
You can have one of two things: Progress or Progress Reports.

SirDude
Posts: 233
Joined: Sun Oct 13, 2002 7:37 pm
Location: University of Minnesota (USA)
Contact:

Post by SirDude »

Hi flb_z,

I'm guessing the problem is an incompatibility with different
versions of libc.

Michel, what version of libc did you use, and flb_z what version does your system have?

The import site bit means you don't have python setup
correctly. Try setting PYTHONHOME and or PYTHONPATH
and that will fix that error. That won't stop blender from
running though so we need to work on the other bit.

flb_z
Posts: 20
Joined: Wed Oct 16, 2002 11:51 am

Post by flb_z »

Ok tank for ansering guy s! :D

I use python 2.2.3 and I work whit python every day, i can tell you everyting is set correctly.

May be Do i need to update for version 2.3.x latest? But like you said i dont tink this is the reason of segmentation fault...

Wath about Bus error message??? what do you think about this message?

Anyway tank you for your help if i have time I will try to compile blender by my self to see if i can find someting usefull for everyone...

Merci!

Michel
Posts: 180
Joined: Wed Oct 16, 2002 7:27 pm
Location: Somewhere below the rivers in Holland (but not Limburg)

Post by Michel »

Hi,
flb_z wrote: May be Do i need to update for version 2.3.x latest? But like you said i dont tink this is the reason of segmentation fault...
Nope, not needed. I tested blender using Python 2.2.3. No trouble with that.
flb_z wrote: Wath about Bus error message??? what do you think about this message?
This is the interesting part. I have no clue at all where this problem could come from, other than the libpng version incompatibility. This is also something that would confuse me. libpng is linked in statically, so I figured the shared library is not loaded and no trouble would occur with that. Maybe I'm wrong with that assumption.
SirDude wrote: Michel, what version of libc did you use, and flb_z what version does your system have?
I've not changed any other library on the build system besides the libpng library. The build system itself has not changed as far as I know. Maybe I should ask LarstiQ or Timothy. The glibc version used is 2.2.5.

With regards,
Michel
You can have one of two things: Progress or Progress Reports.

flb_z
Posts: 20
Joined: Wed Oct 16, 2002 11:51 am

Post by flb_z »

sorry cause i did'nt put the complete message , just realize that!

Ok i get this message whit linux 2.28c DYNAMIC VERSION :

'import site' failed; use -v for traceback
Warning: could not determine argv[0] path
Segmentation fault

For GLIBC I use GCLIB-DEVEL-2.3.1 (remember that linux versions 2.28a works for whit my system even if i use gclib 2.3.1 but !)

I thaught that GCLIB is just HEADER files for gcc ??? Tel me if i'm wrong but no matter wich version of GCLIB i Should be able to run the static version ? No?

I GET THIS MESSAGE FROM STATIC 2.28c:
Bus error

Strange?

:?:

SirDude
Posts: 233
Joined: Sun Oct 13, 2002 7:37 pm
Location: University of Minnesota (USA)
Contact:

Post by SirDude »

flb_z

what do you get when you run it through gdb?
To do this do the following
gdb blender
run -w -p 0 0 600 600
then when it gives you the error type bt
and post what it tells you.

flb_z
Posts: 20
Joined: Wed Oct 16, 2002 11:51 am

Post by flb_z »

SirDude

here's gdb word's:

/blender-2.28c-linux-glibc2.2.5-i386-static/blender": not in executable format: File truncated

:idea:

flb_z
Posts: 20
Joined: Wed Oct 16, 2002 11:51 am

Post by flb_z »

SirDude

Here is the gdb full output :

(gdb) run -w -p 0 0 600 600
Starting program: /ARK/ARC/Blender/blender-2.28c-linux-glibc2.2.5-i386/blender -w -p 0 0 600 600
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...[New Thread 16384 (LWP 15146)]
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
'import site' failed; use -v for traceback
(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 15146)]
0x0833089a in PyList_Size ()
(gdb) bt
#0 0x0833089a in PyList_Size ()
#1 0x081f543e in init_syspath ()
#2 0x081f519b in BPY_start_python ()
#3 0x0809e90e in main ()
#4 0x403577f7 in __libc_start_main () from /lib/i686/libc.so.6

dittohead
Posts: 122
Joined: Mon Oct 14, 2002 2:49 am

Post by dittohead »

I have a core dump if anyone is in need!
dittohead

stiv
Posts: 0
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Post by stiv »

Oops. Looks like an unchecked pointer reference in init_syspath. I've sent a patch to the bf-python list.

From the stacktrace, I'm guessing that this is the failure point in init_syspath:

p = PyDict_GetItemString (d, "sitedirs");
size = PyList_Size (p);

This could happen if there is no 'sitedirs' member in the site module. ( the PyImport_ImportModule call that brings in the site module is already checked for failure )

flb_z
Posts: 20
Joined: Wed Oct 16, 2002 11:51 am

Post by flb_z »

Ok this time Blender is running!
But I found that my python path was set ok!
See how i'm start it:
I make my python path point to lib/python/site-pack then blender is runing, yes! fine! But this way my python setup is not working properly because I overwrite my python env_path

Also blender stdout message is still the same as above.

I presume that blender failed to get/ask/read env path variable.

But how come blender need python site-pack or even python to run?

Very starnge version !
But in another side;
I try to render ascene whit radiosity and env map on very cool stuff! And very fast! Yuge!


:twisted: :twisted: :twisted: :roll:

dittohead
Posts: 122
Joined: Mon Oct 14, 2002 2:49 am

Post by dittohead »

Python 2.2.2, with python path set in the bashrc.

Code: Select all

$ ./blender
'import site' failed; use -v for traceback
Segmentation fault (core dumped)
I have the core dump here if anyone wants a look.

My libpng version is 1.2.5. Mandrake9.1.
dittohead

kflich
Posts: 30
Joined: Wed Oct 16, 2002 11:53 am
Location: israel

on winxp too !

Post by kflich »

i get the "import site failed" too ! on winxp ?! what does it mean ? does it have anything to do with correct setup of python ? i don't really mind cause until now i used 2.28c and encountered no problems... anyway, it bugs me. so, linux users, you are not alone ! your os is just as fucked up as windows (:

stiv
Posts: 0
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Re: on winxp too !

Post by stiv »

so, linux users, you are not alone ! your os is just as fucked up as windows (:
This is not an OS issue. It is a problem with how individual machines are set up.

Post Reply