signature_pad: undefined is not an object (evaluating 'this._data[this._data.length-1].push')

Hey,

I’m just raising this for your visibility / in case you have any ideas. I don’t have a repro and am not expecting you to be able to do anything to solve this.

We’re getting this error thrown on one of our production apps. We have lots of apps running out there and only one has ever had this issue, which suggests to me it might be device related.

The error

undefined is not an object (evaluating 'this._data[this._data.length-1].push')

Is being thrown from here:

https://github.com/szimek/signature_pad/blob/master/src/signature_pad.js#L173-L178

That’s pretty much all the info I have. The client using the app hasn’t reported anything to us from a behaviour perspective.

Other info:

  • Ionic 3 / Angular 4 app deployed via the AppStore
  • iPad Model: iPad6,11
  • UA: UA: Mozilla/5.0 (iPad; CPU OS 11_0_1 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Mobile/15A402

I am tracking the issue and will update you if I get further information.

Thanks for all your hard work on this repo,

Stephen

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 11
  • Comments: 18 (1 by maintainers)

Most upvoted comments

can someone confirm that the issue is fixed?

the changelog https://github.com/szimek/signature_pad/blob/master/CHANGELOG.md#300-beta4 only references another issue #480 instead of this one.

@UziTech As far as I’m aware, this issue hasn’t been resolved. I’m assuming it’s been closed to clean up issues that are stale?

Same issue: Message | undefined is not an object (evaluating ‘this._data[this._data.length-1].push’) Failed method | _strokeUpdate |   Device model | iPhone |   Operating system | iOS 12.0 |   Browser version | Mobile Safari 12.0

Also this straight after the error above: Message | undefined is not an object (evaluating ‘a.length’) | Failed method | _strokeEnd |   Device model | iPhone |   Operating system | iOS 12.0 |   Browser version | Mobile Safari 12.0

And the issue has been open since January and got no answers =/

I’m joining the club with the error messages: TypeError: Cannot read property 'push' of undefined and TypeError: Cannot read property 'length' of undefined

Our tracking said it’s a Samsung SM-T5851 with Chrome 64.0.01 and running Android 7.0.01


Minified stack trace:

Cannot read property 'push' of undefined
at i._strokeUpdate (scripts.09258a303eed71dcb9ac.bundle.js:1)
at i._strokeMoveUpdate (scripts.09258a303eed71dcb9ac.bundle.js:1)
at HTMLCanvasElement._handleTouchMove (scripts.09258a303eed71dcb9ac.bundle.js:1)
at e.invokeTask (polyfills.395920b077ebea14c462.bundle.js:1)
at Object.onInvokeTask (main.4f4970c93c661f275c5d.bundle.js:1)
at e.invokeTask (polyfills.395920b077ebea14c462.bundle.js:1)
at t.runTask (polyfills.395920b077ebea14c462.bundle.js:1)
at t.invokeTask [as invoke] (polyfills.395920b077ebea14c462.bundle.js:1)
at _ (polyfills.395920b077ebea14c462.bundle.js:1)
at HTMLCanvasElement.m (polyfills.395920b077ebea14c462.bundle.js:1)