You have been subscribed to a public bug:
This is reproducible with trunk of both packages on the desktop. 0. launch the click scope manually with G_MESSAGES_DEBUG=all, or tail ~/.cache/unity-scope-click.log 1. swipe to the apps page in the dash 2. search for an app (I've been using "tabu", but that won't show up unless you started the scope with CLICK_PACKAGE_ARCH=armhf or you're on an armhf device already. any search that returns at least one result should do.) 3. click on the app's icon to show the preview # the scope log may show either one or two accesses to the web api, with the following line: [unity-scope-click] - DEBUG: click-webservice.vala:305: calling https://search.apps.ubuntu.com/api/v1/package/com.ubuntu.developer.danielbeck.ramsamsamreader 4. close the preview, then click again to show it again. # there will now definitely be two new requests logged: [unity-scope-click] - DEBUG: click-webservice.vala:305: calling https://search.apps.ubuntu.com/api/v1/package/com.ubuntu.developer.danielbeck.ramsamsamreader [unity-scope-click] - DEBUG: click-webservice.vala:305: calling https://search.apps.ubuntu.com/api/v1/package/com.ubuntu.developer.danielbeck.ramsamsamreader EXPECTED: I expected only one request for a preview to be made when tapping the second time. NOTE: if you continue to close and reopen previews, it continues to be exactly two requests - they don't accumulate further. In trying to see if the scope was doing something wrong, I got backtraces from both requests, which show that they are both coming from completely separate activations, not from duplicated calls within the scope: (gdb) bt #0 click_webservice_real_get_details_co (_data_=0x81335a0) at /home/mmccrack/src/unity-scope-click/trunk/src/click-webservice.vala:309 #1 0x0805b247 in click_webservice_get_details (self=0x8080018, app_name=0x81f41b8 "com.ubuntu.developer.diegosarmentero.tabugame", _callback_=_callback_@entry=0x8050580 <click_scope_build_app_preview_ready>, _user_data_=_user_data_@entry=0x828b2d8) at /home/mmccrack/src/unity-scope-click/trunk/src/click-webservice.vala:238 #2 0x0804fdb0 in click_scope_build_app_preview_co (_data_=_data_@entry=0x828b2d8) at /home/mmccrack/src/unity-scope-click/trunk/src/click-scope.vala:118 #3 0x08050578 in click_scope_build_app_preview (self=0x807e280, _result_=_result_@entry=0x81828c4, _callback_=_callback_@entry=0x8053520 <click_scope_build_uninstalled_preview_ready>, _user_data_=_user_data_@entry=0x8182848) at /home/mmccrack/src/unity-scope-click/trunk/src/click-scope.vala:65 #4 0x08053295 in click_scope_build_uninstalled_preview_co (_data_=_data_@entry=0x8182848) at /home/mmccrack/src/unity-scope-click/trunk/src/click-scope.vala:140 #5 0x08053518 in click_scope_build_uninstalled_preview (self=0x807e280, _result_=_result_@entry=0x82e5228, _callback_=_callback_@entry=0x8054130 <click_scope_build_default_preview_ready>, _user_data_=_user_data_@entry=0x82e51c0) at /home/mmccrack/src/unity-scope-click/trunk/src/click-scope.vala:65 #6 0x08053e23 in click_scope_build_default_preview_co (_data_=_data_@entry=0x82e51c0) at /home/mmccrack/src/unity-scope-click/trunk/src/click-scope.vala:193 #7 0x08054058 in click_scope_build_default_preview (self=0x807e280, _result_=_result_@entry=0xbfffebcc, _callback_=_callback_@entry=0x8054230 <___lambda10__gasync_ready_callback>, _user_data_=_user_data_@entry=0x82d2500) at /home/mmccrack/src/unity-scope-click/trunk/src/click-scope.vala:65 #8 0x08054115 in click_previewer_real_run_async (base=0x81c6c58, async_callback=0x4007db10, async_callback_target=0x82d2780) at /home/mmccrack/src/unity-scope-click/trunk/src/click-scope.vala:58 #9 0x4007935f in unity_result_previewer_run_async () from /usr/lib/i386-linux-gnu/libunity.so.9 #10 0x4007c5b1 in ?? () from /usr/lib/i386-linux-gnu/libunity.so.9 #11 0x4007c73d in ?? () from /usr/lib/i386-linux-gnu/libunity.so.9 #12 0x40082934 in ?? () from /usr/lib/i386-linux-gnu/libunity.so.9 #13 0x4023e5ad in unity_protocol_scope_service_activate () from /usr/lib/i386-linux-gnu/libunity/libunity-protocol-private.so.0 #14 0x4023f5cb in ?? () from /usr/lib/i386-linux-gnu/libunity/libunity-protocol-private.so.0 #15 0x403dc33f in ?? () from /usr/lib/i386-linux-gnu/libgio-2.0.so.0 #16 0x40524910 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0 #17 0x40527bd7 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0 #18 0x40527f98 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0 #19 0x405283fb in g_main_loop_run () from /lib/i386-linux-gnu/libglib-2.0.so.0 #20 0x4007b512 in unity_scope_dbus_connector_run () from /usr/lib/i386-linux-gnu/libunity.so.9 #21 0x0804ecca in _vala_main () at click-scope-main.c:321 #22 0x0804e81f in main (argc=1, argv=0xbffff184) at click-scope-main.c:334 (gdb) c Continuing. (process:22413): DEBUG: click-webservice.vala:309: calling https://search.apps.ubuntu.com/api/v1/package/com.ubuntu.developer.diegosarmentero.tabugame Breakpoint 1, click_webservice_real_get_details_co (_data_=0x8133510) at /home/mmccrack/src/unity-scope-click/trunk/src/click-webservice.vala:309 309 debug ("calling %s", url); (gdb) bt #0 click_webservice_real_get_details_co (_data_=0x8133510) at /home/mmccrack/src/unity-scope-click/trunk/src/click-webservice.vala:309 #1 0x0805b247 in click_webservice_get_details (self=0x8080018, app_name=0x81f8fa0 "com.ubuntu.developer.diegosarmentero.tabugame", _callback_=_callback_@entry=0x8050580 <click_scope_build_app_preview_ready>, _user_data_=_user_data_@entry=0x828b440) at /home/mmccrack/src/unity-scope-click/trunk/src/click-webservice.vala:238 #2 0x0804fdb0 in click_scope_build_app_preview_co (_data_=_data_@entry=0x828b440) at /home/mmccrack/src/unity-scope-click/trunk/src/click-scope.vala:118 #3 0x08050578 in click_scope_build_app_preview (self=0x807e280, _result_=_result_@entry=0x8182a74, _callback_=_callback_@entry=0x8053520 <click_scope_build_uninstalled_preview_ready>, _user_data_=_user_data_@entry=0x81829f8) at /home/mmccrack/src/unity-scope-click/trunk/src/click-scope.vala:65 #4 0x08053295 in click_scope_build_uninstalled_preview_co (_data_=_data_@entry=0x81829f8) at /home/mmccrack/src/unity-scope-click/trunk/src/click-scope.vala:140 #5 0x08053518 in click_scope_build_uninstalled_preview (self=0x807e280, _result_=_result_@entry=0x82e5308, _callback_=_callback_@entry=0x8054130 <click_scope_build_default_preview_ready>, _user_data_=_user_data_@entry=0x82e52a0) at /home/mmccrack/src/unity-scope-click/trunk/src/click-scope.vala:65 #6 0x08053e23 in click_scope_build_default_preview_co (_data_=_data_@entry=0x82e52a0) at /home/mmccrack/src/unity-scope-click/trunk/src/click-scope.vala:193 #7 0x08054058 in click_scope_build_default_preview (self=0x807e280, _result_=_result_@entry=0xbfffebcc, _callback_=_callback_@entry=0x8054230 <___lambda10__gasync_ready_callback>, _user_data_=_user_data_@entry=0x82d27d0) at /home/mmccrack/src/unity-scope-click/trunk/src/click-scope.vala:65 #8 0x08054115 in click_previewer_real_run_async (base=0x81c6ca0, async_callback=0x4007db10, async_callback_target=0x81f8910) at /home/mmccrack/src/unity-scope-click/trunk/src/click-scope.vala:58 #9 0x4007935f in unity_result_previewer_run_async () from /usr/lib/i386-linux-gnu/libunity.so.9 #10 0x4007c5b1 in ?? () from /usr/lib/i386-linux-gnu/libunity.so.9 #11 0x4007c73d in ?? () from /usr/lib/i386-linux-gnu/libunity.so.9 #12 0x40082934 in ?? () from /usr/lib/i386-linux-gnu/libunity.so.9 #13 0x4023e5ad in unity_protocol_scope_service_activate () from /usr/lib/i386-linux-gnu/libunity/libunity-protocol-private.so.0 #14 0x4023f5cb in ?? () from /usr/lib/i386-linux-gnu/libunity/libunity-protocol-private.so.0 #15 0x403dc33f in ?? () from /usr/lib/i386-linux-gnu/libgio-2.0.so.0 #16 0x40524910 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0 #17 0x40527bd7 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0 #18 0x40527f98 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0 #19 0x405283fb in g_main_loop_run () from /lib/i386-linux-gnu/libglib-2.0.so.0 #20 0x4007b512 in unity_scope_dbus_connector_run () from /usr/lib/i386-linux-gnu/libunity.so.9 #21 0x0804ecca in _vala_main () at click-scope-main.c:321 #22 0x0804e81f in main (argc=1, argv=0xbffff184) at click-scope-main.c:334 (gdb) c ** Affects: unity8 (Ubuntu) Importance: Undecided Status: Expired -- [Dash] clicking on search result causes click scope to receive two activations https://bugs.launchpad.net/bugs/1263246 You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to unity8 in Ubuntu. -- Mailing list: https://launchpad.net/~touch-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp

