exbin / bined-intellij-plugin

Hex viewer/editor plugin for JetBrains IntelliJ platform
https://bined.exbin.org/intellij-plugin
Apache License 2.0
60 stars 9 forks source link

Flickering #38

Closed Znunu closed 2 years ago

Znunu commented 3 years ago

The block with the raw bytes isn't transparent and doesn't show my background, unlike everything else on my pycharm IDE. To make it worse, whenever I click on something anywhere (doesn't have to be somewhere within the plugin) or even just unfocus the window then the background briefly appears, before going away again. The end result is almost like a flash. It's really unpleasant and distracting. I tried tinkering with theme profiles but it didn't help.

hajdam commented 3 years ago

Hi. I'm not sure if I understand. Could you provide screenshot or information about what special background or plugin are you using and your platform? (Win/Mac/Linux?)

Znunu commented 3 years ago

Thanks for looking into my problem

My OS is Windows 10 I am using the built in background image feature image I have attached an recording

https://user-images.githubusercontent.com/61394004/129462059-556e88a5-be95-4543-b6c9-1bb04f462464.mp4

hajdam commented 3 years ago

It seems, that IntelliJ platform uses special components for it's editors to propagate background images and attempts to do that for regular swing components at least partially as well.

I tried some experimental workaround, but it doesn't work all the time. Hopefully at least code area should flicker less with it...

If you want, you can try current development build, although there are some known issues with editing and many more untested bugs as it is work-in-progress... https://bined.exbin.org/download/?bined-intellij-plugin.zip

Not sure I'll be able to do much more about this issue. Maybe I'll try to investigate around more before next release :-/

Znunu commented 3 years ago

Thank you so much for taking your time to look into this!

Definitely often see the background break in pycharm, even sometimes without plugins. Anyway, I tried it and it works great! The background shows and everything blends seamlessly. Everything looks great now. image You said it doesn't work all the time. It has worked for me until now..... but maybe I've got lucky?

However confused about something else. If I enter the settings screen and press apply or save (without changing any settings), the layout changes. When I reopen the tab, I'm back to the initial layout. I'm guessing this is one of those issues you mentioned?

Thank you again for working on this project. Hex editor seems like an essential thing to have in your IDE.

hajdam commented 3 years ago

Well, it doesn't work all the time in values panel on the right side, bottom status panel and search toolbar. But it doesn't flicker there much at least...

As for saving, it seems that there is currently bug, that font is not applied when new tab is opened, therefore when saved, font will change. There might be other issues, but I didn't notice them...

As for hex editor in IDE, it's easy to use external hex editor with much more capabilities. Also not many developers need to look into binary data these days anyway. For me primary need for this plugin was to show debug fields as binary data.

hajdam commented 3 years ago

Font issue is hopefully fixed in current development build.

Znunu commented 3 years ago

Thanks! Yes, it fixed the font issue! Everything works here. There are some exceptions, but they don't really seem to cause any problems?

You can close this issue if you want

hajdam commented 3 years ago

If you think there are some exceptions related to the plugin, you can include it here... I didn't notice any at my short testing.

Znunu commented 3 years ago

I'm not sure. It says Exception in plugin Bin-Ed. There were four. Unfortunately I'm not sure what I did when I got them, but I'll pay close attention in case I get some again.

1.txt java.lang.StackOverflowError 2.txt java.lang.StackOverflowError 3.txt java.lang.StackOverflowError 4.txt java.lang.ClassCastException

hajdam commented 3 years ago

Thanks. It all seems to be related :-/ I'll try to fix it...

Znunu commented 3 years ago

good luck

hajdam commented 3 years ago

Tried to fix some of the issues in current dev build, but I was not able to reproduce stack overflows... :-/

Would be glad if you could provide information about what type/size of file were you working with and what operations did you do...

Znunu commented 3 years ago

I tired reproducing them again, but really couldn't. Maybe it's nothing Glad that you fixed the other errors though

hajdam commented 2 years ago

Should be fixed in version 0.2.5.