Default canvas grey box on OS X 10.11

Bug #1472393 reported by Paulo
34
This bug affects 4 people
Affects Status Importance Assigned to Milestone
KiCad
Invalid
Medium
Unassigned

Bug Description

kicad-r5871.20150702-113721.dmg

osx El capitan beta OS X 10.11 (15A178w)

eeschema , pcbnew opens but only show icons and menus not the main content view
gerbview, Pl editor crashes
bitmap2component and pcbcalculator are ok

The legacy canvas is not working, but the GAL canvas works ok with both OpenGl and Cairo.

http://imgur.com/a/1riK4

/Applications/Kicad/kicad.app/Contents/Contents/PlugIns/_eeschema.kiface is missing causing an error

21:11:15: dlopen(/Applications/Kicad/kicad.app/Contents/Contents/PlugIns/_eeschema.kiface, 10): image not found
21:11:15: IO_ERROR: Fatal Installation Bug. File:
'/Applications/Kicad/kicad.app/Contents/Contents/PlugIns/_eeschema.kiface'
could not be loaded
It is missing.
From command line: argv[0]:
'/Applications/Kicad/kicad.app/Contents/Applications/eeschema.app/Contents/MacOS/./eeschema'
from /Users/jenkins/remoteroot/workspace/KiCadBuildMac/kicad/common/kiway.cpp : KiFACE() : line 225
and for pcbnew
21:12:37: dlopen(/Applications/Kicad/kicad.app/Contents/Contents/PlugIns/_pcbnew.kiface, 10): image not found
21:12:37: IO_ERROR: Fatal Installation Bug. File:
'/Applications/Kicad/kicad.app/Contents/Contents/PlugIns/_pcbnew.kiface'
could not be loaded
It is missing.
From command line: argv[0]:
'/Applications/Kicad/kicad.app/Contents/Applications/pcbnew.app/Contents/MacOS/./pcbnew'
from /Users/jenkins/remoteroot/workspace/KiCadBuildMac/kicad/common/kiway.cpp : KiFACE() : line 225

Tags: osx osx-10.11
Revision history for this message
Paulo (peekpt) wrote :
description: updated
description: updated
tags: added: osx-10.11
removed: 10.11
tags: added: packaging
Revision history for this message
Paulo (peekpt) wrote :
Revision history for this message
Paulo (peekpt) wrote :

El capitan public beta released today

Revision history for this message
Shane Burrell (shaneb) wrote :

This still appears to be broken. I also tried linking to current wxwidget from github. Same results.

Revision history for this message
Garth Corral (gcorral) wrote :

The description and the pastebin content in this bug both appear to be a red herrings. Neither have bearing on one another nor on the problem. This is reproducible on Adam's nightly builds and that does not exhibit a packaging issue nor the OpenCL issue.

I'll take a look.

tags: removed: packaging
Changed in kicad:
importance: Undecided → High
Revision history for this message
Garth Corral (gcorral) wrote :

Well this is an unfortunate issue, but hopefully one that we won't need to worry about when 10.11 is released.

By that I mean that this appears to be a regression in OS X rather than an issue with wxWidgets or kicad. The issue is in our overlay patch for wxWidgets and appears to be caused by a change in behavior of NSWindow isVisible. On 10.11 this returns a true value if the window is ordered into the stack, regardless of whether it is actually on screen.

Things are muddied a bit by the fact that the documentation claims that isVisible is obsolete as of 10.9, which I don't thinks is actually the case. They appear to have added a property, visible, which depends on the existence of an isVisible getter. I'm going to say that this is a documentation issue. The question, I guess is whether this behavior change is intentional, and I've seen nothing to convince me that it is.

I have a patch that should work around the issue for 10.11, but it isn't something that should be applied to the tree at this point.

Revision history for this message
Josh Marshall (josh-marshall) wrote :

Agree with Garth, this happened with my build dating from March upon upgrade to OS X 10.11 beta, and still occurs with the latest nightly.

Garth, can you share that patch so those affected (me!) can compile a working version in the interim?

Revision history for this message
Garth Corral (gcorral) wrote :

I've attached a patch for wxWidgets that *should* get folks on the El Capitan beta going again. It must be applied *after* the other wxWidgets patches, specifically after wxwidgets-3.0.0_macosx.patch.

 This is an interim fix just for those folks. It should not be applied for other builds. In theory it should work on anything after 10.9 but it is not well tested (or at all, really).

Revision history for this message
Garth Corral (gcorral) wrote :

Ack! I've pulled the patch down as I noticed a regression in the overlay. I'll have to take a look at this some more when I get a few spare cycles.

Revision history for this message
Garth Corral (gcorral) wrote :

So it appears that occlusionState behaves differently between versions as well, indicating that the issue is somewhere deeper in NSWindow. I'll have to look more.

Revision history for this message
Nick Østergaard (nickoe) wrote :

