[gtk-vnc-devel] Embedding gtk-vnc in a scrolled window inside Mozilla == unhappiness



As a very simple change, I'm trying to put a scrolled window around the Gtk-VNC plugin in Mozilla. To cut a long story short, if the scrolled window's scrollbar policies are set to AUTOMATIC/AUTOMATIC, I get an absolutely crazy 67,000 line stack trace. Below are the top 100 entries. There's not much "periodicity" in the stack trace that I can determine. Seems like random Gtk widgets signalling each other over and over in a rather undefined order.

If the adjustments are set to ALWAYS/ALWAYS then I don't get a stack overflow, but the scrollbars don't appear (well, actually they do appear but they are 1 px thin, so somewhat tricky to use unless the user has very good motor skills).

Of course the same code works fine in a standalone C program, virt-viewer, virt-manager, etc.

If anyone's got any idea, please let me know. Otherwise I'll just keep chipping away at it ... Next step is to try a standalone C program using GtkSocket & GtkPlug explicitly.

Rich.

#67277 0x0000003f87f1aa9d in gtk_viewport_size_allocate (widget=0x139b2c0,
    allocation=0x2aaabe8a0810) at gtkviewport.c:788
#67278 0x000000365160b260 in IA__g_closure_invoke (closure=0xa5ccd0,
    return_value=0x0, n_param_values=2, param_values=0x2aaabe8a0480,
    invocation_hint=0x2aaabe8a0350) at gclosure.c:490
#67279 0x000000365161ac7d in signal_emit_unlocked_R (node=0xa5cd80, detail=0,
    instance=0x139b2c0, emission_return=0x0,
    instance_and_params=0x2aaabe8a0480) at gsignal.c:2370
#67280 0x000000365161bc73 in IA__g_signal_emit_valist (instance=0x139b2c0,
    signal_id=<value optimized out>, detail=0, var_args=0x2aaabe8a0700)
    at gsignal.c:2199
#67281 0x000000365161be43 in IA__g_signal_emit (instance=0x3f88008f02,
    signal_id=2281737986, detail=19911232) at gsignal.c:2243
#67282 0x0000003f87f237d2 in IA__gtk_widget_size_allocate (widget=0x139b2c0,
    allocation=0x2aaabe8a08d0) at gtkwidget.c:3815
#67283 0x0000003f87e2318c in gtk_scrolled_window_size_allocate (
widget=0x139b180, allocation=0x2aaabe8a0f50) at gtkscrolledwindow.c:1372
#67284 0x000000365160b260 in IA__g_closure_invoke (closure=0xa5ccd0,
    return_value=0x0, n_param_values=2, param_values=0x2aaabe8a0bc0,
    invocation_hint=0x2aaabe8a0a90) at gclosure.c:490
#67285 0x000000365161ac7d in signal_emit_unlocked_R (node=0xa5cd80, detail=0,
    instance=0x139b180, emission_return=0x0,
    instance_and_params=0x2aaabe8a0bc0) at gsignal.c:2370
#67286 0x000000365161bc73 in IA__g_signal_emit_valist (instance=0x139b180,
    signal_id=<value optimized out>, detail=0, var_args=0x2aaabe8a0e40)
    at gsignal.c:2199
#67287 0x000000365161be43 in IA__g_signal_emit (instance=0x3f88008f02,
    signal_id=2281737986, detail=19911232) at gsignal.c:2243
#67288 0x0000003f87f237d2 in IA__gtk_widget_size_allocate (widget=0x139b180,
    allocation=0x2aaabe8a0fe0) at gtkwidget.c:3815
#67289 0x0000003f87de2f50 in gtk_plug_size_allocate (widget=0x75a0b0,
    allocation=0x2aaabe8a1620) at gtkplug.c:701
#67290 0x000000365160b260 in IA__g_closure_invoke (closure=0xa5ccd0,
    return_value=0x0, n_param_values=2, param_values=0x2aaabe8a1290,
    invocation_hint=0x2aaabe8a1160) at gclosure.c:490
#67291 0x000000365161ac7d in signal_emit_unlocked_R (node=0xa5cd80, detail=0, instance=0x75a0b0, emission_return=0x0, instance_and_params=0x2aaabe8a1290)
    at gsignal.c:2370
#67292 0x000000365161bc73 in IA__g_signal_emit_valist (instance=0x75a0b0,
    signal_id=<value optimized out>, detail=0, var_args=0x2aaabe8a1510)
    at gsignal.c:2199
#67293 0x000000365161be43 in IA__g_signal_emit (instance=0x3f88008f02,
    signal_id=2281737986, detail=19911232) at gsignal.c:2243
#67294 0x0000003f87f237d2 in IA__gtk_widget_size_allocate (widget=0x75a0b0,
    allocation=0x2aaabe8a16b0) at gtkwidget.c:3815
#67295 0x0000003f87e31e30 in gtk_socket_size_allocate (widget=0xaa1af0,
    allocation=0x2aaabe8a1d10) at gtksocket.c:455
#67296 0x000000365160b260 in IA__g_closure_invoke (closure=0xa5ccd0,
    return_value=0x0, n_param_values=2, param_values=0x2aaabe8a1980,
    invocation_hint=0x2aaabe8a1850) at gclosure.c:490
#67297 0x000000365161ac7d in signal_emit_unlocked_R (node=0xa5cd80, detail=0, instance=0xaa1af0, emission_return=0x0, instance_and_params=0x2aaabe8a1980)
    at gsignal.c:2370
#67298 0x000000365161bc73 in IA__g_signal_emit_valist (instance=0xaa1af0,
    signal_id=<value optimized out>, detail=0, var_args=0x2aaabe8a1c00)
    at gsignal.c:2199
#67299 0x000000365161be43 in IA__g_signal_emit (instance=0x3f88008f02,
    signal_id=2281737986, detail=19911232) at gsignal.c:2243
#67300 0x0000003f87f237d2 in IA__gtk_widget_size_allocate (widget=0xaa1af0,
    allocation=0x2aaabe8a1d90) at gtkwidget.c:3815
#67301 0x00002aaab30a45a9 in moz_container_size_allocate (widget=0xaa3210,
    allocation=<value optimized out>) at mozcontainer.c:419
#67302 0x000000365160b260 in IA__g_closure_invoke (closure=0xa5ccd0,
    return_value=0x0, n_param_values=2, param_values=0x2aaabe8a2040,
    invocation_hint=0x2aaabe8a1f10) at gclosure.c:490
#67303 0x000000365161ac7d in signal_emit_unlocked_R (node=0xa5cd80, detail=0, instance=0xaa3210, emission_return=0x0, instance_and_params=0x2aaabe8a2040)
    at gsignal.c:2370
#67304 0x000000365161bc73 in IA__g_signal_emit_valist (instance=0xaa3210,
    signal_id=<value optimized out>, detail=0, var_args=0x2aaabe8a22c0)
    at gsignal.c:2199
#67305 0x000000365161be43 in IA__g_signal_emit (instance=0x3f88008f02,
    signal_id=2281737986, detail=19911232) at gsignal.c:2243
#67306 0x0000003f87f237d2 in IA__gtk_widget_size_allocate (widget=0xaa3210,
    allocation=0xaa3250) at gtkwidget.c:3815
#67307 0x0000003f87cda208 in IA__gtk_container_resize_children (
    container=0xaa3210) at gtkcontainer.c:1424
#67308 0x0000003f87cda15f in gtk_container_real_check_resize (
    container=0xaa3210) at gtkcontainer.c:1400
#67309 0x000000365160b260 in IA__g_closure_invoke (closure=0xa89d90,
    return_value=0x0, n_param_values=1, param_values=0x2aaabe8a2770,
    invocation_hint=0x2aaabe8a2640) at gclosure.c:490
#67310 0x000000365161ae47 in signal_emit_unlocked_R (node=0xa89de0, detail=0, instance=0xaa3210, emission_return=0x0, instance_and_params=0x2aaabe8a2770)
    at gsignal.c:2478
