Bug 106667 - [snb] Crash after rotating a model in Simplify3D software
Summary: [snb] Crash after rotating a model in Simplify3D software
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Intel 3D Bugs Mailing List
QA Contact: Intel 3D Bugs Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-26 16:08 UTC by Dima Gorbenko
Modified: 2018-08-02 06:07 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
the logs which I collected: dmesg_full, dri_error, xrandr (50.00 KB, application/x-tar)
2018-05-26 16:08 UTC, Dima Gorbenko
Details
The ring.stl file model for Simplify3D (69.81 KB, model/x.stl-binary)
2018-05-30 20:09 UTC, Dima Gorbenko
Details
How to avoid crashing (381.52 KB, image/png)
2018-06-01 13:18 UTC, Dima Gorbenko
Details

Description Dima Gorbenko 2018-05-26 16:08:56 UTC
Created attachment 139791 [details]
the logs which I collected: dmesg_full, dri_error, xrandr

Steps:
1. Load any model in Simplify3D program, click "Prepare to Print", zoom in model and rotate it.

Here is the video I made showing this crash: https://www.youtube.com/watch?v=B6vmhraoalI

It crashes each time I zoom the model quite close to the viewpoint.

* uname -a: Linux dell3350 4.16.8-1-default #1 SMP PREEMPT Wed May 9 10:29:52 UTC 2018 (9269cc1) x86_64 x86_64 x86_64 GNU/Linux
* Linux distribution: opensuse tumbleweed
* Machine or mother board model: a laptop Dell 3350 Vostro
* Display connector: HDMI
Comment 1 Denis 2018-05-30 14:56:57 UTC
(In reply to Dima Gorbenko from comment #0)
> Created attachment 139791 [details]
> the logs which I collected: dmesg_full, dri_error, xrandr
> 
> Steps:
> 1. Load any model in Simplify3D program, click "Prepare to Print", zoom in
> model and rotate it.
> 
> Here is the video I made showing this crash:
> https://www.youtube.com/watch?v=B6vmhraoalI
> 
> It crashes each time I zoom the model quite close to the viewpoint.
> 
> * uname -a: Linux dell3350 4.16.8-1-default #1 SMP PREEMPT Wed May 9
> 10:29:52 UTC 2018 (9269cc1) x86_64 x86_64 x86_64 GNU/Linux
> * Linux distribution: opensuse tumbleweed
> * Machine or mother board model: a laptop Dell 3350 Vostro
> * Display connector: HDMI

Hi Dima, that's second issue reported to the same application. https://bugs.freedesktop.org/show_bug.cgi?id=106158 here is first one. Could you please provide your model, used in the app? I didn't face with it before, so, created file will speed up my tries to reproduce the issue.
Thank you in advance.
Comment 2 Dima Gorbenko 2018-05-30 20:09:04 UTC
Created attachment 139871 [details]
The ring.stl file model for Simplify3D
Comment 3 Dima Gorbenko 2018-05-30 20:11:46 UTC
hi Denis,

Sure, attached model here.

This crash happens quite often within this application (Simplify3D), sometimes I even have nothing to do - just slice model (this happens when I click "Prepare to print" button) and the crash happens.

And, the model itself I attached does not causes crash - I was getting it with other models as well.

I was using the latest Simplify3D version for Linux.

What other information do you need ?

Thanks,
Dima
Comment 4 Dima Gorbenko 2018-06-01 13:18:29 UTC
Created attachment 139901 [details]
How to avoid crashing

Uncheck checkbox "Build plate" shown on the image to avoid crashing.
Comment 5 asimiklit 2018-06-07 12:16:04 UTC
We figured out that patch https://patchwork.freedesktop.org/patch/225172/ fixes this bug.
Comment 6 Denis 2018-06-07 12:19:10 UTC
Hi Dima. Could you please apply that patch and check?
I made about 15 tries with it, and didn't get any hangs.
Comment 7 Dima Gorbenko 2018-06-07 22:06:43 UTC
hi Denis,

So, I've downloaded Mesa, compiled master branch (firstly without your patch), then loaded compiled libs by using LIBGL_DRIVERS_PATH variable to specify path to compiled mesa libs, and assured that application Simplify3D works and creates "crash" in dri/mesa (?) system.

Then I applied patch, compiled mesa, and run Simplify3D with patched libs -- I didn't notice the crash this time.

I did such testing (with patched and not-patched libs) few times to get sure patch works.

Seems like it works ! Thank you so much !

If you need me to do some other testing, or some information - let me know.

Dima
Comment 8 Denis 2018-08-01 12:02:50 UTC
Hi again, Dima. Good news, patch was accepted and added to mesa-master. I think, issue can be closed as fixed.


commit 399228ecad37f420be3028165b94d5d8d33516fc
Author: vadym.shovkoplias <vadim.shovkoplias@gmail.com>
Date:   Thu May 24 14:16:46 2018 +0300

    i965: Disable guardband clipping on SandyBridge for odd dimensions
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104388
    Signed-off-by: Andriy Khulap <andriy.khulap@globallogic.com>
    Acked-by: Rafael Antognolli <rafael.antognolli@intel.com>


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.