<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>6615</bug_id>
          
          <creation_ts>2009-02-23 21:50:09 +0000</creation_ts>
          <short_desc>Amaya-11.1 in PowerPC crashes at initial stages.</short_desc>
          <delta_ts>2009-03-05 19:51:41 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Amaya</product>
          <component>UI</component>
          <version>11.1</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NEEDSINFO</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandre">alex_o_suzuki</reporter>
          <assigned_to name="Vatton">Irene.Vatton</assigned_to>
          <cc>carcone</cc>
    
    <cc>emilien.kia</cc>
    
    <cc>fred.wang</cc>
    
    <cc>Irene.Vatton</cc>
    
    <cc>vincent.quint</cc>
          
          <qa_contact name="Vatton">Irene.Vatton</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>23892</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandre">alex_o_suzuki</who>
    <bug_when>2009-02-23 21:50:09 +0000</bug_when>
    <thetext>I compiled amaya-11.1 in my DebianLinuxPPC 5.0.0Lenny system using local system
libraries,I did not use any of the libraries in the tarball downloaded from
amaya website.Configure and compilation with everything OK at first sight,but
when I try to run the binary for the first time it automatically crashes,saying
the following:

#me@mymachine: /usr/local/amaya/bin/amaya

08:03:01 PM: Deleted stale lock file &apos;/home/abar/.amaya_bin-abar&apos;.

