{"action":"created","issue":{"url":"https://api.github.com/repos/firebase/Firebase-Unity/issues/46","repository_url":"https://api.github.com/repos/firebase/Firebase-Unity","labels_url":"https://api.github.com/repos/firebase/Firebase-Unity/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/firebase/Firebase-Unity/issues/46/comments","events_url":"https://api.github.com/repos/firebase/Firebase-Unity/issues/46/events","html_url":"https://github.com/firebase/Firebase-Unity/issues/46","id":158310502,"number":46,"title":"Crash on Android","user":{"login":"christianstrang","id":1850464,"avatar_url":"https://avatars.githubusercontent.com/u/1850464?v=3","gravatar_id":"","url":"https://api.github.com/users/christianstrang","html_url":"https://github.com/christianstrang","followers_url":"https://api.github.com/users/christianstrang/followers","following_url":"https://api.github.com/users/christianstrang/following{/other_user}","gists_url":"https://api.github.com/users/christianstrang/gists{/gist_id}","starred_url":"https://api.github.com/users/christianstrang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianstrang/subscriptions","organizations_url":"https://api.github.com/users/christianstrang/orgs","repos_url":"https://api.github.com/users/christianstrang/repos","events_url":"https://api.github.com/users/christianstrang/events{/privacy}","received_events_url":"https://api.github.com/users/christianstrang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-03T07:50:18Z","updated_at":"2016-06-03T11:49:52Z","closed_at":null,"body":"I managed to get the firebase unity plugin to work in the editor (entries are added to the database) but once I build it for android, it immediately crashes. I'm using the same code from the example:\r\n\r\n`﻿using UnityEngine;\r\nusing System.Collections;\r\npublic class TestScript : MonoBehaviour {\r\n\tIFirebase firebase;\r\n\r\n\t// Use this for initialization\r\n\tvoid Start () {\r\n\t    firebase = Firebase.CreateNew (\"https://***********.firebaseio.com/testing\");\r\n        \r\n        /*\r\n        firebase.AuthWithPassword (\"benwu@google.com\", \"password\", (AuthData auth) => {\r\n\t\t\tDebug.Log (\"auth success!!\" + auth.Uid);\r\n\t\t}, (FirebaseError e) => {\r\n\t\t\tDebug.Log (\"auth failure!!\");\r\n\t\t});\r\n        */\r\n\r\n\t\tfirebase.ChildAdded += (object sender, FirebaseChangedEventArgs e) => {\r\n\t\t\tDebug.Log (\"Child added!\");\r\n\t\t};\r\n        \r\n        firebase.ChildRemoved += (object sender, FirebaseChangedEventArgs e) => {\r\n\t\t\tDebug.Log (\"Child removed!\");\r\n\t\t};\r\n        \r\n\t\tfirebase.SetValue (\"SetValue working?\");\r\n\t\tfirebase.SetJsonValue(\"{\\\"example_child\\\":{\\\"child_working\\\" : true}}\");\r\n        \r\n\t}\r\n\t\r\n\t// Update is called once per frame\r\n\tvoid Update () {\r\n\t\r\n\t}\r\n}`\r\n\r\nI read this part from the readme, though these aren't related, are they?\r\n\r\n> Threading: Unity does not allow game object modifications from any thread other than the Main thread. Firebase operates on a separate thread for performance reasons, and so you can not directly edit game objects from your firebase event responses."},"comment":{"url":"https://api.github.com/repos/firebase/Firebase-Unity/issues/comments/223559118","html_url":"https://github.com/firebase/Firebase-Unity/issues/46#issuecomment-223559118","issue_url":"https://api.github.com/repos/firebase/Firebase-Unity/issues/46","id":223559118,"user":{"login":"christianstrang","id":1850464,"avatar_url":"https://avatars.githubusercontent.com/u/1850464?v=3","gravatar_id":"","url":"https://api.github.com/users/christianstrang","html_url":"https://github.com/christianstrang","followers_url":"https://api.github.com/users/christianstrang/followers","following_url":"https://api.github.com/users/christianstrang/following{/other_user}","gists_url":"https://api.github.com/users/christianstrang/gists{/gist_id}","starred_url":"https://api.github.com/users/christianstrang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianstrang/subscriptions","organizations_url":"https://api.github.com/users/christianstrang/orgs","repos_url":"https://api.github.com/users/christianstrang/repos","events_url":"https://api.github.com/users/christianstrang/events{/privacy}","received_events_url":"https://api.github.com/users/christianstrang/received_events","type":"User","site_admin":false},"created_at":"2016-06-03T11:49:52Z","updated_at":"2016-06-03T11:49:52Z","body":"Thank you for your quick reply!\r\nIt crashes even if I only have the following line (and everything else commented out):\r\n`firebase = Firebase.CreateNew (\"https://pocket-ai-8664452.firebaseio.com/testing\");`\r\n\r\nRunning the command gives me the following:\r\n`D/Unity   (10539):  GL_AMD_compressed_ATC_texture GL_AMD_performance_monitor GL_AMD_program_binary_Z400 GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_robustness GL_EXT_texture_format_BGRA8888 GL_EXT_texture_type_2_10_10_10_REV GL_NV_fence GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth_texture GL_OES_depth24 GL_OES_EGL_image GL_OES_EGL_sync GL_OES_EGL_image_external GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_fragment_precision_high GL_OES_get_program_binary GL_OES_packed_depth_stencil GL_OES_depth_texture_cube_map GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_3D GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_half_float GL_OES_vertex_type_10_10_10_2 GL_OES_vertex_array_object GL_QCOM_alpha_test GL_QCOM_binning_control GL_QCOM_driver_control GL_QCOM_perfmon_global_mode GL_QCOM_extended_get GL_QCOM_extended_get2 GL_QCOM_tiled_rendering GL_QCOM_writeonly_rendering GL_EXT_sRGB GL_EXT_sRGB_write_control GL_EXT\r\nD/Unity   (10539): _texture_sRGB_decode GL_EXT_texture_filter_anisotropic GL_EXT_multisampled_render_to_texture GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_EXT_disjoint_timer_query\r\nI/Unity   (10539): Firebase: attempting to initialize\r\nI/Unity   (10539):\r\nI/Unity   (10539): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)\r\nI/Unity   (10539):\r\nI/Unity   (10539): Firebase: set Context!\r\nI/Unity   (10539):\r\nI/Unity   (10539): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)\r\nI/Unity   (10539):\r\nE/Unity   (10539): RenderTexture warning: Destroying active render texture. Switching to main context.\r\nE/Unity   (10539):\r\nE/Unity   (10539): (Filename:  Line: 630)\r\nE/Unity   (10539):\r\n`"}}
{"actor":{"display_login":"christianstrang"}}