#67311 0x000000365161bc73 in IA__g_signal_emit_valist (instance=0xaa3210,
    signal_id=<value optimized out>, detail=0, var_args=0x2aaabe8a29f0)
    at gsignal.c:2199
#67312 0x000000365161be43 in IA__g_signal_emit (instance=0x3f88008f02,
    signal_id=2281737986, detail=19911232) at gsignal.c:2243
#67313 0x0000003f87cda064 in IA__gtk_container_check_resize (
    container=0xaa3210) at gtkcontainer.c:1378
#67314 0x0000003f87cd9f98 in _gtk_container_queue_resize (container=0x75a0b0)
    at gtkcontainer.c:1354
#67315 0x0000003f87e2f896 in real_queue_resize (widget=0x139b180)
    at gtksizegroup.c:159
#67316 0x0000003f87e2f9e0 in queue_resize_on_widget (widget=0x139b180,
    check_siblings=1) at gtksizegroup.c:203
#67317 0x0000003f87e30c3c in _gtk_size_group_queue_resize (widget=0x139b180)
    at gtksizegroup.c:838
#67318 0x0000003f87f230dd in IA__gtk_widget_queue_resize (widget=0x139b180)
    at gtkwidget.c:3548
#67319 0x0000003f87e23b9d in gtk_scrolled_window_adjustment_changed (
    adjustment=0x1413400, data=0x139b180) at gtkscrolledwindow.c:1590
#67320 0x000000365160b1a9 in IA__g_closure_invoke (closure=0x12b0530,
    return_value=0x0, n_param_values=1, param_values=0x2aaabe8a2f00,
    invocation_hint=0x2aaabe8a2dd0) at gclosure.c:490
#67321 0x000000365161a831 in signal_emit_unlocked_R (node=0xaae380, detail=0,
    instance=0x1413400, emission_return=0x0,
    instance_and_params=0x2aaabe8a2f00) at gsignal.c:2440
#67322 0x000000365161bc73 in IA__g_signal_emit_valist (instance=0x1413400,
    signal_id=<value optimized out>, detail=0, var_args=0x2aaabe8a3180)
    at gsignal.c:2199
#67323 0x000000365161be43 in IA__g_signal_emit (instance=0x3f88008f02,
    signal_id=2281737986, detail=19911232) at gsignal.c:2243
#67324 0x0000003f87c72fb7 in IA__gtk_adjustment_changed (adjustment=0x1413400)
    at gtkadjustment.c:355
#67325 0x0000003f87f1aa94 in gtk_viewport_size_allocate (widget=0x139b2c0,
    allocation=0x2aaabe8a3920) at gtkviewport.c:787
#67326 0x000000365160b260 in IA__g_closure_invoke (closure=0xa5ccd0,
    return_value=0x0, n_param_values=2, param_values=0x2aaabe8a3590,
    invocation_hint=0x2aaabe8a3460) at gclosure.c:490
#67327 0x000000365161ac7d in signal_emit_unlocked_R (node=0xa5cd80, detail=0,
    instance=0x139b2c0, emission_return=0x0,
    instance_and_params=0x2aaabe8a3590) at gsignal.c:2370
#67328 0x000000365161bc73 in IA__g_signal_emit_valist (instance=0x139b2c0,
    signal_id=<value optimized out>, detail=0, var_args=0x2aaabe8a3810)
    at gsignal.c:2199
#67329 0x000000365161be43 in IA__g_signal_emit (instance=0x3f88008f02,
    signal_id=2281737986, detail=19911232) at gsignal.c:2243
#67330 0x0000003f87f237d2 in IA__gtk_widget_size_allocate (widget=0x139b2c0,
    allocation=0x2aaabe8a39e0) at gtkwidget.c:3815
#67331 0x0000003f87e2318c in gtk_scrolled_window_size_allocate (
widget=0x139b180, allocation=0x2aaabe8a4060) at gtkscrolledwindow.c:1372
#67332 0x000000365160b260 in IA__g_closure_invoke (closure=0xa5ccd0,
    return_value=0x0, n_param_values=2, param_values=0x2aaabe8a3cd0,
    invocation_hint=0x2aaabe8a3ba0) at gclosure.c:490
