Bug 54357 - Incorrectly drawing in Autocad 2004
Summary: Incorrectly drawing in Autocad 2004
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: 7.7 (2012.06)
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Chris Wilson
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-01 18:10 UTC by Deve
Modified: 2014-02-13 12:36 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Video file with SNA mode (1.15 MB, video/ogg)
2012-09-01 18:10 UTC, Deve
no flags Details
Video file with UXA mode, where works OK (618.35 KB, video/ogg)
2012-09-01 18:11 UTC, Deve
no flags Details
xdm.log (606.89 KB, application/x-bzip)
2012-09-01 21:41 UTC, Deve
no flags Details
Xorg.0.log (2.08 MB, application/x-7z-compressed)
2012-09-02 08:52 UTC, Deve
no flags Details

Description Deve 2012-09-01 18:10:28 UTC
Created attachment 66456 [details]
Video file with SNA mode

In attachment video files. I currently can't restart X and change to debug mode, so logs I will send later.

Dotted lines vanishes if you don't move a mouse. Continuous line is not correctly too. If you move a mouse, some parts of line are higher than others - vertical sync? It's not shown on video.

Autocad 2004, run on wine
wine 1.4.1
intel 2.20.5
mesa 7.12.2
kernel 3.5.2
Comment 1 Deve 2012-09-01 18:11:32 UTC
Created attachment 66457 [details]
Video file with UXA mode, where works OK
Comment 2 Deve 2012-09-01 18:56:15 UTC
When I want to run Autcad on drivers compiled with debug-mode, X crashes. So I don't have any logs.
Comment 3 Chris Wilson 2012-09-01 19:18:52 UTC
Look harder, in particular look on xdm.log, gdm.log or kdm.log where stderr is logged and the assertion captured.

But considering that you are hitting miZeroDash, this should be an issue in the core xserver drawing code.
Comment 4 Deve 2012-09-01 21:41:24 UTC
You can look for logs from crash and tell me why it crashes. It's not possible now to create real log, because X crashes in the same moment, when Autocad starts.

Crashes only debug version. No-debug is OK of course.

I compile it with:
./configure --prefix=/usr --enable-debug=full. 
Dependencies from debian repos: 
apt-get build-dep xserver-xorg-video-intel.
Comment 5 Deve 2012-09-01 21:41:56 UTC
Created attachment 66466 [details]
xdm.log
Comment 6 Chris Wilson 2012-09-01 22:58:10 UTC
You are hitting the assertion fixed in 

commit 71ac12e9b6ed00c28993637aafd5186a2ba26256
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Mon Aug 27 15:49:59 2012 +0100

    sna: Assert that the bo is marked as 'flush' when exported to DRI clients
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Comment 7 Deve 2012-09-02 08:47:03 UTC
Thank you for your suggestion.

Problem is with disapperance dotted lines used to select objects, when I don't move mouse. I see it only when mouse is on move. On video you don't see dotted line at all.

Other matter is leave non-refreshed screen - you can see dotted lines there, where they shouldn't be. But it is more rarely. Now, when I create log, I didn't have this problem.
Comment 8 Deve 2012-09-02 08:52:32 UTC
Created attachment 66484 [details]
Xorg.0.log
Comment 9 Deve 2012-12-05 18:26:41 UTC
I'm not sure if you understend problem, so I recorded video using external camera. It looks better.

Video file with SNA acceleration enabled:
http://www.youtube.com/watch?v=8C_DqIqPMv4&feature=youtu.be

Dashed lines which are using to selecting objects flicker. If you don't move mouse cursor, you don't see them. 

I don't have this problem in UXA acceleration. There everything is OK.


Current not working configuration:
xserver-xorg-video-intel 2.20.15
mesa 9.0.1
linux-image 3.6.9
libdrm 2.4.40
wine 1.4.1
Comment 10 Chris Wilson 2012-12-05 18:45:20 UTC
Ah, I thought you had a bug in the dashing code. That looks more like the broken gen4 GPU...
Comment 11 Chris Wilson 2012-12-12 16:16:24 UTC
Presuming this is then the same underlying cause as the GPU inconsistencies being tracked by 55500.

*** This bug has been marked as a duplicate of bug 55500 ***
Comment 12 Deve 2014-01-10 09:21:55 UTC
Not really duplicate of #55500.

Few days ago I noticed this issue on ivy bridge HD4000.

Currently I'm not really sure about dashed lines - I must check it. But cursor certainly disappeared during objects selection.

Ubuntu 13.10 + xserver-xorg-video-intel 2.99.907
Comment 13 Chris Wilson 2014-01-10 09:45:06 UTC
The cursor always disappears, in both the UXA and SNA videos. Isn't that expected?
Comment 14 Deve 2014-01-10 09:55:40 UTC
That's true, this may be expected. I'm used to DraftSight which shows cursor always ;)

I will check it more carefully in the evening.
Comment 15 Deve 2014-01-11 10:22:56 UTC
I can confirm - I don't see dashed lines while object selection at all. They don't even flicker.
Comment 16 Chris Wilson 2014-01-11 12:08:57 UTC
To put it succinctly: what do I need to fix?
Comment 17 Deve 2014-01-11 14:58:48 UTC
In short - when you select objects in autocad you should see dashed lines which show area of selection. But they aren't visible.

Everything other is ok, including mouse cursor.
Comment 18 Chris Wilson 2014-02-01 09:24:26 UTC
Found a bug in dashed line drawing. Please retest with 2.99.908.
Comment 19 Chris Wilson 2014-02-13 12:36:37 UTC
I think this was fixed in 2.99.908.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.