I am getting constant "undefined is not an object" errors on pie charts on iOS, using Highcharts 3.
To demonstrate: if I load the demo page www.highcharts.com/demo/pie-basic in iOS simulator, with the Debug Console activated, and simply press the mouse button and run the cursor across the pie, I get a continuous stream of these errors.
On an actual iPad, running a finger across the pie generates the same error-stream.
I managed to find a grown-up to run this through in a context that actually tells us something about the problem. He got:
Error message:
highcharts.js:148
TypeError: 'undefined' is not an object (evaluating 'd.xAxis.zoomEnabled')
Thanks for reporting, we logged and fixed the issue at https://github.com/highslide-software/highcharts.com/issues/1861.
The fix will be available with the next maintenance release in two or three weeks.
Related
I noticed that my buttons are not working on the IOS devices, it seems that the click event is not called. Everything is working perfectly on the windows, android, Linux. Since I don't have access to any mac I was trying to debug it on the browserStack, I am getting this error every time I am trying to click the button:
ERROR TypeError: undefined is not an object (evaluating 't.path[4]')
I might be completely wrong, but I think that it might be related with the SVG's rect that is inside of the button (I am using it as a progress bar), on the rect load event I am accessing it to find its length. Maby it is called "too early" so it cannot access the rect correctly. Previously I was using the ngAfterViewInit with the setTimeout inside to manage the same effect.
<rect
#rect
width="96"
height="96"
rx="8"
fill="none"
stroke-width="4"
[ngStyle]="{
'stroke-dasharray': strokeDasharray,
'stroke-dashoffset': strokeDashoffset
}"
(load)="getRectLength()"
/>
getRectLength() {
this.length = this.rect.nativeElement.getTotalLength();
this.strokeDasharray = this.length;
}
Code:
https://github.com/mateuszkornecki/chess-clock/tree/master/src
Live demo:
https://mateuszkornecki.github.io/chess-clock/settings
Steps to reproduce:
Simply click on one of the big buttons with the counter, after a click it should start counting.
I tested it on several IOS devices, it was not working on everyone regardless of the IOS version. That's my first project made with Angular so there is a chance that I've made a simple mistake. Any help will be appreciated!
I have found the source of the problem. I was trying to use the event.path array on the click event. It looks that it is not available on the Safari. I fixed the problem by using the event.composedPath instead of the event.path
References:
https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath
I wasn't able to find anything helpful through google, so:
My Dart webapplication worked perfectly. Next time I opened Darteditor and (without changing anything) ran it again, Darteditor showed the Error
Breaking on exception: Strict get failed, invalid object.
This Error doesn't always show up and even when it does, the App still functions. Darteditor doesn't give me any hit where that Error occurs, because the debugger claims some source not to be available.
Does anyone know why/when this Error occurrs and what to do to fix it?
EDIT 1:
As suggested in comments:
updating Darteditor
pub cache repair
pub upgrade
Did not work
EDIT 2:
A Day after I tried the things mentioned in EDIT 1. Thus also after I rebooted the PC. At the moment, the Error doesn't appear anymore. I tried restarting the Darteditor after each try in EDIT 1 but nothing changed. Now...some of the things in EDIT 1 seem to have taken effect only after rebooting the PC. Not sure which of those though - am I supposed to answer my own question mentioning all 3 options from EDIT 1 or what should I do?
EDIT 3:
(Sorry for all the edits)
I changed some code now and the Error is back here again...
Sometimes it goes away, but not with a obvious reason like a specific line of code added/removed. Right now, ther is an additional line by the Error:
Application Cache NoUpdate event (https://www.google.ch/xjs/_/js/k=xjs.ntp.en_US.mqcA3JMW-QU.O/m=jsa,ntp,pcc,csi/rt=j/d=1/t=zcms/rs=AItRSTO3mHFV3hPPmf2KYlzqp_GC2s-5GQ:119)
Breaking on exception: Strict get failed, invalid object.
I get the same error message when I click the back button in Dartium,
or when I use the backspace key and the focus is not in an editable
field (which triggers the back button). I think it's either a bug in
Dart or Dartium. – Damien Aug 21 at 14:00
Interesting: When I pressed the back button in dartium, the error did
show up, but after this, it said something about application cache
(about 5 lines of text) and now I cannot reproduce the "strict get
failed" Error message – lucidbrot yesterday
pressing the back button in dartium, which I never did before, seemed to help in my case. Updating Darteditor again after this didn't change anything - the strict get error disappeared.
I won't accept this answer until somebody comments that it worked for him too, but I guess it is better to view here than as a comment to my question.
Could anyone confirm if current versions of Highchart/Highstock support AMD - i.e. can I simply point the locations of the scripts using require.js or what should I use instead (shims or paths or..)?
I'm getting random loading errors mainly during "cold" start. There're two different errors:
Uncaught TypeError: undefined is not a function (line 288, col 506)
no errors in the console but the actual chart doesn't get displayed only its bottom part "navigator".
I'm using google chrome with caching disabled. If I press F5 5-10 times likely one of reloads will produce the error.
I've tried the following three options (I'm using highstock herein HC):
HS configured via "script"
HS configured via "shim"
HS configured as a generic AMD
still getting the error.
When I run my application it works well, but during transitions between its views I have a lot of CGContext errors in the console output, but the app still works well, no crashes or bugs I didn't see. Description: so I only run my app - all work well - but there appears error messages in the console:
And after any other view transition they appear again and again. So the question - how to fix this? And what may be the reason of this error messages? There a lot of views and code in my application so I don't even know what part is error-prone.But these messages appear after transitions between all views in my app. Thanks in advance.
Look for some method in your code where you call CGContextSaveGState, CGContextSetBlendMode, CGContextSetApha, etc. Chances are that you won´t find many places where you do that.
Well, if you find it, look for some statement (just before those listed in your console log) where a context is created, and try to understand why it fails. You may set a breakpoint on that line and inspect the parameters to the CGContextCreate call.
If you need more help, paste the code you have (hopefully) found.
What does the following error indicates
5/19/11 8:06:45 PM SpringBoard[9712] Error deserializing
wallpaper image: Error
Domain=CPBitmapErrorDomain Code=0 "The
operation couldn’t be completed.
(CPBitmapErrorDomain error 0 - No data
provided to
CPBitmapCreateImagesFromData)"
UserInfo=0x70b9c80 {NSDescription=No
data provided to
CPBitmapCreateImagesFromData}
Well, if you read the error message, it is telling you that a wallpaper was unable to be deserialised because no data was provided to the function named CPBitMapCreateImagesFromData. Pretty self explanitory.
Other than that, it sounds like you're either working on a jailbroken phone or trying to do things that aren't supported by the official iOS SDK - in which case my help ends here.
Or you're a user who is trying to understand why an image they set as a wallpaper isn't displaying and found their way to the iPad's console - in which case, this isn't the place to be asking.
This happened to me also, I think it's because most of the tutorials are written with an iphone in mind and I was using an iPad. I was working with an ipad and when following these tutorials i was getting this problem.
When you are creating the project I choose View based application. In the same wizard there's a combo box for 'iPhone' and 'iPad'.. If I leave that as iPhone then my application doesnt start in the simulator and I see the error you mention. If I set that to iPad then everything works fine.
I dont understand why that should make a difference tbh..
This happened to me, but only when I was not debugging, what happened was that in the dealloc function [super dealloc] was called at the top of the function rather than at the end. The "deserializing wallpaper" message is probably due to some sort of memory corruption that occurred since I had code after [super dealloc] trying to use pointers that were now garbage. I had NSZombie activated but it had no effect. Why this only crashed when I was not hooked up to the debugger is beyond me at the moment.
Thankfully this bug was fixed after a few diffs in source control, but initially I was pretty perplexed at the message and the fact that it was a bug where the debugger couldn't be used only induced more panic.
I'm sure you've long fixed your problem but I thought it'd be helpful to put this out there for others.