I will downgrade this bug because Garth has found the issue with this an a patch, and the fact that it is against a beta release OS, this should not be a blocker for a release of kicad.

@Garth, did you ever report an upstream bug against wx with this? If so, could you link it here for tracking?

Changed in kicad:
importance: High → Medium
Revision history for this message
Garth Corral (gcorral) wrote :

Not sure this should be downgraded just yet. It turns out that the issue is more involved that first thought. The patch I had does not resolve the issue completely as it appears to be in the image caching code rather than the window visibility (this is different as well but was misleading). I have filed an upstream bug but I'm unable to link it at this time.

Revision history for this message
Shane Burrell (shaneb) wrote :

Still an issue at El Capitan 10.11 Beta 4.

Revision history for this message
Shane Burrell (shaneb) wrote :

Still an issue at 10.11 Beta 5.

Revision history for this message
Shane Burrell (shaneb) wrote :

I'm sure this has been hashed out before but looking at overlay.mm it would seem that the flush is required per SDK docs. Its commented out. Also [m_overlayWindow] occlusionState] & NSWindowOcclusionStateVisible appears to be a replacement for isVisible (depreciated since 10.9) . I'll know in a bit if those changes affect anything. Is there a prior reason that the flush was commented out?

Revision history for this message
Shane Burrell (shaneb) wrote :

This seems to get the canvas working. Moving is an issue without refresh and zoom but I expect that may just be API changes. This is a replacement overlay.mm file that replaces wx-src/src/osx/cocoa/overlay.mm vs trying to patch over patch.

Revision history for this message
Wayne Stambaugh (stambaughw) wrote : Re: [Bug 1472393] Re: Default canvas grey box on OS X 10.11

On 7/31/2015 12:40 PM, Shane Burrell wrote:
> This seems to get the canvas working. Moving is an issue without
> refresh and zoom but I expect that may just be API changes. This is a
> replacement overlay.mm file that replaces wx-
> src/src/osx/cocoa/overlay.mm vs trying to patch over patch.
>
> ** Attachment added: "Partial Fix"
> https://bugs.launchpad.net/kicad/+bug/1472393/+attachment/4437039/+files/overlay.mm
>

Would some of our osx devs test this to make sure it doesn't break any
existing osx behavior? I don't want to commit anything that breaks what
we already have working.

Revision history for this message
Garth Corral (gcorral) wrote :

It's not a partial fix. It doesn't fix anything and should not be applied.

Revision history for this message
Shane Burrell (shaneb) wrote :

This wasn't intended to go into release. It simply gets the canvas painting something useful in 10.11 vs nothing but gray. Sorry for any confusion.

Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

On 8/1/2015 7:16 PM, Shane Burrell wrote:
> This wasn't intended to go into release. It simply gets the canvas
> painting something useful in 10.11 vs nothing but gray. Sorry for any
> confusion.
>
No problem. Thanks for the update.

Revision history for this message
bsmt (bsmt) wrote :

The latest 10.11 beta update (El Capitan Developer Preview 6) fixes this for me.

Revision history for this message
Shane Burrell (shaneb) wrote :

Seems to be working in Beta 6.

Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

Can this be marked as invalid now that it appears to be an OSX beta release issue?

Revision history for this message
Shane Burrell (shaneb) wrote :

I flipped to OSX 10.11 for about 5 hours of work yesterday in kicad
including eeschema and pcbnew with no issues on Beta 6. I feel its safe to
mark as invalid.

Shane

On Wed, Aug 5, 2015 at 8:12 AM, Wayne Stambaugh <email address hidden>
wrote:

> Can this be marked as invalid now that it appears to be an OSX beta
> release issue?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1472393
>
> Title:
> Default canvas grey box on OS X 10.11
>
> Status in KiCad:
> New
>
> Bug description:
> kicad-r5871.20150702-113721.dmg
>
> osx El capitan beta OS X 10.11 (15A178w)
>
> eeschema , pcbnew opens but only show icons and menus not the main
> content view
> gerbview, Pl editor crashes
> bitmap2component and pcbcalculator are ok
>
> The legacy canvas is not working, but the GAL canvas works ok with
> both OpenGl and Cairo.
>
> http://imgur.com/a/1riK4
>
> /Applications/Kicad/kicad.app/Contents/Contents/PlugIns/_eeschema.kiface
> is missing causing an error
>
> 21:11:15:
> dlopen(/Applications/Kicad/kicad.app/Contents/Contents/PlugIns/_eeschema.kiface,
> 10): image not found
> 21:11:15: IO_ERROR: Fatal Installation Bug. File:
>
> '/Applications/Kicad/kicad.app/Contents/Contents/PlugIns/_eeschema.kiface'
> could not be loaded
> It is missing.
> From command line: argv[0]:
>
> '/Applications/Kicad/kicad.app/Contents/Applications/eeschema.app/Contents/MacOS/./eeschema'
> from
> /Users/jenkins/remoteroot/workspace/KiCadBuildMac/kicad/common/kiway.cpp :
> KiFACE() : line 225
> and for pcbnew
> 21:12:37:
> dlopen(/Applications/Kicad/kicad.app/Contents/Contents/PlugIns/_pcbnew.kiface,
> 10): image not found
> 21:12:37: IO_ERROR: Fatal Installation Bug. File:
> '/Applications/Kicad/kicad.app/Contents/Contents/PlugIns/_pcbnew.kiface'
> could not be loaded
> It is missing.
> From command line: argv[0]:
>
> '/Applications/Kicad/kicad.app/Contents/Applications/pcbnew.app/Contents/MacOS/./pcbnew'
> from
> /Users/jenkins/remoteroot/workspace/KiCadBuildMac/kicad/common/kiway.cpp :
> KiFACE() : line 225
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/kicad/+bug/1472393/+subscriptions
>

