-
-
Notifications
You must be signed in to change notification settings - Fork 411
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
Crash when using dxDrawText with very long strings #288
Comments
Ohh, yeah, and which crash dump should I post? |
Actually, I suppose what caused the issue was that I constantly made my text bigger, so the text always got bigger(every 1s) with ^2 of its size. |
Can you clear your dump folder, reproduce this crash, and then upload the
dump and send us a link to upload.mtasa.com.
If you can also do this for the other issue you've reported (#287) that
would be great. Thanks.
…On Thu, 2 Aug 2018 at 14:03, Pirulax ***@***.***> wrote:
Ohh, yeah, and which crash dump should I post?
Because I have a few here.
I mean should I post only dumps/public, or I can post dumps/private too?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#288 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA4WamLMS5V2EnkJWaD8yq043c0yYhQ4ks5uMviCgaJpZM4VsPVe>
.
|
please send both public and private in a zip, thanks
…On Thu, 2 Aug 2018 at 14:10, Qais Patankar ***@***.***> wrote:
Can you clear your dump folder, reproduce this crash, and then upload the
dump and send us a link to upload.mtasa.com.
If you can also do this for the other issue you've reported (#287) that
would be great. Thanks.
On Thu, 2 Aug 2018 at 14:03, Pirulax ***@***.***> wrote:
> Ohh, yeah, and which crash dump should I post?
> Because I have a few here.
> I mean should I post only dumps/public, or I can post dumps/private too?
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#288 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AA4WamLMS5V2EnkJWaD8yq043c0yYhQ4ks5uMviCgaJpZM4VsPVe>
> .
>
|
As far as I know ID3DXFont::DrawText is designed to rasterize a text on top of RT. If that is the case, the reason is pretty clear. DirectX 9 is limited to up to 4096x4096 pixels for texture sizes. When you are trying to draw a text that far exceeds that limit you happen to be in area where anything could happen. Well, I wouldn't call it 'a bug'. The only visible way in there is to check if a text is big enough and clamp it if needed. |
Probably related to and can be resolved along with #287 |
Describe the bug
So, I made a stat resource, which displays stats, with, you nailed it: dxDrawText+dxDrawRectangle(bg)
To Reproduce
Steps to reproduce the behavior:
MTA Client (please complete the following information):
MTA Server (please complete the following information):
The text was updated successfully, but these errors were encountered: