-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Font crash/issues with partial updates #642
Comments
|
Hello, how should I reproduce the problem? It's good to provide a solution, but without being able to reproduce the issue it's hard to know if this is the right fix. |
|
Sorry about that. Here's a quick UIElement that should crash if you click around on it enough. It's a label based on the PBR label that ships with Dplug, only it marks a pixel as dirty if you click on it. Also, this still crashes with my "fix", so I suppose I've only solved one specific edge case my project was running into. In my particular case I was positioning LED-style indicators using wren, and the plugin would crash if they touched a label. Edit: Updated this demonstration code to better showcase the issue (and not cause issues itself). |
|
Thanks. I'll look at it next week. |
|
Okay, this was nagging at me because my fix was working in my plugin, but not the repro class above... Apparently I just botched the repro and set the dirty rects wrong... I've updated the class above to fix that and better showcase the issue. Sorry for the bump, have a great weekend! :) |
Not sure if this is the real issue #642 or something else.
|
That fixed the crashing for me, thanks :) I improved my own fix for the garbled rendering portion of the issue, here it is for reference: |
|
Hello, I've reproduced both your issue, indeed my commit fix the first one (your solution would have worked too), and your second patch does indeed fix a bad drawing in I'll push soon something similar, or perhaps your exact patch. Thanks you very much! |
|
Hello, You can update to v12.5.1 with the fix. |
Hello,
I've been seeing crashes caused by fillText.drawCharacter() in font.d, and think I've narrowed down the cause.
it appears that surface.cropImageRef() can be called with zero area when only a section of text is redrawn.
Here's a quick fix that has solved my issue:
Also related is this function appears to garble characters when partially redrawn. The cause appears to be reading from the wrong position in the character. For reference, here is my embarrassingly hacky fix. I'm sure someone with more familiarity with Dplug surfaces could do a proper crop in a line or two:
I'm new to Dplug and it appears to be quite powerful. Thanks for all your hard work, hopefully this is helpful.
The text was updated successfully, but these errors were encountered: