You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/02/02 18:07:55 UTC

[GitHub] [cordova-ios] yuriivanovich opened a new issue #1070: cordova-ios 6.1.1 input type date crashing the app

yuriivanovich opened a new issue #1070:
URL: https://github.com/apache/cordova-ios/issues/1070


   # Bug Report
   when i click any input type date, it causes the app to crash. i even created a new empty cordova project and added only input type date, to rule out that any plugin is causing the crash, but the same problem happens
   
   ### What does actually happen?
   when you click input type date, the app crash with exeption:
   reason	__NSCFString *	"Invalid calculation: number of calculated days is not dividable by the number of days in a week." 0x0000600002cc2e00
   
   on code line 32
   ```
   /*
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at
   
    http://www.apache.org/licenses/LICENSE-2.0
   
    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
    */
   //
   //  main.m
   //  Smart Waters
   //
   //  Created by ___FULLUSERNAME___ on ___DATE___.
   //  Copyright ___ORGANIZATIONNAME___ ___YEAR___. All rights reserved.
   //
   
   #import <UIKit/UIKit.h>
   
   int main(int argc, char* argv[])
   {
       @autoreleasepool {
           int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
           return retVal;
       }
   }
   ```
   
   
   ### Environment, Platform, Device
   iphone 12 pro max simulator running IOS 14.3,
   
   
   
   ### Version information
   node -v : 15.7.0
   cordova -v: 10.0.0
   cordova-ios: 6.1.1
   Xcode 12.3
   
   
   
   ## Checklist
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] yuriivanovich commented on issue #1070: cordova-ios 6.1.1 input type date crashing the app

Posted by GitBox <gi...@apache.org>.
yuriivanovich commented on issue #1070:
URL: https://github.com/apache/cordova-ios/issues/1070#issuecomment-772824829


   would building on another mac might solve this ?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] yuriivanovich commented on issue #1070: cordova-ios 6.1.1 input type date crashing the app

Posted by GitBox <gi...@apache.org>.
yuriivanovich commented on issue #1070:
URL: https://github.com/apache/cordova-ios/issues/1070#issuecomment-772419293


   today i was able to access an iphone from the office (due to lockdown it's hard lately), running ios 14.3, the same behavior happens when you click any input type date or time.
   
   then tried from safari on phone, the same behavior happens.
   then from mac tried on safari, the input acts like a text input. this isn't a cordova issue more like ios issue? 
   
   seems like my option right now is to convert to a jquery datepicker for the time being, we can't afford this, the app has thousands of daily users


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] dpogue commented on issue #1070: cordova-ios 6.1.1 input type date crashing the app

Posted by GitBox <gi...@apache.org>.
dpogue commented on issue #1070:
URL: https://github.com/apache/cordova-ios/issues/1070#issuecomment-772826308


   hmm, that sounds almost identical to my test case:
   
   ```html
       <body>
           <div class="app">
               <h1>Apache Cordova</h1>
               <div id="deviceready" class="blink">
                   <p class="event listening">Connecting to Device</p>
                   <p class="event received">Device is Ready</p>
               </div>
               <div>
                   Time: <input type="time">
               </div>
               <div>
                   Date: <input type="date">
               </div>
               <div>
                   Date Time: <input type="datetime-local">
               </div>
           </div>
           <script src="cordova.js"></script>
           <script src="js/index.js"></script>
       </body>
   ```
   
   I saw no issues in the simulator on iOS 14.3 or 14.4 (iPhone SE 2nd gen)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] yuriivanovich commented on issue #1070: cordova-ios 6.1.1 input type date crashing the app

Posted by GitBox <gi...@apache.org>.
yuriivanovich commented on issue #1070:
URL: https://github.com/apache/cordova-ios/issues/1070#issuecomment-773120600


   i don't think so. this is the calendar settings on the mac
   ![Untitled](https://user-images.githubusercontent.com/78439359/106864047-6ea2d180-66da-11eb-9fdc-e9dd73f45ebf.jpg)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] barakataboujreich commented on issue #1070: cordova-ios 6.1.1 input type date crashing the app

Posted by GitBox <gi...@apache.org>.
barakataboujreich commented on issue #1070:
URL: https://github.com/apache/cordova-ios/issues/1070#issuecomment-772425836


   we are having the same issue. our app includes a lot of input type dates to handle access rights and reservations. whenever we click any date input, the app crashes.
   
   iphone X
   ios 14.3
   cordova 10.0.0
   cordova ios 6.1.1


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] yuriivanovich commented on issue #1070: cordova-ios 6.1.1 input type date crashing the app

