cefclient 3440 fails on osx10.11 and ubuntu 18.04?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

cefclient 3440 fails on osx10.11 and ubuntu 18.04?

Postby DanKegel » Wed Jun 13, 2018 11:32 am

Quick note with two possible problems:

cef 3440 passes initial build here on osx 10.12 and 10.13, as well as ubuntu 16.04.

It fails on two OS's here; I have not yet looked into why.
Both of these showed up first in my sample app, but is reproducible with cefclient.

The ubuntu 18.04 symptom is a crash on startup of cefclient:

Program received signal SIGILL, Illegal instruction.
AddRef () at ../../cef/libcef_dll/ctocpp/ctocpp_ref_counted.h:33
33 ../../cef/libcef_dll/ctocpp/ctocpp_ref_counted.h: Datei oder Verzeichnis nicht gefunden.
(gdb) bt
#0 0x00007ffff1bb812b in AddRef() () at ../../cef/libcef_dll/ctocpp/ctocpp_ref_counted.h:33
#1 0x00007ffff1bb844c in AddRef () at ../../base/memory/scoped_refptr.h:274
#2 0x00007ffff1bb844c in scoped_refptr () at ../../base/memory/scoped_refptr.h:176
#3 0x00007ffff1bb844c in Wrap () at ../../cef/libcef_dll/ctocpp/ctocpp_ref_counted.h:125
#4 0x00007ffff1bb844c in cef_initialize() () at ../../cef/libcef_dll/libcef_dll.cc:229

The osx 10.11 problem symptom is:

1: dyld: Symbol not found: _kSecAttrKeyTypeECSECPrimeRandom
1: Referenced from: /opt/example/deps-64-12/cef3440/Release//Chromium Embedded Framework.framework/Chromium Embedded Framework
1: Expected in: /System/Library/Frameworks/Security.framework/Versions/A/Security
1: in /opt/example/deps-64-12/cef3440/Release//Chromium Embedded Framework.framework/Chromium Embedded Framework

which is not surprising, given
https://opensource.apple.com/source/Sec ... .auto.html
says

@constant kSecAttrKeyTypeECSECPrimeRandom.
@constant kSecAttrKeyTypeEC This is the legacy name for kSecAttrKeyTypeECSECPrimeRandom, new applications should not use it.
...
extern const CFStringRef kSecAttrKeyTypeEC
__OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_4_0);
extern const CFStringRef kSecAttrKeyTypeECSECPrimeRandom
__OSX_AVAILABLE_STARTING(__MAC_10_12, __IPHONE_10_0);

Fix coming for the mac problem...
DanKegel
Mentor
 
Posts: 59
Joined: Fri Nov 08, 2013 12:46 pm

Re: cefclient 3440 fails on osx10.11 and ubuntu 18.04?

Postby magreenblatt » Wed Jun 13, 2018 12:53 pm

If you can debug the Ubuntu 18.04 crash and post your findings that would be great.

The macOS 10.11 symbol issue is https://bugs.chromium.org/p/chromium/is ... ?id=841769.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: cefclient 3440 fails on osx10.11 and ubuntu 18.04?

Postby magreenblatt » Wed Jun 13, 2018 1:04 pm

What Xcode and macOS version are you building with? The above Chromium issue is reported when building with Xcode 8.2.1 on macOS 10.11. The Spotify official builders are using Xcode 8.3.2 on macOS 10.12.4 so hopefully they won't experience the issue.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: cefclient 3440 fails on osx10.11 and ubuntu 18.04?

Postby DanKegel » Thu Jun 14, 2018 1:48 pm

(For completeness, the whole problem is building on osx10.11 is not supported;
see https://bitbucket.org/chromiumembedded/ ... n-mac-os-x
I'm doing it with good results, though; to get 3440 to work, I just had to
use the older name for that symbol. I can share the patch on request for
anyone else still building on osx 10.11, but I will stop building on and supporting
osx 10.11 when 10.14 comes out in a few months.)

On to the Ubuntu 18.04 problem, which also seems to happen on Mac occasionally.
I've uploaded a fresh clean debug build assertion failure and stack trace to
https://bitbucket.org/chromiumembedded/cef/issues/2456
That was opened by somebody else for master, but evidently it's present on 3440 as well.
DanKegel
Mentor
 
Posts: 59
Joined: Fri Nov 08, 2013 12:46 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 66 guests