Skip to main content

WTF Crash - ROFL

Thread : Crashed: WebThread
0  JavaScriptCore                 0x318728ae WTFCrash + 53
1  JavaScriptCore                 0x31872859 WTFPrintBacktrace + 128
2  JavaScriptCore                 0x31668dbb WTF::fastMalloc(unsigned long) + 1690
3  WebCore                        0x38b85d5d WTF::Vector::reserveCapacity(unsigned long) + 44
4  WebCore                        0x38b16623 WebCore::HTMLToken::appendToCharacter(unsigned short) + 114
5  WebCore                        0x38b0eb63 WebCore::HTMLTokenizer::nextToken(WebCore::SegmentedString&, WebCore::HTMLToken&) + 32630
6  WebCore                        0x38b06085 WebCore::HTMLDocumentParser::pumpTokenizer(WebCore::HTMLDocumentParser::SynchronousMode) + 164
7  WebCore                        0x38b75d0d WebCore::HTMLDocumentParser::append(WTF::PassRefPtr) + 292
8  WebCore                        0x38b75225 WebCore::DecodedDataDocumentParser::appendBytes(WebCore::DocumentWriter*, char const*, unsigned long) + 72
9  WebCore                        0x38b31bd1 WebCore::DocumentLoader::commitData(char const*, unsigned long) + 36
10 WebKit                         0x395242b7 -[WebHTMLRepresentation receivedData:withDataSource:] + 182
11 WebKit                         0x39524151 -[WebDataSource(WebInternal) _receivedData:] + 136
12 WebKit                         0x395240ad WebFrameLoaderClient::committedLoad(WebCore::DocumentLoader*, char const*, int) + 100
13 WebCore                        0x38b6cc45 WebCore::DocumentLoader::commitLoad(char const*, int) + 100
14 WebCore                        0x38b6cb9d WebCore::DocumentLoader::dataReceived(WebCore::CachedResource*, char const*, int) + 496
15 WebCore                        0x38b6b3b3 WebCore::DocumentLoader::continueAfterContentPolicy(WebCore::PolicyAction) + 762
16 WebCore                        0x38b6a9e3 WebCore::DocumentLoader::responseReceived(WebCore::CachedResource*, WebCore::ResourceResponse const&) + 654
17 WebCore                        0x38ddd78f WebCore::DocumentLoader::handleSubstituteDataLoadNow(WebCore::Timer*) + 318
18 WebCore                        0x38a933f7 WebCore::ThreadTimers::sharedTimerFiredInternal() + 134
19 WebCore                        0x38a93349 WebCore::timerFired(__CFRunLoopTimer*, void*) + 24
20 CoreFoundation                 0x306e31b7 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 14
21 CoreFoundation                 0x306e2dcf __CFRunLoopDoTimer + 782
22 CoreFoundation                 0x306e116b __CFRunLoopRun + 1210
23 CoreFoundation                 0x3064bf0f CFRunLoopRunSpecific + 522
24 CoreFoundation                 0x3064bcf3 CFRunLoopRunInMode + 106
25 WebCore                        0x38b2011b RunWebThread(void*) + 418
26 libsystem_pthread.dylib        0x3b828919 _pthread_body + 140
27 libsystem_pthread.dylib        0x3b82888b _pthread_start + 102

Comments

Most Favorite Posts

Pattern: Riblets vs. VIPER

Engineering the architecture behind Uber's new rider app

Not being held back by our extensive codebase and previous design choices gave us the freedom where we otherwise would have made compromises. The outcome is the sleek new app you see today, which implements a new mobile architecture across both iOS and Android. Read on to learn why we felt the need to create this new architecture pattern, called Riblets, and how it helps us reach our goals.

The platforms share:

Core architectureClass namesInheritance relationships between business logic unitsHow business logic is dividedPlugin points (names, existence, structure, etc.)Reactive programming chainsUnified platform components
Each Riblet is made up of one Router, Interactor, and Builder with its Component (hence the name), and optional Presenters and Views. The Router and Interactor handle the business logic, while the Presenter and View handle the view logic.

Uber

How to link to TestFlight App in iOS

There are two things you need to do. First, check to see if TestFlight is installed. Then create a new link to your app.

NSURL *customAppURL = [NSURL URLWithString:@"itms-beta://"];
if ([[UIApplication sharedApplication] canOpenURL:customAppURL]) {

    // TestFlight is installed

    // Special link that includes the app's Apple ID
    customAppURL = [NSURL URLWithString:@"https://beta.itunes.apple.com/v1/app/978489855"]; 
    [[UIApplication sharedApplication] openURL:customAppURL];
}

This special https://beta.itunes.apple.com URL will be opened directly in TestFlight.

Finally, if you are using iOS 9 (or later), you need to make an addition to your Info.plist to get the canOpenURL: method to work.

If your app is linked on or after iOS 9.0, you must declare the URL schemes you want to pass to this method. Do this by using the LSApplicationQueriesSchemes array in your Xcode project’s Info.plist file. For each URL scheme you want your app to use with this method, add it …

Implementing UI tests on iOS and Android using screenshot comparison tools