Posted by GitBox <gi...@apache.org>.
yuriivanovich commented on issue #1070:
URL: https://github.com/apache/cordova-ios/issues/1070#issuecomment-773120600


   i don't think so. this is the calendar settings on the mac
   ![Untitled](https://user-images.githubusercontent.com/78439359/106864047-6ea2d180-66da-11eb-9fdc-e9dd73f45ebf.jpg)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] yuriivanovich edited a comment on issue #1070: cordova-ios 6.1.1 input type date crashing the app

Posted by GitBox <gi...@apache.org>.
yuriivanovich edited a comment on issue #1070:
URL: https://github.com/apache/cordova-ios/issues/1070#issuecomment-773120600


   i don't think so. this is the calendar settings on the mac
   ![Untitled](https://user-images.githubusercontent.com/78439359/106866786-ed4d3e00-66dd-11eb-8d89-1b9cf0d38b5c.jpg)
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] yuriivanovich edited a comment on issue #1070: cordova-ios 6.1.1 input type date crashing the app

Posted by GitBox <gi...@apache.org>.
yuriivanovich edited a comment on issue #1070:
URL: https://github.com/apache/cordova-ios/issues/1070#issuecomment-773120600


   i don't think so. this is the calendar settings on the mac
   ![Untitled](https://user-images.githubusercontent.com/78439359/106867143-4ddc7b00-66de-11eb-85ab-161fb7689090.jpg)
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] yuriivanovich commented on issue #1070: cordova-ios 6.1.1 input type date crashing the app

Posted by GitBox <gi...@apache.org>.
yuriivanovich commented on issue #1070:
URL: https://github.com/apache/cordova-ios/issues/1070#issuecomment-772854829


   so what might be the issue here? is it on my side? what should i try to give more info to try and fix this


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] dpogue commented on issue #1070: cordova-ios 6.1.1 input type date crashing the app

Posted by GitBox <gi...@apache.org>.
dpogue commented on issue #1070:
URL: https://github.com/apache/cordova-ios/issues/1070#issuecomment-772975195


   @yuriivanovich Out of curiosity, are you using a non-Gregorian calendar?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] dpogue commented on issue #1070: cordova-ios 6.1.1 input type date crashing the app

Posted by GitBox <gi...@apache.org>.
dpogue commented on issue #1070:
URL: https://github.com/apache/cordova-ios/issues/1070#issuecomment-772803139


   I'm trying to reproduce this in the iOS 14.3 simulator with `<input type="date">` and `<input type="time">` and I'm not seeing any crashes.
   Do you have a sample HTML test case you could share?
   
   For the record, I'm 99.9% sure this would be a WebKit bug. I'm trying to reproduce it so that I can file a ticket with Apple that includes all the relevant details.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] yuriivanovich edited a comment on issue #1070: cordova-ios 6.1.1 input type date crashing the app

Posted by GitBox <gi...@apache.org>.
yuriivanovich edited a comment on issue #1070:
URL: https://github.com/apache/cordova-ios/issues/1070#issuecomment-773120600






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] yuriivanovich commented on issue #1070: cordova-ios 6.1.1 input type date crashing the app

Posted by GitBox <gi...@apache.org>.
yuriivanovich commented on issue #1070:
URL: https://github.com/apache/cordova-ios/issues/1070#issuecomment-772895978


   i took some screenshots of what i am doing, maybe this will be able to help.
   this is my HTML with no plugins installed
   ![code](https://user-images.githubusercontent.com/78439359/106822193-b7816880-668f-11eb-9494-4968f3d10652.jpg)
   
   Iphone SE 2nd gen simulator
   ![device running](https://user-images.githubusercontent.com/78439359/106822218-c536ee00-668f-11eb-8d9a-893049570eb9.jpg)
   
   and here is my exception
   ![exception](https://user-images.githubusercontent.com/78439359/106822230-cb2ccf00-668f-11eb-9059-866d32ca6e8e.jpg)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] yuriivanovich commented on issue #1070: cordova-ios 6.1.1 input type date crashing the app

Posted by GitBox <gi...@apache.org>.
yuriivanovich commented on issue #1070:
URL: https://github.com/apache/cordova-ios/issues/1070#issuecomment-772824093


   the simple `cordova create test com.testing.date test`  command, then adding a `<input type="date">` then building `cordova build ios` then going to xcode launching the app to the simulator, and then clicking the input is freezing the app for couple of seconds, and then crashes with the exception provided. i can share that html file if you want. but our app i'm not authorized to share it


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] timbru31 commented on issue #1070: cordova-ios 6.1.1 input type date crashing the app

Posted by GitBox <gi...@apache.org>.
timbru31 commented on issue #1070:
URL: https://github.com/apache/cordova-ios/issues/1070#issuecomment-772386200


   This sounds like a simulator, iOS or WebKit bug. Can you verify that the same HTML works fine in Safari?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org