Skip to content

Instantly share code, notes, and snippets.

string_multimap.rs:33:47: 33:52 error: type `core::iter::Map<'_, &collections::vec::Vec<*mut types::cef_string_utf8>, uint, core::iter::Map<'_, (&collections::string::String, &collections::vec::Vec<*mut types::cef_string_utf8>), &collections::vec::Vec<*mut types::cef_string_utf8>, collections::tree::map::Entries<'_, collections::string::String, collections::vec::Vec<*mut types::cef_string_utf8>>>>` does not implement any method in scope named `sum`
string_multimap.rs:33 (*v).values().map(|val| (*val).len()).sum()
#[no_mangle]
pub extern "C" fn cef_run_message_loop() {
native::start(0, 0 as *const *const u8, proc() {
GLOBAL_BROWSERS.get().map(|rbrs| {
unsafe {
let brs = rbrs.borrow_mut();
let mut num = 0 as uint;
for sb in brs.iter() {
(**sb).window = glfw_app::create_window();
(**sb).servo_browser = Browser::new(Some((**sb).window.clone()));
@zmike
zmike / cef_test_string.c
Created November 26, 2014 23:55
cef string usage
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#define CEF_STRING_TYPE_UTF8
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
#include <assert.h>
#include "cef.h"
#0 0x00000038f960f1cd in read () from /lib64/libpthread.so.0
#1 0x0000003927aede0f in _evas_async_events_process_single () at lib/evas/canvas/evas_async_events.c:162
#2 0x0000003927aee00e in evas_async_events_process_blocking () at lib/evas/canvas/evas_async_events.c:253
#3 0x0000003927ae5b55 in evas_render_rendering_wait (evas=0x1734930) at lib/evas/canvas/evas_render.c:1903
#4 0x0000003927a67b50 in _evas_image_native_surface_set (eo_obj=0x8000006d4000036b, o=0x1c6e780, surf=0x0)
at lib/evas/canvas/evas_object_image.c:1865
#5 0x0000003927a746dd in evas_obj_image_native_surface_set (surf=0x0)
at ../src/lib/evas/canvas/evas_image.eo.c:148
#6 0x0000003927a67aff in evas_object_image_native_surface_set (eo_obj=0x8000006d4000036b, surf=0x0)
at lib/evas/canvas/evas_object_image.c:1857
#0 0x00000038f960f9bd in pause () from /lib64/libpthread.so.0
#1 0x000000000043ec16 in e_alert_show () at src/bin/e_alert.c:43
#2 0x0000000000525c46 in e_sigseg_act (x=11, info=0x7f24a0bcda30, data=0x7f24a0bcd900) at src/bin/e_signals.c:75
#3 <signal handler called>
#4 0x0000003927b68bb9 in evas_common_scale_rgba_sample_draw (src=0x1e070b0, dst=0x1ee0fe0, dst_clip_x=6,
dst_clip_y=6, dst_clip_w=737, dst_clip_h=178, mul_col=4177066232, render_op=0, src_region_x=0,
src_region_y=0, src_region_w=739, src_region_h=179, dst_region_x=6, dst_region_y=6, dst_region_w=737,
dst_region_h=178, mask_ie=0x0, mask_x=0, mask_y=0) at lib/evas/common/evas_scale_sample.c:314
#5 0x0000003927ba89f0 in _draw_thread_image_draw (data=0x1d1a730)
at modules/evas/engines/software_generic/evas_engine.c:1331
#0 ecore_wl_window_surface_create (win=0x16e76c0) at lib/ecore_wayland/ecore_wl_window.c:295
#1 0x00007f38221befa4 in ecore_wl_window_show (win=0x16e76c0) at lib/ecore_wayland/ecore_wl_window.c:314
#2 0x00007f38194d0f0e in _ecore_evas_wl_show (ee=0x17ab910)
at modules/ecore_evas/engines/wayland/ecore_evas_wayland_shm.c:303
#3 0x00007f3824616410 in ecore_evas_show (ee=0x17ab910) at lib/ecore_evas/ecore_evas.c:1428
#4 0x000000308dcc1f19 in _elm_win_evas_object_smart_show (obj=0x800000056000002c, sd=0x17a47f0)
at elm_win.c:1402
#5 0x00007f3824b056e8 in evas_obj_smart_show () at ../src/lib/evas/canvas/evas_object_smart.eo.c:32
#6 0x00007f3824aeebbf in _show (eo_obj=0x800000056000002c, obj=0x17a4570)
at lib/evas/canvas/evas_object_main.c:1206
Breakpoint 1, e_client_new (c=0x0, cp=0x155e0a0, first_map=0, internal=1) at src/bin/e_client.c:2407
2407 if (eina_hash_find(clients_hash, &cp)) return NULL;
#0 e_client_new (c=0x0, cp=0x155e0a0, first_map=0, internal=1) at src/bin/e_client.c:2407
#1 0x00007f1a0dc5f27c in _e_xdg_shell_cb_popup_get (client=0x1a8cf00, resource=0x1a8ee70, id=23, surface_resource=0x1719f20, parent_resource=0x1a93b40, seat_resource=0x1411a30, serial=5, x=100, y=94, flags=0) at src/modules/wl_desktop_shell/e_mod_main.c:1236
#2 0x0000003f19005db0 in ffi_call_unix64 () from /lib64/libffi.so.6
Breakpoint 1, e_client_new (c=0x0, cp=0x155e0a0, first_map=0, internal=1) at src/bin/e_client.c:2407
2407 if (eina_hash_find(clients_hash, &cp)) return NULL;
#0 e_client_new (c=0x0, cp=0x155e0a0, first_map=0, internal=1) at src/bin/e_client.c:2407
#1 0x00007f1a0dc5f27c in _e_xdg_shell_cb_popup_get (client=0x1a8cf00, resource=0x1a8ee70, id=51, surface_resource=0x1719f20, parent_resource=0x1a93b40, seat_resource=0x1411a30, serial=5, x=
==23782== Invalid read of size 4
==23782== at 0x3F2D001CB7: _XcursorAddPathElt (xcursor.c:631)
==23782== by 0x3F2D001F51: _XcursorBuildFullname (xcursor.c:722)
==23782== by 0x3F2D002B57: xcursor_load_theme (xcursor.c:944)
==23782== by 0x3F2D001569: wl_cursor_theme_load (wayland-cursor.c:406)
==23782== by 0x7D44557: _ecore_wl_cb_handle_global (ecore_wl.c:666)
==23782== by 0x3F19005DAF: ffi_call_unix64 (in /usr/lib64/libffi.so.6.0.2)
==23782== by 0x3F19005817: ffi_call (in /usr/lib64/libffi.so.6.0.2)
==23782== by 0x3F27808621: wl_closure_invoke (connection.c:942)
==23782== by 0x3F2780587F: dispatch_event.isra.6 (wayland-client.c:1168)
==30709== Invalid read of size 8
==30709== at 0x52C5E59: _edje_emit_full (edje_program.c:1130)
==30709== by 0x52C5E36: _edje_emit (edje_program.c:1120)
==30709== by 0x524ABC0: _edje_mouse_in_signal_cb (edje_callbacks.c:69)
==30709== by 0xF85B476: _eo_base_event_callback_call (eo_base_class.c:696)
==30709== by 0xF85DAE0: eo_event_callback_call (in /usr/lib64/libeo.so.1.13.99)
==30709== by 0x5558C55: evas_object_event_callback_call (evas_callbacks.c:260)
==30709== by 0x5558D00: evas_object_event_callback_call (evas_callbacks.c:280)
==30709== by 0x5563149: _canvas_event_feed_mouse_move_internal (evas_events.c:1697)
==30709== by 0x5563BD4: _evas_canvas_event_input_mouse_move (evas_events.c:1907)
diff --git a/src/modules/Makefile_geolocation.mk b/src/modules/Makefile_geolocation.mk
index b9a1596..79182e1 100644
--- a/src/modules/Makefile_geolocation.mk
+++ b/src/modules/Makefile_geolocation.mk
@@ -21,6 +21,7 @@ src/modules/geolocation/eldbus_utils.h
MAINTAINERCLEANFILES += $(GEO_GEN)
+src/modules/geolocation/e_mod_main.c: $(GEO_GEN)
$(GEO_GEN): src/modules/geolocation/org.freedesktop.GeoClue2.xml