Have you ever thought when writing or maintaining UI tests, there must be a better way?

Take a look at screenshot tests provided by Google Firebase and Facebook:

ios-snapshot-test-case
A "snapshot test case" takes a configured UIView or CALayer and uses the renderInContext: method to get an image snapshot of its contents. It compares this snapshot to a "reference image" stored in your source code repository and fails the test if the two images don't match.

GitHub Facebook

screenshot-tests-for-android
Testing rendering for your Android app is hard. How do you prevent visual regressions in paddings and margins and colors from creeping in?
Iterating on UI code is hard. How do you quickly verify that your layout or view changes work correctly in all configurations?

screenshot-tests-for-android can solve these problems by providing a test framework that checks for visual differences across changes.

GitHub Facebook

Google Firebase Test Lab
Test Lab lets you run Espresso, …

iOS 7 Blur Effect

Combining a strong colour with a blurred and translucent UINavigationBar in iOS 7.

// cheers to @stroughtonsmith for helping out with this one
UIColor *barColour = [UIColor colorWithRed:0.13f green:0.14f blue:0.15f alpha:1.00f];

UIView *colourView = [[UIView alloc] initWithFrame:CGRectMake(0.f, -20.f, 320.f, 64.f)];
colourView.opaque = NO;
colourView.alpha = .7f;
colourView.backgroundColor = barColour;

self.navigationBar.barTintColor = barColour;

[self.navigationBar.layer insertSublayer:colourView.layer atIndex:1];

GitHub Gist
See also
iOS7-Trans-Blur

And also
myView.backgroundColor = [UIColor clearColor];
UIToolbar* bgToolbar = [[UIToolbar alloc] initWithFrame:myView.frame];
bgToolbar.barStyle = UIBarStyleDefault;
[myView.superview insertSubview:bgToolbar belowSubview:myView];

Why bother replicating the effect? Just draw a UIToolbar behind your view.
StackOverflow

Apps vs. Web

Eines scheint klar: Mobil büßt er gegenüber den Softwareprogrammen aus dem App-Store Nutzer ein. „Mittlerweile spielen Apps die wichtigste Rolle für den User – oder sie werden sie zumindest sehr bald spielen“, sagt Jan Wolter, Geschäftsführer von Applause EU.

Apps bieten also im Gegensatz zum Browser Schnelligkeit gepaart mit Einfachheit und Bequemlichkeit. Sie öffnen zwar nicht die Welt ins gesamte World Wide Web, wie es der Browser kann, aber sie öffnen die Welt, die man möchte, wenn man ihr Icon auf dem Tablet anklickt.

Die chinesische App WeChat geht noch weiter: Neben einem Messenger, vergleichbar mit WhatsApp, bietet sie einen Lieferdienst à la Lieferando, die Möglichkeit etwa das eigene Konto zu checken (wie sonst bei der Bank-App) und gleichzeitig die Chance etwa Promis zu folgen, wie es Twitter bietet.

Solche Alpha-Apps können dadurch verschiedene Aspekte und Möglichkeiten des Internets verbinden und werden so zum idealen Zugangsportal zum Netz – so wie traditionell der Brows…

Alpha Apps vs. App Unbundling

Aktuell wird viel über das Modell der "Alpha Apps" und "App Unbundling" gesprochen.
Hier kurz eine Übersicht und meine 5 cents:
Alpha Apps
Die chinesische App WeChat geht noch weiter: Neben einem Messenger, vergleichbar mit WhatsApp, bietet sie einen Lieferdienst à la Lieferando, die Möglichkeit etwa das eigene Konto zu checken (wie sonst bei der Bank-App) und gleichzeitig die Chance etwa Promis zu folgen, wie es Twitter bietet.

Solche Alpha-Apps können dadurch verschiedene Aspekte und Möglichkeiten des Internets verbinden und werden so zum idealen Zugangsportal zum Netz – so wie traditionell der Browser am Computer. Den Tod des Browsers bedeutet das aber noch lange nicht.

Der Browser ist tot, es lebe der Browser!
Wirtschafts Woche


App Unbundling Unbundling steht für das Unterteilen von Apps oder verschiedener Funktionen in mehrere, eigenständige Applikationen.

Aber nicht jede Unbundling Aktion wird positiv von Usern aufgenommen. Facebook Messenger erhielt hunderte mi…

iOS: LLVM based mutation testing to check your unit test reliability, Android and Kotlin: JVM based mutation testing

LLVM-BASED MUTATION TESTING SYSTEM

Several years ago I discovered very powerful technique - Mutation Testing. Since then I was (and still am) dreaming to have a tool which will do the job for languages like C, Objective-C and C++.

Now I have confidence in that it can be implemented using LLVM.

Outline for this article:

overview of mutation testingmutation testing system - proof of conceptthoughts on potential implementation of MT system using LLVM
LowLevelBits
Mutation testing system built on top of LLVM on GitHub.
mull-project / mull


JVM-BASED MUTATION TESTING

PIT is a state of the art mutation testing system, providing gold standard test coverage for Java and the jvm. It's fast, scalable and integrates with modern test and build tooling.

PIT Mutation Testing