#67333 0x000000365161ac7d in signal_emit_unlocked_R (node=0xa5cd80, detail=0,
    instance=0x139b180, emission_return=0x0,
    instance_and_params=0x2aaabe8a3cd0) at gsignal.c:2370
#67334 0x000000365161bc73 in IA__g_signal_emit_valist (instance=0x139b180,
    signal_id=<value optimized out>, detail=0, var_args=0x2aaabe8a3f50)
    at gsignal.c:2199
#67335 0x000000365161be43 in IA__g_signal_emit (instance=0x3f88008f02,
    signal_id=2281737986, detail=19911232) at gsignal.c:2243
#67336 0x0000003f87f237d2 in IA__gtk_widget_size_allocate (widget=0x139b180,
    allocation=0x2aaabe8a40f0) at gtkwidget.c:3815
#67337 0x0000003f87de2f50 in gtk_plug_size_allocate (widget=0x75a0b0,
    allocation=0x2aaabe8a4730) at gtkplug.c:701
#67338 0x000000365160b260 in IA__g_closure_invoke (closure=0xa5ccd0,
    return_value=0x0, n_param_values=2, param_values=0x2aaabe8a43a0,
    invocation_hint=0x2aaabe8a4270) at gclosure.c:490
#67339 0x000000365161ac7d in signal_emit_unlocked_R (node=0xa5cd80, detail=0, instance=0x75a0b0, emission_return=0x0, instance_and_params=0x2aaabe8a43a0)
    at gsignal.c:2370
#67340 0x000000365161bc73 in IA__g_signal_emit_valist (instance=0x75a0b0,
    signal_id=<value optimized out>, detail=0, var_args=0x2aaabe8a4620)
    at gsignal.c:2199
#67341 0x000000365161be43 in IA__g_signal_emit (instance=0x3f88008f02,
    signal_id=2281737986, detail=19911232) at gsignal.c:2243
#67342 0x0000003f87f237d2 in IA__gtk_widget_size_allocate (widget=0x75a0b0,
    allocation=0x2aaabe8a47c0) at gtkwidget.c:3815
#67343 0x0000003f87e31e30 in gtk_socket_size_allocate (widget=0xaa1af0,
    allocation=0x2aaabe8a4e20) at gtksocket.c:455
#67344 0x000000365160b260 in IA__g_closure_invoke (closure=0xa5ccd0,
    return_value=0x0, n_param_values=2, param_values=0x2aaabe8a4a90,
    invocation_hint=0x2aaabe8a4960) at gclosure.c:490
#67345 0x000000365161ac7d in signal_emit_unlocked_R (node=0xa5cd80, detail=0, instance=0xaa1af0, emission_return=0x0, instance_and_params=0x2aaabe8a4a90)
    at gsignal.c:2370
#67346 0x000000365161bc73 in IA__g_signal_emit_valist (instance=0xaa1af0,
    signal_id=<value optimized out>, detail=0, var_args=0x2aaabe8a4d10)
    at gsignal.c:2199
#67347 0x000000365161be43 in IA__g_signal_emit (instance=0x3f88008f02,
    signal_id=2281737986, detail=19911232) at gsignal.c:2243
#67348 0x0000003f87f237d2 in IA__gtk_widget_size_allocate (widget=0xaa1af0,
    allocation=0x2aaabe8a4ea0) at gtkwidget.c:3815
#67349 0x00002aaab30a45a9 in moz_container_size_allocate (widget=0xaa3210,
    allocation=<value optimized out>) at mozcontainer.c:419
#67350 0x000000365160b1a9 in IA__g_closure_invoke (closure=0xa5ccd0,
    return_value=0x0, n_param_values=2, param_values=0x2aaabe8a5150,
    invocation_hint=0x2aaabe8a5020) at gclosure.c:490
