I’ve been forced to update a project from G1 (I was using v1087 originally, then 1262 for iOS 7 release, but it had bugs that forced an update to a G2 version, which even with compatibility mode has require a lot of work, and now I’m down to using a whole 1 official widget (spinner!) as I needed to do my own scrollView which went beserk on the update).
So, now I get a repeatable hard crash in the simulator when you attempt to log in to google apps using oauth2. I get as far as the popup screen with the ‘cancel’ and ‘Accept’, and clicking accept crashes the simulator and outputs the following to the console before it too vanishes.
I will attempt to narrow down exactly when it happens (IE on the login callback, or the future calls I make based off of the login details), but for now, the following output might help give some clue as to what is going on (apologies for the LUA tag, but GIST doesn’t appear to work):
The window pops up using native.showWebPopup()
[lua]
/Applications/CoronaSDK\ -\ 2187/Corona\ Terminal; exit;
Last login: Sun Mar 2 23:30:27 on ttys000
Macintosh:~ Work$ /Applications/CoronaSDK\ -\ 2187/Corona\ Terminal; exit;
2014-03-03 02:12:36.694 Corona Simulator[615:507]
Copyright © 2009-2014 C o r o n a L a b s I n c .
2014-03-03 02:12:36.694 Corona Simulator[615:507] Version: 3.0.0
2014-03-03 02:12:36.695 Corona Simulator[615:507] Build: 2014.2187
2014-03-03 02:12:39.868 Corona Simulator[615:507] Platform: iPhone / x86_64 / 10.9 / NVIDIA GeForce 320M OpenGL Engine / 2.1 NVIDIA-8.18.28 310.40.05f01
2014-03-03 02:12:44.537 Corona Simulator[615:507] The file sandbox for this project is located at the following folder:
(/Users/Work/Library/Application Support/Corona Simulator/Steinerskolen - v1.3 - G2-990EE125BD97ED7073A9F70E8BE7703C)
2014-03-03 02:12:47.784 Corona Simulator[615:507] WARNING: Simulator does not support multitouch events
259
1 0x7fff85a70c1f WTF::fastZeroedMalloc(unsigned long)
2 0x7fff8a41bc96 WTF::HashTable<WTF::String, WTF::KeyValuePair<WTF::String, WTF::OwnPtr<WebCore::InspectorState> >, WTF::KeyValuePairKeyExtractor<WTF::KeyValuePair<WTF::String, WTF::OwnPtr<WebCore::InspectorState> > >, WTF::StringHash, WTF::HashMapValueTraits<WTF::HashTraits<WTF::String>, WTF::HashTraits<WTF::OwnPtr<WebCore::InspectorState> > >, WTF::HashTraits<WTF::String> >::rehash(int)
3 0x7fff8a41bafc WTF::HashTableAddResult<WTF::HashTableIterator<WTF::String, WTF::KeyValuePair<WTF::String, WTF::OwnPtr<WebCore::InspectorState> >, WTF::KeyValuePairKeyExtractor<WTF::KeyValuePair<WTF::String, WTF::OwnPtr<WebCore::InspectorState> > >, WTF::StringHash, WTF::HashMapValueTraits<WTF::HashTraits<WTF::String>, WTF::HashTraits<WTF::OwnPtr<WebCore::InspectorState> > >, WTF::HashTraits<WTF::String> > > WTF::HashTable<WTF::String, WTF::KeyValuePair<WTF::String, WTF::OwnPtr<WebCore::InspectorState> >, WTF::KeyValuePairKeyExtractor<WTF::KeyValuePair<WTF::String, WTF::OwnPtr<WebCore::InspectorState> > >, WTF::StringHash, WTF::HashMapValueTraits<WTF::HashTraits<WTF::String>, WTF::HashTraits<WTF::OwnPtr<WebCore::InspectorState> > >, WTF::HashTraits<WTF::String> >::add<WTF::HashMapTranslator<WTF::HashMapValueTraits<WTF::HashTraits<WTF::String>, WTF::HashTraits<WTF::OwnPtr<WebCore::InspectorState> > >, WTF::StringHash>, WTF::String, WTF::PassOwnPtr<WebCore::InspectorState> >(WTF::String const&, WTF::PassOwnPtr<WebCore::InspectorState> const&)
4 0x7fff8a41afc8 WebCore::InspectorCompositeState::createAgentState(WTF::String const&)
5 0x7fff8a41aeb3 WebCore::InspectorBaseAgentInterface::InspectorBaseAgentInterface(WTF::String const&, WebCore::InstrumentingAgents*, WebCore::InspectorCompositeState*)
6 0x7fff8a41c4e9 WebCore::InspectorTimelineAgent::InspectorTimelineAgent(WebCore::InstrumentingAgents*, WebCore::InspectorPageAgent*, WebCore::InspectorMemoryAgent*, WebCore::InspectorCompositeState*, WebCore::InspectorTimelineAgent::InspectorType, WebCore::InspectorClient*)
7 0x7fff8a41a635 WebCore::InspectorController::InspectorController(WebCore::Page*, WebCore::InspectorClient*)
8 0x7fff8a41a21f WebCore::InspectorController::create(WebCore::Page*, WebCore::InspectorClient*)
9 0x7fff8a419bc8 WebCore::Page::Page(WebCore::Page::PageClients&)
10 0x7fff8befd066 -[WebView(WebPrivate) _commonInitializationWithFrameName:groupName:]
11 0x7fff8bf0ed95 -[WebView(WebPrivate) _initWithFrame:frameName:groupName:usesDocumentViews:]
12 0x7fff8bf0ecd1 -[WebView initWithFrame:frameName:groupName:]
13 0x10b9af998 start
14 0x10b9afa5f start
15 0x10b9b0304 start
16 0x10ba1c3b4 Corona::LuaLibrary::GetLibrary(lua_State*)
17 0x10ba718e5 luaD_precall
18 0x10ba801bf luaV_execute
19 0x10ba71c5b luaD_call
20 0x10ba81483 luai_objcttry
21 0x10ba71f10 luaD_pcall
22 0x10ba6ac8b lua_pcall
23 0x10ba41d62 Corona::LuaLibrary::GetLibrary(lua_State*)
24 0x10ba41c8e Corona::LuaLibrary::GetLibrary(lua_State*)
25 0x10c10aadf -[LuaCallback callWithNetworkRequestState:]
26 0x10c108b5b -[CoronaConnectionDelegate connectionDidFinishLoading:]
27 0x7fff86da771d __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke
28 0x7fff86da764d -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]
29 0x7fff86da753c -[NSURLConnectionInternal _withActiveConnectionAndDelegate:]
30 0x7fff83b32284 invocation function for block in URLConnectionClient_Classic::_delegate_didFinishLoading(void () block_pointer)
31 0x7fff83be8820 invocation function for block in URLConnectionClient_Classic::_withDelegateAsync(char const*, void (_CFURLConnection*, CFURLConnectionClientCurrent_VMax const*) block_pointer)
[/lua]