[ 
https://issues.apache.org/jira/browse/CB-12973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16288399#comment-16288399
 ] 

Jacob Weber commented on CB-12973:
----------------------------------

Usually the bug happens only after tapping in the in-app browser. When I do 
that, I see this in the Xcode console. (However, I also see this with 
cordova-plugin-inappbrowser 1.6.1, which didn't freeze):

{code}
2017-12-12 13:04:08.181263-0800 MyApp[88382:10244839] [MC] System group 
container for systemgroup.com.apple.configurationprofiles path is 
/Users/myuser/Library/Developer/CoreSimulator/Devices/2A7E9A62-EC73-4C78-85F4-AF59E626F60E/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2017-12-12 13:04:08.182396-0800 MyApp[88382:10244839] [MC] Reading from private 
effective user settings.
2017-12-12 13:04:08.278521-0800 MyApp[88382:10244839] [LayoutConstraints] 
Unable to simultaneously satisfy constraints.
        Probably at least one of the constraints in the following list is one 
you don't want. 
        Try this: 
                (1) look at each constraint and try to figure out which you 
don't expect; 
                (2) find the code that added the unwanted constraint or 
constraints and fix it. 
        (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you 
don't understand, refer to the documentation for the UIView property 
translatesAutoresizingMaskIntoConstraints) 
(
    "<NSAutoresizingMaskLayoutConstraint:0x600000292980 h=-&- v=-&- 
_UIToolbarContentView:0x7f8e4753b8d0.width == UIToolbar:0x7f8e4753b690.width   
(active)>",
    "<NSLayoutConstraint:0x60400028e790 
H:|-(0)-[_UIButtonBarStackView:0x7f8e4902fb20]   (active, names: 
'|':_UIToolbarContentView:0x7f8e4753b8d0 )>",
    "<NSLayoutConstraint:0x60400028e740 
_UIButtonBarStackView:0x7f8e4902fb20.trailing == 
_UIToolbarContentView:0x7f8e4753b8d0.trailing + 8   (active)>",
    "<NSLayoutConstraint:0x600000290220 
H:|-(0)-[_UIModernBarButton:0x7f8e4754ef40]   (active, names: 
'|':_UIButtonBarButton:0x7f8e4754e8d0 )>",
    "<NSLayoutConstraint:0x600000290270 
H:[_UIModernBarButton:0x7f8e4754ef40]-(>=8)-|   (active, names: 
'|':_UIButtonBarButton:0x7f8e4754e8d0 )>",
    "<NSLayoutConstraint:0x600000290a40 
H:|-(>=5)-[_UIModernBarButton:0x7f8e4754fa50]   (active, names: 
'|':_UIButtonBarButton:0x7f8e4754f800 )>",
    "<NSLayoutConstraint:0x600000290a90 
H:[_UIModernBarButton:0x7f8e4754fa50]-(>=5)-|   (active, names: 
'|':_UIButtonBarButton:0x7f8e4754f800 )>",
    "<NSLayoutConstraint:0x600000291620 
H:|-(8)-[_UIModernBarButton:0x7f8e475503c0'Done']   (active, names: 
'|':_UIButtonBarButton:0x7f8e4754ff70 )>",
    "<NSLayoutConstraint:0x600000291670 
H:[_UIModernBarButton:0x7f8e475503c0'Done']-(0)-|   (active, names: 
'|':_UIButtonBarButton:0x7f8e4754ff70 )>",
    "<NSLayoutConstraint:0x600000291a30 'UISV-canvas-connection' 
UILayoutGuide:0x6040003a0c40'UIViewLayoutMarginsGuide'.leading == 
_UIButtonBarButton:0x7f8e4754e8d0.leading   (active)>",
    "<NSLayoutConstraint:0x600000291e40 'UISV-canvas-connection' 
UILayoutGuide:0x6040003a0c40'UIViewLayoutMarginsGuide'.trailing == 
_UIButtonBarButton:0x7f8e4754ff70.trailing   (active)>",
    "<NSLayoutConstraint:0x600000291e90 'UISV-spacing' 
H:[_UIButtonBarButton:0x7f8e4754e8d0]-(0)-[UIView:0x7f8e4754f490]   (active)>",
    "<NSLayoutConstraint:0x600000291ee0 'UISV-spacing' 
H:[UIView:0x7f8e4754f490]-(0)-[_UIButtonBarButton:0x7f8e4754f800]   (active)>",
    "<NSLayoutConstraint:0x600000291f30 'UISV-spacing' 
H:[_UIButtonBarButton:0x7f8e4754f800]-(0)-[UIView:0x7f8e4754fd90]   (active)>",
    "<NSLayoutConstraint:0x600000291f80 'UISV-spacing' 
H:[UIView:0x7f8e4754fd90]-(0)-[_UIButtonBarButton:0x7f8e4754ff70]   (active)>",
    "<NSLayoutConstraint:0x600000292a70 'UIView-Encapsulated-Layout-Width' 
UIToolbar:0x7f8e4753b690.width == 0   (active)>",
    "<NSLayoutConstraint:0x60400028ea10 'UIView-leftMargin-guide-constraint' 
H:|-(0)-[UILayoutGuide:0x6040003a0c40'UIViewLayoutMarginsGuide'](LTR)   
(active, names: '|':_UIButtonBarStackView:0x7f8e4902fb20 )>",
    "<NSLayoutConstraint:0x60400028e920 'UIView-rightMargin-guide-constraint' 
H:[UILayoutGuide:0x6040003a0c40'UIViewLayoutMarginsGuide']-(0)-|(LTR)   
(active, names: '|':_UIButtonBarStackView:0x7f8e4902fb20 )>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x600000290270 
H:[_UIModernBarButton:0x7f8e4754ef40]-(>=8)-|   (active, names: 
'|':_UIButtonBarButton:0x7f8e4754e8d0 )>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch 
this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed 
in <UIKit/UIView.h> may also be helpful.
2017-12-12 13:04:08.280074-0800 MyApp[88382:10244839] [LayoutConstraints] 
Unable to simultaneously satisfy constraints.
        Probably at least one of the constraints in the following list is one 
you don't want. 
        Try this: 
                (1) look at each constraint and try to figure out which you 
don't expect; 
                (2) find the code that added the unwanted constraint or 
constraints and fix it. 
        (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you 
don't understand, refer to the documentation for the UIView property 
translatesAutoresizingMaskIntoConstraints) 
(
    "<NSAutoresizingMaskLayoutConstraint:0x600000292980 h=-&- v=-&- 
_UIToolbarContentView:0x7f8e4753b8d0.width == UIToolbar:0x7f8e4753b690.width   
(active)>",
    "<NSLayoutConstraint:0x60400028e790 
H:|-(0)-[_UIButtonBarStackView:0x7f8e4902fb20]   (active, names: 
'|':_UIToolbarContentView:0x7f8e4753b8d0 )>",
    "<NSLayoutConstraint:0x60400028e740 
_UIButtonBarStackView:0x7f8e4902fb20.trailing == 
_UIToolbarContentView:0x7f8e4753b8d0.trailing + 8   (active)>",
    "<NSLayoutConstraint:0x600000290a40 
H:|-(>=5)-[_UIModernBarButton:0x7f8e4754fa50]   (active, names: 
'|':_UIButtonBarButton:0x7f8e4754f800 )>",
    "<NSLayoutConstraint:0x600000290a90 
H:[_UIModernBarButton:0x7f8e4754fa50]-(>=5)-|   (active, names: 
'|':_UIButtonBarButton:0x7f8e4754f800 )>",
    "<NSLayoutConstraint:0x600000291620 
H:|-(8)-[_UIModernBarButton:0x7f8e475503c0'Done']   (active, names: 
'|':_UIButtonBarButton:0x7f8e4754ff70 )>",
    "<NSLayoutConstraint:0x600000291670 
H:[_UIModernBarButton:0x7f8e475503c0'Done']-(0)-|   (active, names: 
'|':_UIButtonBarButton:0x7f8e4754ff70 )>",
    "<NSLayoutConstraint:0x600000291a30 'UISV-canvas-connection' 
UILayoutGuide:0x6040003a0c40'UIViewLayoutMarginsGuide'.leading == 
_UIButtonBarButton:0x7f8e4754e8d0.leading   (active)>",
    "<NSLayoutConstraint:0x600000291e40 'UISV-canvas-connection' 
UILayoutGuide:0x6040003a0c40'UIViewLayoutMarginsGuide'.trailing == 
_UIButtonBarButton:0x7f8e4754ff70.trailing   (active)>",
    "<NSLayoutConstraint:0x600000291e90 'UISV-spacing' 
H:[_UIButtonBarButton:0x7f8e4754e8d0]-(0)-[UIView:0x7f8e4754f490]   (active)>",
    "<NSLayoutConstraint:0x600000291ee0 'UISV-spacing' 
H:[UIView:0x7f8e4754f490]-(0)-[_UIButtonBarButton:0x7f8e4754f800]   (active)>",
    "<NSLayoutConstraint:0x600000291f30 'UISV-spacing' 
H:[_UIButtonBarButton:0x7f8e4754f800]-(0)-[UIView:0x7f8e4754fd90]   (active)>",
    "<NSLayoutConstraint:0x600000291f80 'UISV-spacing' 
H:[UIView:0x7f8e4754fd90]-(0)-[_UIButtonBarButton:0x7f8e4754ff70]   (active)>",
    "<NSLayoutConstraint:0x600000292a70 'UIView-Encapsulated-Layout-Width' 
UIToolbar:0x7f8e4753b690.width == 0   (active)>",
    "<NSLayoutConstraint:0x60400028ea10 'UIView-leftMargin-guide-constraint' 
H:|-(0)-[UILayoutGuide:0x6040003a0c40'UIViewLayoutMarginsGuide'](LTR)   
(active, names: '|':_UIButtonBarStackView:0x7f8e4902fb20 )>",
    "<NSLayoutConstraint:0x60400028e920 'UIView-rightMargin-guide-constraint' 
H:[UILayoutGuide:0x6040003a0c40'UIViewLayoutMarginsGuide']-(0)-|(LTR)   
(active, names: '|':_UIButtonBarStackView:0x7f8e4902fb20 )>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x600000290a90 
H:[_UIModernBarButton:0x7f8e4754fa50]-(>=5)-|   (active, names: 
'|':_UIButtonBarButton:0x7f8e4754f800 )>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch 
this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed 
in <UIKit/UIView.h> may also be helpful.
{code}

> inAppBrowser (_blank) returns to unresponsive app after "done" on iOS 10.
> -------------------------------------------------------------------------
>
>                 Key: CB-12973
>                 URL: https://issues.apache.org/jira/browse/CB-12973
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-inappbrowser
>         Environment: cordova -v
> 7.0.1
> Installed platforms:
>   android 6.2.3
>   ios 4.1.1
> ╰─➤  cordova plugins
> cordova-plugin-badge 0.8.0 "Badges"
> cordova-plugin-console 1.0.5 "Console"
> cordova-plugin-device 1.1.4 "Device"
> cordova-plugin-inappbrowser 1.7.1 "InAppBrowser"
> cordova-plugin-splashscreen 4.0.3 "Splashscreen"
> cordova-plugin-statusbar 2.2.1 "StatusBar"
> cordova-plugin-whitelist 1.3.1 "Whitelist"
> ionic-plugin-keyboard 2.2.1 "Keyboard"
>            Reporter: Charles Palmer
>            Priority: Critical
>
> Same app works on iOS 9 and Android. Also works on _system with Safari 
> browser.
> Use case. I create a simplified test case with a touch button to invoke code 
> (I have tried many workarounds without change of behavior)  The fundamental 
> code is:
> ----
>     var options = {
>       location: 'yes',
>       clearcache: 'yes',
>       toolbar: 'yes'
>     };
>       IABRef = 
> cordova.InAppBrowser.open(encodeURI('https://conconn-staging.herokuapp.com'), 
> '_blank', options);
>  
>       IABRef.addEventListener('exit', iabClose);
> ----
> I can enter the browser. If I hit "done" immediately, I return successfully 
> and can use the button to reinvoke the browser. However if I interact with 
> the browser content, there is about a 90%+ that upon exit ("done") to the 
> app, the app will not be responsive.. It should be noted that the exit 
> listener does activate, but I have not found a way to reactivate the 
> application's response.
> I suspect that there is an interaction at the interface between InAppBrowser 
> and the Apple Library for iOS 10, but this is speculation. As I said this 
> work with iOS 9 and fails in iOS 10. This can be simulated . (Xcode 8.3.3)  
> and observed on hardware.
> I believe there are multiple people facing this issue. Happy to provide more 
> information or collaborate if appropriate.
> I would be happy with a reliable work around or patch. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to