#67351 0x000000365161ac7d in signal_emit_unlocked_R (node=0xa5cd80, detail=0, instance=0xaa3210, emission_return=0x0, instance_and_params=0x2aaabe8a5150)
    at gsignal.c:2370
#67352 0x000000365161bc73 in IA__g_signal_emit_valist (instance=0xaa3210,
    signal_id=<value optimized out>, detail=0, var_args=0x2aaabe8a53d0)
    at gsignal.c:2199
#67353 0x000000365161be43 in IA__g_signal_emit (instance=0x3f88008f02,
    signal_id=2281737986, detail=19911232) at gsignal.c:2243
#67354 0x0000003f87f237d2 in IA__gtk_widget_size_allocate (widget=0xaa3210,
    allocation=0xaa3250) at gtkwidget.c:3815
#67355 0x0000003f87cda208 in IA__gtk_container_resize_children (
    container=0xaa3210) at gtkcontainer.c:1424
#67356 0x0000003f87cda15f in gtk_container_real_check_resize (
    container=0xaa3210) at gtkcontainer.c:1400
#67357 0x000000365160b1a9 in IA__g_closure_invoke (closure=0xa89d90,
    return_value=0x0, n_param_values=1, param_values=0x2aaabe8a5880,
    invocation_hint=0x2aaabe8a5750) at gclosure.c:490
#67358 0x000000365161ae47 in signal_emit_unlocked_R (node=0xa89de0, detail=0, instance=0xaa3210, emission_return=0x0, instance_and_params=0x2aaabe8a5880)
    at gsignal.c:2478
#67359 0x000000365161bc73 in IA__g_signal_emit_valist (instance=0xaa3210,
    signal_id=<value optimized out>, detail=0, var_args=0x2aaabe8a5b00)
    at gsignal.c:2199
#67360 0x000000365161be43 in IA__g_signal_emit (instance=0x3f88008f02,
    signal_id=2281737986, detail=19911232) at gsignal.c:2243
#67361 0x0000003f87cda064 in IA__gtk_container_check_resize (
    container=0xaa3210) at gtkcontainer.c:1378
#67362 0x0000003f87cd9f98 in _gtk_container_queue_resize (container=0x139b2c0)
    at gtkcontainer.c:1354
#67363 0x0000003f87e2f896 in real_queue_resize (widget=0x12f73f0)
    at gtksizegroup.c:159
#67364 0x0000003f87e2f9e0 in queue_resize_on_widget (widget=0x12f73f0,
    check_siblings=1) at gtksizegroup.c:203
#67365 0x0000003f87e30c3c in _gtk_size_group_queue_resize (widget=0x12f73f0)
    at gtksizegroup.c:838
#67366 0x0000003f87f230dd in IA__gtk_widget_queue_resize (widget=0x12f73f0)
    at gtkwidget.c:3548
#67367 0x0000003f87f29d26 in gtk_widget_set_usize_internal (widget=0x12f73f0,
    width=1024, height=768) at gtkwidget.c:6968
#67368 0x0000003f87f29ec0 in IA__gtk_widget_set_size_request (
    widget=0x12f73f0, width=1024, height=768) at gtkwidget.c:7059
#67369 0x00002aaabd499ee0 in on_resize (opaque=<value optimized out>,
    width=1024, height=768) at vncdisplay.c:571
#67370 0x00002aaabd490612 in gvnc_resize (gvnc=0x13006e0, width=-2013229310,
    height=19911232) at gvnc.c:1727
#67371 0x00002aaabd493c71 in gvnc_initialize (gvnc=0x13006e0, shared_flag=0)
    at gvnc.c:2699
#67372 0x00002aaabd498d06 in vnc_coroutine (opaque=<value optimized out>)
    at vncdisplay.c:843
#67373 0x00002aaabd49abab in coroutine_trampoline (cc=0x12f7500)
    at coroutine_ucontext.c:40
#67374 0x0000003b87042400 in __cxa_pure_virtual () from /lib64/libc.so.6
#67375 0x00000000012f78c8 in ?? ()
#67376 0x0000000000000000 in ?? ()

--
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]