Changed in kicad:
status: New → Invalid
Revision history for this message
kzl (marco-meyer-s) wrote :
Download full text (4.4 KiB)

How did you get the Beta 6? I’m stuck in beta 3!

Did you pay for a complete developer account ?
(I only have an account as Safari Extension developer)

Best,
Marco

> Le 5 août 2015 à 15:23, Shane Burrell <email address hidden> a écrit :
>
> I flipped to OSX 10.11 for about 5 hours of work yesterday in kicad
> including eeschema and pcbnew with no issues on Beta 6. I feel its safe to
> mark as invalid.
>
> Shane
>
> On Wed, Aug 5, 2015 at 8:12 AM, Wayne Stambaugh <email address hidden>
> wrote:
>
>> Can this be marked as invalid now that it appears to be an OSX beta
>> release issue?
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https://bugs.launchpad.net/bugs/1472393
>>
>> Title:
>> Default canvas grey box on OS X 10.11
>>
>> Status in KiCad:
>> New
>>
>> Bug description:
>> kicad-r5871.20150702-113721.dmg
>>
>> osx El capitan beta OS X 10.11 (15A178w)
>>
>> eeschema , pcbnew opens but only show icons and menus not the main
>> content view
>> gerbview, Pl editor crashes
>> bitmap2component and pcbcalculator are ok
>>
>> The legacy canvas is not working, but the GAL canvas works ok with
>> both OpenGl and Cairo.
>>
>> http://imgur.com/a/1riK4
>>
>> /Applications/Kicad/kicad.app/Contents/Contents/PlugIns/_eeschema.kiface
>> is missing causing an error
>>
>> 21:11:15:
>> dlopen(/Applications/Kicad/kicad.app/Contents/Contents/PlugIns/_eeschema.kiface,
>> 10): image not found
>> 21:11:15: IO_ERROR: Fatal Installation Bug. File:
>>
>> '/Applications/Kicad/kicad.app/Contents/Contents/PlugIns/_eeschema.kiface'
>> could not be loaded
>> It is missing.
>> From command line: argv[0]:
>>
>> '/Applications/Kicad/kicad.app/Contents/Applications/eeschema.app/Contents/MacOS/./eeschema'
>> from
>> /Users/jenkins/remoteroot/workspace/KiCadBuildMac/kicad/common/kiway.cpp :
>> KiFACE() : line 225
>> and for pcbnew
>> 21:12:37:
>> dlopen(/Applications/Kicad/kicad.app/Contents/Contents/PlugIns/_pcbnew.kiface,
>> 10): image not found
>> 21:12:37: IO_ERROR: Fatal Installation Bug. File:
>> '/Applications/Kicad/kicad.app/Contents/Contents/PlugIns/_pcbnew.kiface'
>> could not be loaded
>> It is missing.
>> From command line: argv[0]:
>>
>> '/Applications/Kicad/kicad.app/Contents/Applications/pcbnew.app/Contents/MacOS/./pcbnew'
>> from
>> /Users/jenkins/remoteroot/workspace/KiCadBuildMac/kicad/common/kiway.cpp :
>> KiFACE() : line 225
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/kicad/+bug/1472393/+subscriptions
>>
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1473601).
> https://bugs.launchpad.net/bugs/1472393
>
> Title:
> Default canvas grey box on OS X 10.11
>
> Status in KiCad:
> New
>
> Bug description:
> kicad-r5871.20150702-113721.dmg
>
> osx El capitan beta OS X 10.11 (15A178w)
>
> eeschema , pcbnew opens but only show icons and menus not the main content view
> gerbview, Pl editor crashes
> bitmap2component and pcbcalculator are ok
>
> The legacy canvas is not working, but the GAL canvas works ok with
> both OpenGl and Cairo.
>
> http://imgu...

Read more...

Revision history for this message
Paulo (peekpt) wrote :

All sermos to be working ok on my Mac too

Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

Marking as invalid since it appears the issue was due to a broken beta of OSX 10.11. Please reopen this bug report if the status of this changes in future betas or the stable release of OSX 10.11.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.