The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.0.11 (Linux)
File Line Function
/global.php 783 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.0.11 (Linux)
File Line Function
/global.php 783 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(844) : eval()'d code PHP 8.0.11 (Linux)
File Line Function
/global.php(844) : eval()'d code 34 errorHandler->error
/global.php 844 eval
/showthread.php 28 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.0.11 (Linux)
File Line Function
/global.php 909 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5116 - File: inc/functions.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions.php 5116 errorHandler->error
/global.php 909 build_theme_select
/showthread.php 28 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7277 - File: inc/functions.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions.php 7277 errorHandler->error
/inc/functions.php 5136 is_member
/global.php 909 build_theme_select
/showthread.php 28 require_once
Warning [2] Undefined array key 1 - Line: 1440 - File: inc/functions.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions.php 1440 errorHandler->error
/inc/functions.php 1405 fetch_forum_permissions
/inc/functions.php 2934 forum_permissions
/showthread.php 645 build_forum_jump
Warning [2] Undefined array key "mybb" - Line: 1977 - File: inc/functions.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions.php 1977 errorHandler->error
/inc/functions_indicators.php 41 my_set_array_cookie
/showthread.php 653 mark_thread_read
Warning [2] Undefined property: MyLanguage::$ratings_update_error - Line: 5 - File: showthread.php(756) : eval()'d code PHP 8.0.11 (Linux)
File Line Function
/showthread.php(756) : eval()'d code 5 errorHandler->error
/showthread.php 756 eval
Warning [2] Undefined array key "additionalgroups" - Line: 7277 - File: inc/functions.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions.php 7277 errorHandler->error
/inc/functions_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 662 - File: inc/functions_post.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php 662 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showimages" - Line: 743 - File: inc/functions_post.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php 743 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 748 - File: inc/functions_post.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php 748 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "additionalgroups" - Line: 7277 - File: inc/functions.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions.php 7277 errorHandler->error
/inc/functions_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 662 - File: inc/functions_post.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php 662 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showimages" - Line: 743 - File: inc/functions_post.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php 743 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 748 - File: inc/functions_post.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php 748 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "additionalgroups" - Line: 7277 - File: inc/functions.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions.php 7277 errorHandler->error
/inc/functions_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 662 - File: inc/functions_post.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php 662 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showimages" - Line: 743 - File: inc/functions_post.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php 743 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 748 - File: inc/functions_post.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php 748 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "additionalgroups" - Line: 7277 - File: inc/functions.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions.php 7277 errorHandler->error
/inc/functions_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 662 - File: inc/functions_post.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php 662 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showimages" - Line: 743 - File: inc/functions_post.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php 743 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 748 - File: inc/functions_post.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php 748 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 662 - File: inc/functions_post.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php 662 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showimages" - Line: 743 - File: inc/functions_post.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php 743 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 748 - File: inc/functions_post.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php 748 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "useravatar" - Line: 6 - File: inc/functions_post.php(873) : eval()'d code PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php(873) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 873 eval
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "userstars" - Line: 11 - File: inc/functions_post.php(873) : eval()'d code PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php(873) : eval()'d code 11 errorHandler->error
/inc/functions_post.php 873 eval
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "additionalgroups" - Line: 7277 - File: inc/functions.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions.php 7277 errorHandler->error
/inc/functions_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 662 - File: inc/functions_post.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php 662 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showimages" - Line: 743 - File: inc/functions_post.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php 743 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 748 - File: inc/functions_post.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php 748 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 662 - File: inc/functions_post.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php 662 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showimages" - Line: 743 - File: inc/functions_post.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php 743 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 748 - File: inc/functions_post.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php 748 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "useravatar" - Line: 6 - File: inc/functions_post.php(873) : eval()'d code PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php(873) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 873 eval
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "userstars" - Line: 11 - File: inc/functions_post.php(873) : eval()'d code PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php(873) : eval()'d code 11 errorHandler->error
/inc/functions_post.php 873 eval
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "additionalgroups" - Line: 7277 - File: inc/functions.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions.php 7277 errorHandler->error
/inc/functions_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 662 - File: inc/functions_post.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php 662 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showimages" - Line: 743 - File: inc/functions_post.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php 743 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 748 - File: inc/functions_post.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php 748 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "additionalgroups" - Line: 7277 - File: inc/functions.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions.php 7277 errorHandler->error
/inc/functions_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 662 - File: inc/functions_post.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php 662 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showimages" - Line: 743 - File: inc/functions_post.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php 743 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 748 - File: inc/functions_post.php PHP 8.0.11 (Linux)
File Line Function
/inc/functions_post.php 748 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "invisible" - Line: 1534 - File: showthread.php PHP 8.0.11 (Linux)
File Line Function
/showthread.php 1534 errorHandler->error
Warning [2] Undefined variable $threadnotesbox - Line: 30 - File: showthread.php(1561) : eval()'d code PHP 8.0.11 (Linux)
File Line Function
/showthread.php(1561) : eval()'d code 30 errorHandler->error
/showthread.php 1561 eval
Warning [2] Undefined variable $addremovesubscription - Line: 79 - File: showthread.php(1561) : eval()'d code PHP 8.0.11 (Linux)
File Line Function
/showthread.php(1561) : eval()'d code 79 errorHandler->error
/showthread.php 1561 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is redraw working properly?
#1
The result of this code is a black screen:

Code:
set window 10, 10, 256, 256
set redraw off
for x = 0 to 255
    for y = 0 to 255
        set color x, y, 255 - x
        set pixel x, y
    next
next
redraw
wait keydown

To make it work I need to add wait 100 just before redraw. Should it work like that or is it something wrong? Notice, that wait 10 doesn't make it work properly.
Reply
#2
(02-04-2018, 09:41 PM)Tomaaz Wrote: The result of this code is a black screen:

Code:
set window 10, 10, 256, 256
set redraw off
for x = 0 to 255
    for y = 0 to 255
        set color x, y, 255 - x
        set pixel x, y
    next
next
redraw
wait keydown

To make it work I need to add wait 100 just before redraw. Should it work like that or is it something wrong? Notice, that wait 10 doesn't make it work properly.

I wonder if this may be computer related as the above code works correctly without modification on both my Windows and Linux laptops. Both laptops are over 5 years old, and therefore slower than some newer hardware. I do not have anything newer to try the code on unfortunately. Regards - Kevin.
Reply
#3
(02-05-2018, 06:51 AM)kcfb Wrote:
(02-04-2018, 09:41 PM)Tomaaz Wrote: The result of this code is a black screen:

Code:
set window 10, 10, 256, 256
set redraw off
for x = 0 to 255
    for y = 0 to 255
        set color x, y, 255 - x
        set pixel x, y
    next
next
redraw
wait keydown

To make it work I need to add wait 100 just before redraw. Should it work like that or is it something wrong? Notice, that wait 10 doesn't make it work properly.

I wonder if this may be computer related as the above code works correctly without modification on both my Windows and Linux laptops. Both laptops are over 5 years old, and therefore slower than some newer hardware. I do not have anything newer to try the code on unfortunately. Regards - Kevin.

I've seen that behaviour too. On Windows, the content of the window seems to be preserved (by Windows), but on Linux it's not. Even when the code above does work on Linux, if you move another window in front of your running program the content will be gone when you bring the program back to front.

I think what you see is related to that. Maybe there's some delay before the window actually shows and its initial content never gets a chance to be seen.

In a game loop, this is of course not a problem, because you update the window 60 times or so every second.

Maybe I can fix this by blitting the backbuffer to the window every now and then during 'wait' and 'wait keydown', but I'm pretty sure there might be some bad side effects since it's not the expected behaviour.

Gonna have to think some more about this Smile
Reply
#4
I'm pretty sure it's something that happens only in case of very specific code and is easy to avoid. So, no big deal. Just wanted to make sure that everyone is aware of that. Wink And yes - I'm pretty sure too that it may behave differently on different Linux distributions.
Reply
#5
I run with Linux Mint (64 bit quad core) and I too received a "black" screen but the wait 100 fixed it... Cool image!

J
Reply
#6
I run Ubuntu 64bits 16.04 and no modifications needed, the code runs fine without the wait command.
Reply
#7
I wonder why the difference? After all Mint as based on Ubuntu... Weird huh?
Reply
#8
Different versions of the kernel and different desktop environments make the difference, IMO.
Reply
#9
A bit of archaeology here.  Big Grin  On 64bit Solus it work without problems.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)