#19238: Drawing a very long dotted or dashed line causes a crash of the entire
operating system
---------------------+-------------------
Reporter: Dummy | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: wxMSW | Version: 3.1.5
Resolution: | Keywords:
Blocked By: | Blocking:
Patch: 0 |
---------------------+-------------------
Comment (by Dummy):
Replying to [comment:5 pb101]:
> Perhaps there could be a static method like
`wxPen::SetDefaultPenQuality()`, which would set the default quality for
new pens to be created but I guess this would not be accepted nor that it
would help your (and similar) case.
That would be a general solution that definitely would help to solve
problems like in my case.
Of course, thicker lines (> 1 pixel) would still be a potential problem
with this approach (as it always has been).
But in my case such potential problem is more a theoretical one.
Until before the update to a newer wxWidgets version, no user had
complained about such problems.
So in my case the drawing of the page bounding boxes seems to be the only
real problem in practice.
Replying to [comment:6 vadz]:
> We could indeed add `SetDefaultDottedPenQuality()`, but it would be a
last resort solution because it's rather ugly to have global switches like
this.
It's not just with dotted lines, also dashed lines. Probably with all non-
solid lines.
> Maybe we could switch to the cosmetic pens automatically for lines
longer than 10000 pixels or something like this, if this is enough to
solve the problem?
It's not just with single lines. Also with polylines, polygons,
rectangles, … maybe generally when drawing large shapes with a geometric
pens.
> Finally, if you can narrow down the problem to a specific driver or,
better, specific driver version, I'd consider checking for this driver on
program startup and give an error telling people about this bug and asking
them to upgrade the driver (I do something similar in my own code for ODBC
drivers -- some of them are just too buggy to be used...).
I don’t think it is a driver issue. Maybe the crash of Windows 7 in a
virtual machine.
But on several computers with Windows 10 (with different graphic cards and
drivers) the entire operating system hangs for one or two minutes.
Drawing large shapes with a geometric pen seems generally be horrible slow
even if only a tiny part is really visible on the screen.
--
Ticket URL: <
https://trac.wxwidgets.org/ticket/19238#comment:7>