Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
110 user(s) are online (78 user(s) are browsing Forums)

Members: 0
Guests: 110

more...

Headlines

 
  Register To Post  

(1) 2 »
Monitor randomly shutting off (compositing)?? [SOLVED]
Just can't stay away
Just can't stay away


See User information
I have a weird problem: When running qt apps that use compositing, sometimes my monitor randomly shuts off. It only happens when doing compositing, hasn't happened at any other time yet, and always when I run an app, that has not been thoroughly tested for bugs. I am wondering, if there is some fault mechanism in the Radeon, that makes it shut off on wrong usage??

EDIT: It doesn't seem to be a performance issue, since Hans's composite demo can run for ages without shutting down. Only (possibly) faulty Qt apps display the behavior...


Edited by alfkil on 2012/3/20 16:51:26
Edited by alfkil on 2012/3/26 17:02:28
Go to top
Re: Monitor randomly shutting off (compositing)??
Quite a regular
Quite a regular


See User information
happens here too.. but as yet I have not been able to pinpoint or narrow down the cause, so I have never mentioned it.

Go to top
Re: Monitor randomly shutting off (compositing)??
Not too shy to talk
Not too shy to talk


See User information
Maybe you must add +RB on the screenmodes in
the Radeon Monitor file

Go to top
Re: Monitor randomly shutting off (compositing)??
Home away from home
Home away from home


See User information
I've had the monitor / video card shutdown after a really nasty crash before, not often though, and not repeatably.


Go to top
Re: Monitor randomly shutting off (compositing)??
Just can't stay away
Just can't stay away


See User information
Quote:
Maybe you must add +RB on the screenmodes in
the Radeon Monitor file


Didn't solve it, no...

Quote:
I've had the monitor / video card shutdown after a really nasty crash before, not often though, and not repeatably.


It happens very consistently with this one app. I have a hard time seeing whether it is a hw or sw issue, and I have a hard time debugging the app under these conditions...

Go to top
Re: Monitor randomly shutting off (compositing)??
Just can't stay away
Just can't stay away


See User information
At least I can deduce from the debug output, that it is in fact during the call to CompositeTags, that the hangup occurs.

Go to top
Re: Monitor randomly shutting off (compositing)??
Home away from home
Home away from home


See User information
@alkfil
Sorry that not real help, but just in case of small help: brothers do not check forums , so you for sure need to try to write about in os4-invite list, as they check it and there is more luck to catch a help about.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Monitor randomly shutting off (compositing)??
Amigans Defender
Amigans Defender


See User information
or we can file a bugzilla entry.. more simply..

i'm really tired...
Go to top
Re: Monitor randomly shutting off (compositing)??
Just can't stay away
Just can't stay away


See User information
@afxgroup

Yeah, but I don't know what to write in the bug report, since I don't know what is actually causing the hangup.

Other problem: How to make IExec->DebugPrintF() output floats?? I try

float somefloat = 512.512;
IExec->DebugPrintF("f = %f\n", somefloat);

...but all I get is some wrong value or "infl" (or smth)... (I have also tried "%fl", it doesn't help).

Go to top
Re: Monitor randomly shutting off (compositing)??
Just popping in
Just popping in


See User information
alfkil wrote:

Quote:

Other problem: How to make IExec->DebugPrintF() output floats?? I try

float somefloat = 512.512;
IExec->DebugPrintF("f = %f\n", somefloat);

...but all I get is some wrong value or "infl" (or smth)... (I have also tried "%fl", it doesn't help).


I've had this problem on OS3, my suggestion is to create a wrapper function something like:
int DebugPrintDouble (const char * const str_p, const double d)
{
  
/* Get the length of the string, the size of the number before the decimal point, plus 10 for the decimal point, the fraction, the terminating NULL and the space. */
  
size_t buffer_size strlen (str_p) + ceil (log10 (d)) + 10;
  
int result 0;

  
char *buffer_p IExec -> AllocVec (buffer_sizeMEMF_ANY); 

  if (
buffer_p)
    {
       
sprintf (buffer_p"%s %.6lf"str_pd);
       
result =  IExec -> DebugPrinttF (buffer_p);
       
IExec -> FreeVec (buffer_p);
    }

  return 
result;
}


cheers

billy

Go to top
Re: Monitor randomly shutting off (compositing)??
Amigans Defender
Amigans Defender


See User information
iirc DebugPrintF use RawDoFmt and so %f seems not supported (at least reading the autodocs), but maybe i'm wrong.

i'm really tired...
Go to top
Re: Monitor randomly shutting off (compositing)??
Home away from home
Home away from home


See User information
There seems to be a bug there, (with DebugPrintF) I reported it.


Go to top
Re: Monitor randomly shutting off (compositing)??
Home away from home
Home away from home


See User information
No DebugPrintf doesn't use RawDoFmt else it would output '%f' unmodified and it clearly makes some attempt to process the float, but does it incorrectly


Go to top
Re: Monitor randomly shutting off (compositing)??
Just popping in
Just popping in


See User information
Hi

Quote:

broadblues wrote:
No DebugPrintf doesn't use RawDoFmt else it would output '%f' unmodified and it clearly makes some attempt to process the float, but does it incorrectly



Are you sure? Wouldn't the format string need to be "%%f" to print out "%f" since you'd need to escape the % as it's a reserved char.

cheers

billy

Go to top
Re: Monitor randomly shutting off (compositing)??
Just can't stay away
Just can't stay away


See User information
I had a similar problem when i used on of the app available on os4depot that Friedens developed to show the compositing. In my case, i had a switch off for some seconds and then on and it happens only when using that app and compositing.. Never understood why..

Go to top
Re: Monitor randomly shutting off (compositing)??
Home away from home
Home away from home


See User information
@all
I hope alfkil will forgive me as its he should answer about, but seems he have no time, so: he fix it already. The problem was that there is some limitations of the gfx cards (and so in compositing because of that), which mean that there is some limit of pushed triangles at one push. Alfkil limit it, and all is fine. There wasn't any checking on limits in compositing code, just because no one think that someone will try to put to compositing a lot of stuff at one push.


Edited by kas1e on 2012/3/23 13:25:29
Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Monitor randomly shutting off (compositing)??
Home away from home
Home away from home


See User information
@billyfish

Quote:

Are you sure? Wouldn't the format string need to be "%%f" to print out "%f" since you'd need to escape the % as it's a reserved char.


Would have to check about the % but I do know for certain that the 'f' is ignored by RawDoFmt so whether it outputs '%f' or just 'f' it clearly doesn't output a malformed floating point number which is what appears to happen in this case.




Go to top
Re: Monitor randomly shutting off (compositing)??
Not too shy to talk
Not too shy to talk


See User information
just a thought : are you using DVI or VGA ?

Go to top
Re: Monitor randomly shutting off (compositing)??
Just can't stay away
Just can't stay away


See User information
@Lio

I am using DVI, but it doesn't matter, problem has been solved. It happens when there is a buffer overflow, that is when you are trying to draw too many triangles in one call to CompositeTags(). Setting a buffer limit to 512 triangles does it.

Go to top
Re: Monitor randomly shutting off (compositing)?? [SOLVED]
Home away from home
Home away from home


See User information
@alfkil
I'm curious what you are using composited triangles for, but I guess we have to wait to find out? (I can't see QT needing triangles.)

Author of the PortablE programming language.
Go to top

  Register To Post
(1) 2 »

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project