Comments (9)
Thanks for bringing up this issue.
Running it on my machine, I see leaks (filtered by "Blockly") and allocations that aren't being deallocated (filtered by "BKY").
It's something that I was planning on looking at in the very near future, along with performance optimization (I've been putting it on hold while building out a features over the last few months). So please hold tight -- they will be fixed shortly!
from blockly-ios.
thanks for the fast response looking forward to the fixes
from blockly-ios.
any updates?
from blockly-ios.
Sorry, I have been busy/sidetracked for the last couple of weeks -- I will try to get a fix in this week.
from blockly-ios.
FYI, pull request #388 now fixes the sources of major memory leakage.
However, there's still one source of minor leakage that I can't seem to solve, which is from "ContiguousArrayStorage" (ie. arrays being created for Field objects). I suspect that it's a bug in the iOS SDK or even in Instruments, as it only shows up for iOS 10 and not 8/9.
The good news is that these remaining leaks only seem to occur when first loading a workbench with new blocks and that the leaks are small in memory.
I'll keep my eye on this issue though, I'm hoping WWDC 17/iOS 11 may provide more insight into the problem. If you continue running into large memory issues, let us know.
from blockly-ios.
thanks alot will let you know
from blockly-ios.
Sorry for the late response i have tried the new update, I am still having some leaks from blockly in my application and in the blockly sample application provided, I am not sure wether i am doing something wrong or not.
here is an image from the instruments from blocksample application
still using the same configuration as before
i am now in the process of releasing my application on apple store do you know wether the memory leaks issue will lead to a rejection from apple.
from blockly-ios.
I don't think minor leaks will get you rejected by Apple (some of the iOS SDK leaks), but obviously it isn't a good sign if your app is leaking terribly.
When looking for leaks, it's more important to check for severity than existence. I usually check two things:
- Cyclical references - Does memory not get de-allocated (eg. after say popping a view controller)? This is the most severe type of leak and you shouldn't submit if you have any of them. None of these exist in the Blockly library, so if this is happening, it's most likely part of your codebase.
- Leaks due to bad reference counting (the Memory Leaks Instrument) - I've found that these happen just from using certain parts of the iOS SDK. It's hard to generate your own now with ARC so it's mostly making sure that you aren't calling those leaky parts too often (eg. you can see there's something leaky with NSNumberFormatter, which Blockly uses).
Lastly, make sure you're enabling "whole-module-optimization" when building for release. This will improve performance of your app and it may eliminate some of these leaks you have been seeing.
Hopefully this answers your questions.
If you have 5 minutes, please fill out our dev questionnaire too -- it really helps us out figure out how to cater to our devs.
Good luck on your submission!
from blockly-ios.
Thanks alot for the advices and the continous support
from blockly-ios.
Related Issues (20)
- Create localization strings for iOS specific UI HOT 1
- Error when loading default blocks HOT 2
- Duplicate function call when loading functions from XML HOT 1
- BlocklySample[3078:747821] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service HOT 2
- Dragging first block in RTL causes workspace jumping (iOS 9.x only) HOT 1
- Crash when dragging blocks while keyboard is open. HOT 2
- Undo/redo buttons are backwards in RTL HOT 1
- Pull blockly_compressed and all compressed generators from web Blockly HOT 1
- Codelab sounds a4 and b4 are misnamed. HOT 1
- Pull blockly_compressed and all <lang>_compressed files from web Blockly HOT 1
- Add test to check default I18N messages are valid HOT 1
- iOS 11 "WKWebView.evaluateJavaScript(_:completionHandler:) must be used from main thread only" Fix HOT 1
- Pull blockly_compressed and <lang>_compressed from web Blockly HOT 1
- Pull blockly_compressed and lang_compressed from web Blockly HOT 1
- When my Xcode update to xcode9 appear this problem:WKWebView.evaluateJavaScript(_:completionHandler:) must be used from main thread .what should I do? HOT 1
- bug: orientation is not respected HOT 2
- Documentation Error ?
- zoom WorkbenchViewController.swift ToolboxCategoryViewController HOT 3
- Ok
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blockly-ios.