Bug 204699

Summary: graphics/blender: Assertion failed in llvm
Product: Ports & Packages Reporter: O. Hartmann <ohartmann>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed Overcome By Events    
Severity: Affects Some People CC: FreeBSD, lumiwa, tablooaraz
Priority: --- Keywords: crash, needs-qa
Version: LatestFlags: bugzilla: maintainer-feedback? (mva)
Hardware: Any   
OS: Any   

Description O. Hartmann 2015-11-20 11:52:24 UTC
Running FreeBSD CURRENT(FreeBSD 11.0-CURRENT #10 r291081: Thu Nov 19 19:27:36 CET 2015 amd64) with the most recent ports collection (updated via SVN on a daily basis), a freshly compiled graphics/blender port fails on ALL CURRENT boxes with the error shown below when trying to open in the blender "User preferences" the "system" folder. Blender 2.75 crashes with the erro:

Assertion failed: (findOption(Name) == Values.size() && "Option already exists!"), function addLiteralOption, file /usr/ports/devel/llvm37/work/llvm-3.7.0.src/include/llvm/Support/CommandLine.h, line 698
Comment 1 Marcus von Appen freebsd_committer freebsd_triage 2015-12-27 14:24:39 UTC
Do you still run into that problem with blender 2.76b?
Comment 2 O. Hartmann 2015-12-27 17:48:02 UTC
Jawohl, I do.

The problem seems to be the "cycles" renderer or any related option, like "cyclesosl", which includes devel/llvm34. Obviously, belnder gets confused with any llvm installed so far. I have llvm36 (due to X11/xorg/libclc) and llvm37 (pocl-0.12) and I try also to install full llvm via /etc/src.conf as far as possible (didn't experiment with the knobs due to time and performance constraints ...).

Disabling CYCLES in the configuration solves the problem of the crashes, even in blender 2.76b. I haven't figured out whether disabling CYCLES renderer involves other required facilities so far, but at the first view, if someone doesn't use CYCLES, disabling cycles is a possible solution. I miss the network/cluster rendering at the moment, but this might be due to other issues.

Kind regards,
oh
Comment 3 lumiwa 2015-12-28 12:38:27 UTC
I had and I have the same problem on version 2.76b on my FreeBSD 10.2-RELEASE (amd64). If I buld with Cycles, blender does not start (see my report ID 199161).

Have a good one.

lumiwa
Comment 4 lumiwa 2016-05-07 13:03:52 UTC
(In reply to ohartman from comment #2)

Do you think that if we build Blender with gcc the problem will be solved?

I am using OSX for Blender and there are no problem (the same computer).

Thank you.
Comment 5 O. Hartmann 2016-05-07 14:28:33 UTC
I have not ried building most recent blender from ports with gcc. The failure involves only if options CYCLES is given. It reels in devel/llvm34. I would rather stay with clang in favour over gcc and diable option cycles as long as the problem persists.
Comment 6 lumiwa 2016-05-08 11:32:11 UTC
(In reply to ohartman from comment #5)
Thank you. I will wait to and stay with Blender for OSX because I use cycles render engine.
Comment 7 lumiwa 2016-07-30 09:19:42 UTC
Blender version 3.77a is in ports, build without problem with Synth but the problem with Cycles engine still exist.
Comment 8 lumiwa 2016-07-30 09:20:52 UTC
(In reply to lumiwa from comment #7)
I forgot for
blender
Assertion failed: (findOption(Name) == Values.size() && "Option already exists!"), function addLiteralOption, file /construction/xports/devel/llvm37/work/llvm-3.7.1.src/include/llvm/Support/CommandLine.h, line 698.
Abort (core dumped)
(In reply to ohartman from comment #0)
Comment 9 lumiwa 2016-10-21 10:42:06 UTC
I have 11.0-RELEASE-p1 FreeBSD 11.0-RELEASE-p1 #0 r306420: Thu Sep 29 01:43:23 UTC 2016     root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

and I rebuild all ports and reinstalled the and I have the sam,e problem still and one error more:

blender
libGL error: failed to open drm device: Permission denied
libGL error: failed to load driver: r600
Assertion failed: (findOption(Name) == Values.size() && "Option already exists!"), function addLiteralOption, file /construction/xports/devel/llvm37/work/llvm-3.7.1.src/include/llvm/Support/CommandLine.h, line 698.
Abort (core dumped)

Thank you.
Comment 10 Rene Ladan freebsd_committer freebsd_triage 2017-01-22 22:35:26 UTC
Maintainer reset
Comment 11 Shane 2017-10-21 07:21:55 UTC
The blender port has just been updated to 2.79 and I am now the maintainer.

Do you still have any issues with the new version of blender?
Comment 12 lumiwa 2017-10-21 11:46:25 UTC
No my system, FreeBSD 11.1-RELEASE (amd64), use Synth to build ports, I do not have any problem (built with Cycles and Cycleosl enabled) and Blender woroks faster than before :).
Thank you very much for the great work.
Comment 13 O. Hartmann 2017-10-22 09:57:59 UTC
Well, the update to a new Blender version fixed the problem for me. I lost this PR out of sight - the problem has been fixed before with the change towards LLVM/CLANG 5 in CURRENT. It shouldn't seem that we have to wait almost a year for fixing this ...

Closing.
Comment 14 vali gholami 2017-11-26 20:50:26 UTC
MARKED AS SPAM