(amaya_bin:12648): Gtk-CRITICAL **: gtk_widget_set_colormap: assertion `!GTK_WIDGET_REALIZED (widget)&apos; failed

I can see for 1 or 2 seconds the main amaya window before the crash.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23932</commentid>
    <comment_count>1</comment_count>
    <who name="Vatton">Irene.Vatton</who>
    <bug_when>2009-02-25 16:48:46 +0000</bug_when>
    <thetext>Could you check if following variables are set?

env XLIB_SKIP_ARGB_VISUALS=1 G_SLICE=&quot;always-malloc&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23964</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandre">alex_o_suzuki</who>
    <bug_when>2009-02-26 20:41:59 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Could you check if following variables are set?
&gt; 
&gt; env XLIB_SKIP_ARGB_VISUALS=1 G_SLICE=&quot;always-malloc&quot;
&gt; 

No.They were not.
I set them so when I do env to display my env,now they are set:
...
XLIB_SKIP_ARGB_VISUALS=1
G_SLICE=always-malloc
...

But,the problem is the same and bash displays exactly the same error message
I reported previously.My xorg.conf file is set for 16 bit color(it seems
that my graphic card under Linux does not support more),could that be
the problem?Is there a way to surpass this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23976</commentid>
    <comment_count>3</comment_count>
    <who name="Vatton">Irene.Vatton</who>
    <bug_when>2009-02-27 08:33:00 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #1)
&gt; &gt; Could you check if following variables are set?
&gt; &gt; 
&gt; &gt; env XLIB_SKIP_ARGB_VISUALS=1 G_SLICE=&quot;always-malloc&quot;
&gt; &gt; 
&gt; 
&gt; No.They were not.
&gt; I set them so when I do env to display my env,now they are set:
&gt; ...
&gt; XLIB_SKIP_ARGB_VISUALS=1
&gt; G_SLICE=always-malloc
&gt; ...
&gt; 
&gt; But,the problem is the same and bash displays exactly the same error message
&gt; I reported previously.My xorg.conf file is set for 16 bit color(it seems
&gt; that my graphic card under Linux does not support more),could that be
&gt; the problem?Is there a way to surpass this?
&gt; 

Perhaps the crash is not linked with that assertion.
I suspect more a problem with GL libs used by default.
Our distributions include static Mesa libs because several Linux libraries are buggy.
Could you test an Amaya distribution?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23983</commentid>
    <comment_count>4</comment_count>
    <who name="Alexandre">alex_o_suzuki</who>
    <bug_when>2009-02-27 22:34:29 +0000</bug_when>
    <thetext>Amaya-11.1 distribution does not have pre-compiled binaries for the LinuxPPC
architecture,so,I cannot use one of them.I will try to compile from source
using the libraries that come with amaya sources,and not with system libraries.
I tried once and I could not compile,in the make (build stage) accused error.
I will try again.

What are the options I need to pass to configure to build the amaya binary
with static mesa?

P.S. I installed amaya-10.1 from debian unstable with all necessary libraries
using the debian package management system,and surprise!!! I got exactly the
same warnings I reported with amaya-11.1.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24001</commentid>
    <comment_count>5</comment_count>
    <who name="Alexandre">alex_o_suzuki</who>
    <bug_when>2009-03-01 21:15:52 +0000</bug_when>
    <thetext>When I try to compile amaya-11.1 without using the options --enable-system-wx
--enable-system-libwww --enable-system-raptor,and using the libraries that
come with amaya sources,I get errors.

the final lines of these errors:

tnl/t_vertex_sse.c:653:error: file_XMM undeclared(first use in this function)
tnl/t_vertex_sse.c:656:warning:implicit declaration of function x86_init_func_
size
tnl/t_vertex_sse.c:659:warning:implicit declaration of function x86_release_func
make[4]:*** [tnl/t_vertex_sse.o] Error 1

So,it seems difficult without changes to the source code to compile on the
PowerPC platform with the libraries that come with amaya sources.
Using system libraries compiles easily but the problem arises at run time,
when whe try to run the binary.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24015</commentid>
    <comment_count>6</comment_count>
    <who name="Vatton">Irene.Vatton</who>
    <bug_when>2009-03-03 09:51:10 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; When I try to compile amaya-11.1 without using the options --enable-system-wx
&gt; --enable-system-libwww --enable-system-raptor,and using the libraries that
&gt; come with amaya sources,I get errors.
&gt; 
&gt; the final lines of these errors:
&gt; 
&gt; tnl/t_vertex_sse.c:653:error: file_XMM undeclared(first use in this function)
&gt; tnl/t_vertex_sse.c:656:warning:implicit declaration of function x86_init_func_
&gt; size
&gt; tnl/t_vertex_sse.c:659:warning:implicit declaration of function
&gt; x86_release_func
&gt; make[4]:*** [tnl/t_vertex_sse.o] Error 1
&gt; 
&gt; So,it seems difficult without changes to the source code to compile on the
&gt; PowerPC platform with the libraries that come with amaya sources.
&gt; Using system libraries compiles easily but the problem arises at run time,
&gt; when whe try to run the binary.
&gt; 

I never try to compile Amaya on that platform, but I suggest you keep the  --enable-system-raptor option and try to compile with other local libraries.
For Mesa, I guess you have to select the linux-ppc-static configuration as current. For that, after the untar, 
&quot;cp Mesa/configs/linux-ppc-static Mesa/configs/current&quot;

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24029</commentid>
    <comment_count>7</comment_count>
    <who name="Vatton">Irene.Vatton</who>
    <bug_when>2009-03-03 13:29:18 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; When I try to compile amaya-11.1 without using the options --enable-system-wx
&gt; --enable-system-libwww --enable-system-raptor,and using the libraries that
&gt; come with amaya sources,I get errors.
&gt; 
&gt; the final lines of these errors:
&gt; 
&gt; tnl/t_vertex_sse.c:653:error: file_XMM undeclared(first use in this function)
&gt; tnl/t_vertex_sse.c:656:warning:implicit declaration of function x86_init_func_
&gt; size
&gt; tnl/t_vertex_sse.c:659:warning:implicit declaration of function
&gt; x86_release_func
&gt; make[4]:*** [tnl/t_vertex_sse.o] Error 1
&gt; 
&gt; So,it seems difficult without changes to the source code to compile on the
&gt; PowerPC platform with the libraries that come with amaya sources.
&gt; Using system libraries compiles easily but the problem arises at run time,
&gt; when whe try to run the binary.
&gt; 

I generated for you a snapshot with a wxWidgets patch that skips the &quot;gtk_widget_set_colormap&quot; call according to new gtk2 versions.
see http://wam.inrialpes.fr/software/amaya/amaya-fullsrc-11.2-pre1.tgz

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24059</commentid>
    <comment_count>8</comment_count>
    <who name="Alexandre">alex_o_suzuki</who>
    <bug_when>2009-03-05 19:51:41 +0000</bug_when>
    <thetext>I used the patched sources indicated with the previous comment,and only used the
option --enable-system-raptor,I also used linux-ppc-static as current.
The compilation was OK and the resulting amaya binary performs OK so far,
anyway I only tested opening menus,opening dialogs,and moving around the amaya
GUI interface.I did not produce any real work,webpages etc.,yet.So far it
seems fine,and this specific problem seems solved.

Only as curiosity I also compiled with the patched sources using my previously
used options:

../configure --prefix=/usr/local/amaya --enable-system-wx --enable-system-libwww --enable-system-raptor

and even with the patched sources the resulting binary gives exactly the same
warnings I reported,and crashes after 1 or 2 seconds after displaying the main
window.Anyway,now I know the right method to get amaya compiling and working 
fine. 


                        Thanks,for the effective support.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>