xorg, window managers & xine.
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > xorg, window managers & xine.




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    xorg, window managers & xine.  
cashmir


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-12-06 10:51 PM


Hi all,

i'm trying to write a window manager for Xorg on linux
and i've got a few questions on that.
It is in a very premature state but i can run some programs with it.

Now, when i run xine( from a menu) it just disappears
and when started in a console, it gives :
xine-xmalloc: error-cannot allocate memory

xine runs fine under kde so, how can a windowmanager cause
that error in a program ?
( i think it can't...)

Furthermore i'm looking for some good info on xorg about
the precise tasks of a window manager
( what do ( or may ) programs expect the wm to do and so....)

Thanks for any suggestions...

cashmir





[ Post a follow-up to this message ]



    Re: xorg, window managers & xine.  
Ulrich Eckhardt


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-12-06 10:51 PM

cashmir wrote:
> i'm trying to write a window manager for Xorg on linux
> and i've got a few questions on that.

That would be one for X11 then...

> It is in a very premature state but i can run some programs with it.
>
> Now, when i run xine( from a menu) it just disappears
> and when started in a console, it gives :
> xine-xmalloc: error-cannot allocate memory
>
> xine runs fine under kde so, how can a windowmanager cause
> that error in a program ?

Get the source and debug it. Or run strace on it. If your WM reports a
bogus screen size (note: I don't know if the windowmanager can do that)
then xine might try to create a screenbuffer that is simply too large and
fail there.

> Furthermore i'm looking for some good info on xorg about
> the precise tasks of a window manager
> ( what do ( or may ) programs expect the wm to do and so....)

You'll probably find more docs when you just refer to the X11 specification
instead of one particular implementation thereof.

Uli

--
http://www.erlenstar.demon.co.uk/unix/





[ Post a follow-up to this message ]



    Re: xorg, window managers & xine.  
Scott


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-13-06 01:47 AM

cashmir wrote:

> Furthermore i'm looking for some good info on xorg about
> the precise tasks of a window manager
> ( what do ( or may ) programs expect the wm to do and so....)

http://tronche.com/gui/x/icccm/

SCoTT. 





[ Post a follow-up to this message ]



    Re: xorg, window managers & xine.  
cashmir


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-13-06 10:54 PM

Ulrich Eckhardt wrote:
> cashmir wrote:
> 
>
>
> That would be one for X11 then...

yip, that's X11.

 
>
>
> Get the source and debug it. Or run strace on it. If your WM reports a
> bogus screen size (note: I don't know if the windowmanager can do that)
> then xine might try to create a screenbuffer that is simply too large and
> fail there.

Running strace gives just the same info : malloc didn't succeed.
It isn't a bug in xine but some error of that program i wrote i guess...
i asked here because i can't understand how a windowmanager can cause
a malloc error in a program, which runs fine with all other wm.'s.
i still think it's curious...( and xine still won't run)

>
>
> You'll probably find more docs when you just refer to the X11 specificatio
n
> instead of one particular implementation thereof.
>
> Uli
>
hmmm...i used to google on " xorg " as that's what it's called;
using "X11" gives info i didn't see before...
also Scott posted a nice link.
i think i've got enough to read now...

thanks

cashmir.






[ Post a follow-up to this message ]



    Re: xorg, window managers & xine.  
cashmir


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-13-06 10:54 PM

Scott wrote:
> cashmir wrote:
> 
>
>
> http://tronche.com/gui/x/icccm/
>
> SCoTT. 

thanks a lot for that, it seems to sum up the whole bunch.
it's exactly the info i was looking for...

thanks again,

cashmir.





[ Post a follow-up to this message ]



    Re: xorg, window managers & xine.  
cashmir


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-13-06 10:54 PM

cashmir wrote:
> Ulrich Eckhardt wrote:
> 
[vbcol=seagreen]
> 
>
>
> Running strace gives just the same info : malloc didn't succeed.
> It isn't a bug in xine but some error of that program i wrote i guess...
> i asked here because i can't understand how a windowmanager can cause
> a malloc error in a program, which runs fine with all other wm.'s.
> i still think it's curious...( and xine still won't run)

well...to be complete on the xine weirdness :
It seems my program gave it a zero-width( or height or both ).
I guess in that case xine tries to allocate a zero-size memoryblock
which leads to the error.

anyways, it was working again after i made some correction there..

cheers,

cashmir.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:53 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register