Code area not displaying

This happens randomly and with random Window/Editor selections. It’s making me nuts! Is there a solution or does anyone else have this happen?

sometimes you can force it to refresh by resizing the window
or by clicking a different item then going back to that one

some month ago at my notebook it was missing hardware acceleration (amd graphics) for apps after updates.
the window was very incomplete, not randomly, just after start the ide.
as side effect i had green videos at web.

i had only 2 options,
a enviroment variable for software rendering, means everything is slow in the ide.
or disable one of the 2 onboard graphics devices. (i really need to disable the faster one, no joke, bios allowed only both or the slower one^^)
amd made at my mother board a very stupid combinartion which made trouble since i purchased this notebook.
i hope your issue is something else :wink:

do you use a real pc or maybe a vm ware?

Sorry for the delay. I only use VMWare to run Windows when I need it for class assignments, otherwise I am a Linux native all the way… have been since 1999. The last 10 years I have been on laptops so that could be the problem? My lifestyle prevents a full blown PC (I live off grid, so power is a precious commodity).

I got the system I have now specifically for it’s power / specs.

OS: Linux Mint 19.3 Tricia x86_64
Kernel: 5.4.0-42-generic
Uptime: 15 days, 3 hours, 23 mins
Shell: bash 4.4.20
Resolution: 1920x1080
DE: Cinnamon 4.4.8
WM: Mutter (Muffin)
Terminal: gnome-terminal
CPU: Intel i7-8750H (12) @ 4.100GHz
GPU: Intel Integrated Graphics
GPU: NVIDIA GeForce GTX 1050 Mobile
Memory: 2846MiB / 31958MiB

Occasionally get something similar here with macOS, where it doesn’t show the currently selected code. Only been happening since macOS 10.14 and wasn’t cleared up when I did a clean install of macOS 10.15.

I haven’t noticed it in OSX, but on a freshly installed Linux Mint 20 with all drivers it happens intermittently. Not just Code windows but sub windows as well (where it’s just the Xojo (or part thereof) Logo).

Yes, a quick resize and it’s back. Annoying.

It is as if the first paint is processed and the window THEN resized and not repainted when displayed???

If you find a real solution be sure to post it up for the rest of us :slight_smile:

1 Like

can you test with your vm and windows what happens if you set this user enviroment variable with any value.
(not for permanent use)

XOJO_D2D_SOFTWARE_RENDERING

for linux i have no idea.

I’ve had a similar problem on just about every version of Xojo I’ve ever used on my Mac. My Mac has ran different versions of macOS over the years (10.8 - 10.11) so it doesn’t seem to be OS version specific.

My gut feeling is it is related to resizing the info / search panel at the bottom. Resizing the window seems to fix it temporarily but it comes back. I think you might have to create a new IDE tab to really fix it.

1 Like

[quote=“John_McDonald, post:4, topic:55410”]
Uptime : 15 days, 3 hours, 23 mins[/quote]

It is really up to you to never (NEVER ? really ?) reboot your computer, but do not be surprised by side effects (collateral damages).

Just try to quit everything, power shut down, drink a cup of tea or coffee or… and Power On the computer.

1 Like

I am a basterd step child in the computing world… other than when I am attending classes in college (working on my BS is CIS) I don’t ever use Windows… haven’t since 1999. Just find the whole environment sloppy and ill conceived. And while Apple has some really nice gear and clean apps… comes down to dinero, I am rather tight with my wallet. Hence why I am writing my own POS app for the business… Don’t like paying someone else to create what I didn’t ask for and that doesn’t meet all my requirements. And the current POS we are using… until I finish this one (real soon now) doesn’t meet our needs and the amount of additional work required to get it where we need it… yeah, in a better economy maybe… but not now.

So for the interim I will bash through the various problems. I figured I couldn’t be alone in this minor irritation (generally I just fire up Kate and copy the code in, make changes then run).

One thing I enjoy about Linux is the lack of need to reboot. I have a cron job that runs at night

sync; echo 3 > /proc/sys/vm/drop_caches
swapoff -a && swapon -a

And that frees up system resources and flushes out any residual crap. All my Linux boxes are set up with this. The work system (one I use for running an iteration of my time keeper and inventory database plus other stuff) has been running since 24 April 2020. Works fine.

This is one reason I enjoy using Linux, I don’t have to reboot to fix a problem. When I was working at UCSC I had an OpenSuSE Linux system there that would run two years straight before I would reboot and that was due to upgrading of the OS. It was my primary desktop and development system for campus wide utilities tracking, billing and reporting. Used the same method of keeping it fresh. So far I have been pretty lucky in that I haven’t suffered very many hardware issues, then again I am pretty selective about the hardware.

If you are happy with that, it is OK for me too.

You can eventually reboot your computer if no solution will be found.

Memory : 2846MiB / 31958MiB
2846MiB of free memory ?

You may left some resources eater running applications and check what can change.

I suppose the boot SSD have many MBs of free space (> 50MB).

PS: nice computer specs.

That said, some people dies because of smoking cigarettes before 60 y/o, some at 99 y/o for other causes (and they smoked cigarettes all along their life). We are not really equal, but this is nature laws, not computer.

1 Like

Seriously, I need to check my CCTV and make sure this is not one of my other personalities that I haven’t identified yet.

(meaning: damn, I really thought I wrote that! I hear everything you’ve said there. I call myself “the cooler” because everything I touch breaks/goes wrong! No-one else does it right or will give it the heart and commitment that you do. I haven’t used windows since XP, went to Apple* and eventually Linux for similar ideologies. The reason I purchased Xojo is to write my own POS because I’m just not happy with what’s out there, the level of support you don’t get and (at any rate) it’s farmed overseas, reports not being what you’re exactly after, etc.)

My point: I had a bit of a chuckle reading this :slight_smile:

* Still using a MBP on an almost daily basis, but Apple have just obsoleted my MBP with the latest OS, and I won’t be updating :confused:

1 Like

This used to be the case with the macOS too. I once had a system with an uptime of over 9 months (back in 10.4.11). Nowadays rebooting every 10 ~ 14 days reduces things going wonky.

There’s several issues with macOS 10.14 which only occur after 14 days or so :frowning: Which includes strange things like exporting an image goes solid black or being locked out the temporary directory because Apple’s own atomic saving API leaves behind blank folders.

I would have more memory available but I have Firefox open with anywhere from 20 to 40 tabs, Xojo, SQLite, a couple of spreadsheets and documents and sometimes I’ll have a game I’ll pause in the background when I have an ah-ha moment. But I built this system to have some hootzpah as I wanted to play a few games on Steam, write various programs and I felt I deserved to finally have a nice 17" laptop! That and having the extra CPU/RAM is really nice when running VM’s.

I happen to get weird issues like:
Go from a method to another method inside the navigator then it seems to show the old method code overlayed over the new selected method code.

Probably has something to withaving mutliple xojo projects open (memory?) when i have single project open this never seems to happen.
Edit only on macOS (catalina) this happens

If the switch doesnt refresh the entire area and so old code seems to still be showing

Entirely possible since its a text input canvas

1 Like

Is this happening when you resize the window and/or resize the vm’s resolution or is it just happening in general use of the ide?

I’ve seen this weird not refreshing the whole area on macOS as well

1 Like