Bug 392181 - memory leak when switching between multiple displays
Summary: memory leak when switching between multiple displays
Status: RESOLVED DUPLICATE of bug 368838
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.12.3
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-22 14:31 UTC by grouchomarx.fr
Modified: 2018-03-22 19:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description grouchomarx.fr 2018-03-22 14:31:24 UTC
I am using a laptop with an external monitor.
Every time I'm switching to a different display layout (meta+P), or when I plug/unplug the monitor, the memory usage of plasmashell goes up by a few megs.
It can eat up hundreds of megs rather quickly.

It seems that if I set every backgrounds to a solid color instead of a picture, the memory stays almost the same.


I have tested it with a new profile with default settings.

KDE Plasma: 5.12.3
KDE Frameworks: 5.44.0
Qt: 5.10.0
Kernel: 4.13.0-37
Distribution: KDE Neon
Graphics: Intel HD Graphics - modesetting - X11
Comment 1 David Edmundson 2018-03-22 14:32:55 UTC
Please run 

kquitapp5 plasmashell
QSG_INFO=1 plasmashell

and paste output
Comment 2 grouchomarx.fr 2018-03-22 19:09:30 UTC
Here it is.
I have hit meta+p several times.
The memory went gradually from ~100M to ~200M.




org.kde.plasmaquick: Applet preload policy set to 1
qt.scenegraph.general: QSG: basic render loop
qt.scenegraph.general: Using sg animation driver
Warning: all files used by qml by the plasmoid should be in ui/. The file in the path "file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/code/LayoutManager.js" was expected at QUrl("file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/LayoutManager.js")
Warning: all files used by qml by the plasmoid should be in ui/. The file in the path "file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/code/FolderTools.js" was expected at QUrl("file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderTools.js")
trying to show an empty dialog
qt.scenegraph.general: texture atlas dimensions: 2048x2048
qt.scenegraph.general: R/G/B/A Buffers:    8 8 8 8
qt.scenegraph.general: Depth Buffer:       24
qt.scenegraph.general: Stencil Buffer:     8
qt.scenegraph.general: Samples:            -1
qt.scenegraph.general: GL_VENDOR:          Intel Open Source Technology Center
qt.scenegraph.general: GL_RENDERER:        Mesa DRI Intel(R) Ironlake Mobile 
qt.scenegraph.general: GL_VERSION:         2.1 Mesa 17.2.8
qt.scenegraph.general: GL_EXTENSIONS:      GL_EXT_blend_equation_separate GL_EXT_compiled_vertex_array GL_ANGLE_texture_compression_dxt5 GL_NV_blend_square GL_ARB_texture_cube_map GL_ARB_texture_float GL_EXT_texture GL_ATI_blend_equation_separate GL_NV_texture_barrier GL_EXT_draw_range_elements GL_OES_read_format GL_ARB_vertex_array_bgra GL_NV_depth_clamp GL_EXT_packed_depth_stencil GL_ARB_map_buffer_alignment GL_ARB_provoking_vertex GL_SUN_multi_draw_arrays GL_EXT_texture_cube_map GL_SGIS_texture_lod GL_ARB_compressed_texture_pixel_storage GL_ARB_separate_shader_objects GL_ARB_copy_image GL_ARB_clip_control GL_ARB_instanced_arrays GL_EXT_texture_sRGB GL_ARB_multitexture GL_MESA_pack_invert GL_EXT_packed_pixels GL_EXT_texture_integer GL_EXT_texture_swizzle GL_ARB_get_texture_sub_image GL_ARB_half_float_vertex GL_ARB_get_program_binary GL_EXT_vertex_array GL_ARB_vertex_type_2_10_10_10_rev GL_KHR_debug GL_ARB_explicit_uniform_location GL_EXT_fog_coord GL_IBM_multimode_draw_arrays GL_ARB_texture_env_dot3 GL_ARB_vertex_array_object GL_ARB_texture_swizzle GL_ARB_texture_rgb10_a2ui GL_NV_packed_depth_stencil GL_EXT_texture_snorm GL_NV_texgen_reflection GL_ARB_draw_buffers GL_ARB_vertex_shader GL_EXT_texture3D GL_ARB_texture_rectangle GL_ARB_copy_buffer GL_ARB_fragment_program GL_EXT_packed_float GL_EXT_texture_compression_rgtc GL_MESA_texture_signed_rgba GL_ARB_point_parameters GL_ARB_texture_env_combine GL_ARB_shading_language_packing GL_ARB_multi_bind GL_ARB_sync GL_ARB_texture_query_lod GL_ARB_vertex_program  GL_ATI_texture_env_combine3 GL_EXT_texture_lod_bias GL_ARB_texture_mirrored_repeat GL_ARB_clear_buffer_object GL_ARB_depth_texture GL_SGIS_generate_mipmap GL_ARB_shader_group_vote GL_ARB_sampler_objects GL_ARB_invalidate_subdata GL_EXT_separate_specular_color GL_EXT_abgr GL_EXT_texture_compression_s3tc GL_ARB_clear_texture GL_EXT_framebuffer_sRGB GL_NV_conditional_render GL_ARB_program_interface_query GL_ARB_shader_objects GL_ARB_seamless_cube_map GL_NV_primitive_restart GL_ARB_pixel_buffer_object GL_EXT_shadow_funcs GL_ARB_point_sprite GL_MESA_window_pos GL_3DFX_texture_compression_FXT1 GL_S3_s3tc GL_EXT_texture_rectangle GL_ATI_separate_stencil GL_EXT_texture_array GL_ARB_shading_language_100 GL_ARB_shader_draw_parameters GL_KHR_blend_equation_advanced GL_EXT_gpu_program_parameters GL_EXT_stencil_wrap GL_APPLE_packed_pixels GL_ARB_texture_barrier GL_OES_EGL_image GL_ARB_fragment_coord_conventions GL_ARB_window_pos GL_ARB_half_float_pixel GL_EXT_texture_compression_dxt1 GL_EXT_bgra GL_ARB_shader_bit_encoding GL_ARB_draw_elements_base_vertex GL_ARB_texture_mirror_clamp_to_edge GL_NV_light_max_exponent GL_ARB_multisample GL_SGIS_texture_border_clamp GL_EXT_vertex_array_bgra GL_EXT_provoking_vertex GL_ANGLE_texture_compression_dxt3 GL_EXT_texture_filter_anisotropic GL_KHR_robustness GL_EXT_blend_func_separate GL_EXT_timer_query GL_ARB_texture_env_add GL_EXT_texture_env_combine GL_ARB_fragment_shader GL_EXT_draw_buffers2 GL_INGR_blend_func_separate GL_ARB_buffer_storage GL_ARB_debug_output GL_IBM_texture_mirrored_repeat GL_ARB_map_buffer_range GL_EXT_pixel_buffer_object GL_ARB_seamless_cubemap_per_texture GL_ARB_occlusion_query GL_ARB_fragment_program_shadow GL_ARB_texture_non_power_of_two GL_SGIS_texture_edge_clamp GL_ARB_framebuffer_object GL_EXT_copy_texture GL_ARB_texture_rg GL_KHR_context_flush_control GL_KHR_no_error GL_EXT_texture_env_add GL_EXT_framebuffer_object GL_EXT_polygon_offset_clamp GL_EXT_texture_sRGB_decode GL_ARB_shader_texture_lod GL_ARB_internalformat_query GL_ARB_arrays_of_arrays GL_EXT_subtexture GL_ARB_color_buffer_float GL_ARB_depth_buffer_float GL_ARB_texture_compression_rgtc GL_ARB_texture_storage GL_EXT_texture_env_dot3 GL_ATI_draw_buffers GL_EXT_blend_minmax GL_ARB_ES2_compatibility GL_ARB_depth_clamp GL_EXT_rescale_normal GL_NV_texture_rectangle GL_ARB_shadow GL_IBM_rasterpos_clip GL_EXT_blend_color GL_ATI_texture_float GL_ARB_framebuffer_sRGB GL_EXT_stencil_two_side GL_APPLE_object_purgeable GL_ARB_vertex_type_10f_11f_11f_rev GL_ARB_transpose_matrix GL_EXT_texture_edge_clamp GL_AMD_shader_trinary_minmax GL_ARB_explicit_attrib_location GL_ARB_texture_env_crossbar GL_ARB_vertex_buffer_object GL_ARB_vertex_attrib_binding GL_EXT_texture_object GL_EXT_secondary_color GL_EXT_framebuffer_blit GL_NV_texture_env_combine4 GL_EXT_point_parameters GL_ARB_robustness GL_ARB_texture_compression GL_EXT_draw_instanced GL_EXT_polygon_offset GL_EXT_blend_subtract GL_ARB_draw_instanced GL_ARB_texture_border_clamp GL_AMD_seamless_cubemap_per_texture GL_EXT_multi_draw_arrays GL_EXT_texture_shared_exponent GL_ARB_occlusion_query2 GL_ARB_internalformat_query2
qt.scenegraph.general: Max Texture Size:  8192
qt.scenegraph.general: Debug context:     false
org.kde.plasmaquick: New Applet  "Application Launcher" with a weight of 70
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Trying to use rootObject before initialization is completed, whilst using setInitializationDelayed. Forcing completion
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
trying to show an empty dialog
org.kde.plasmaquick: New Applet  "Digital Clock" with a weight of 34
Warning: all files used by qml by the plasmoid should be in ui/. The file in the path "file:///usr/share/plasma/plasmoids/org.kde.panel/contents/code/LayoutManager.js" was expected at QUrl("file:///usr/share/plasma/plasmoids/org.kde.panel/contents/ui/LayoutManager.js")
trying to show an empty dialog
org.kde.plasmaquick: New Applet  "Audio Volume" with a weight of 18
org.kde.plasmaquick: New Applet  "Clipboard" with a weight of 18
org.kde.plasmaquick: New Applet  "Device Notifier" with a weight of 10
Trying to use rootObject before initialization is completed, whilst using setInitializationDelayed. Forcing completion
org.kde.plasmaquick: New Applet  "KDE Connect" with a weight of 10
Warning: all files used by qml by the plasmoid should be in ui/. The file in the path "file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/code/uiproperties.js" was expected at QUrl("file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/uiproperties.js")
org.kde.plasmaquick: New Applet  "Notifications" with a weight of 10
libkcups: Create-Printer-Subscriptions last error: 0 successful-ok
org.kde.plasmaquick: New Applet  "Printers" with a weight of 10
libkcups: Get-Jobs last error: 0 successful-ok
libkcups: Get-Jobs last error: 0 successful-ok
org.kde.plasmaquick: New Applet  "Updates" with a weight of 10
org.kde.plasmaquick: New Applet  "Vaults" with a weight of 10
Plasma Shell startup completed
libkcups: 0
libkcups: 0
Warning: all files used by qml by the plasmoid should be in ui/. The file in the path "file:///usr/share/plasma/plasmoids/org.kde.plasma.battery/contents/code/logic.js" was expected at QUrl("file:///usr/share/plasma/plasmoids/org.kde.plasma.battery/contents/ui/logic.js")
org.kde.plasmaquick: New Applet  "Battery and Brightness" with a weight of 26
Both point size and pixel size set. Using pixel size.
Warning: all files used by qml by the plasmoid should be in ui/. The file in the path "file:///usr/share/plasma/plasmoids/org.kde.plasma.bluetooth/contents/code/logic.js" was expected at QUrl("file:///usr/share/plasma/plasmoids/org.kde.plasma.bluetooth/contents/ui/logic.js")
org.kde.plasmaquick: New Applet  "Bluetooth" with a weight of 34
networkmanager-qt: void NetworkManager::NetworkManagerPrivate::propertiesChanged(const QVariantMap&) Unhandled property "AllDevices"
networkmanager-qt: void NetworkManager::NetworkManagerPrivate::propertiesChanged(const QVariantMap&) Unhandled property "Devices"
networkmanager-qt: void NetworkManager::NetworkManagerPrivate::propertiesChanged(const QVariantMap&) Unhandled property "GlobalDnsConfiguration"
networkmanager-qt: virtual void NetworkManager::DevicePrivate::propertyChanged(const QString&, const QVariant&) Unhandled property "LldpNeighbors"
networkmanager-qt: virtual void NetworkManager::DevicePrivate::propertyChanged(const QString&, const QVariant&) Unhandled property "Real"
networkmanager-qt: virtual void NetworkManager::DevicePrivate::propertyChanged(const QString&, const QVariant&) Unhandled property "LldpNeighbors"
networkmanager-qt: virtual void NetworkManager::DevicePrivate::propertyChanged(const QString&, const QVariant&) Unhandled property "Real"
networkmanager-qt: virtual void NetworkManager::DevicePrivate::propertyChanged(const QString&, const QVariant&) Unhandled property "LldpNeighbors"
networkmanager-qt: virtual void NetworkManager::DevicePrivate::propertyChanged(const QString&, const QVariant&) Unhandled property "Real"
networkmanager-qt: virtual void NetworkManager::DevicePrivate::propertyChanged(const QString&, const QVariant&) Unhandled property "LldpNeighbors"
networkmanager-qt: virtual void NetworkManager::DevicePrivate::propertyChanged(const QString&, const QVariant&) Unhandled property "Real"
networkmanager-qt: virtual void NetworkManager::DevicePrivate::propertyChanged(const QString&, const QVariant&) Unhandled property "LldpNeighbors"
networkmanager-qt: virtual void NetworkManager::DevicePrivate::propertyChanged(const QString&, const QVariant&) Unhandled property "Real"
networkmanager-qt: virtual void NetworkManager::DevicePrivate::propertyChanged(const QString&, const QVariant&) Unhandled property "LldpNeighbors"
networkmanager-qt: virtual void NetworkManager::DevicePrivate::propertyChanged(const QString&, const QVariant&) Unhandled property "Real"
org.kde.plasmaquick: New Applet  "Networks" with a weight of 34
trying to show an empty dialog
using... PackageKit::Transaction(0x41f3030) "/1112_ebcdabba"
org.kde.plasmaquick: Delayed preload of  "Application Launcher" after 1.768 seconds
Empty filename passed to function
KAStatsFavoritesModel::setFavorites is ignored
KActivities: Database connection:  "kactivities_db_resources_139963523008704_readonly" 
    query_only:          QVariant(qlonglong, 1) 
    journal_mode:        QVariant(QString, "wal") 
    wal_autocheckpoint:  QVariant(qlonglong, 100) 
    synchronous:         QVariant(qlonglong, 0)
Entry is not valid "kontact.desktop" 0x45b7c00
Entry is not valid "ktp-contactlist.desktop" 0x45b7c00
Entry is not valid "org.kde.kate.desktop" 0x45b7c00
Entry is not valid "kontact.desktop" 0x45b7c00
Entry is not valid "ktp-contactlist.desktop" 0x45b7c00
Entry is not valid "org.kde.kate.desktop" 0x45b7c00
Closing SQL connection:  "kactivities_db_resources_139963523008704_readonly"
trying to show an empty dialog
org.kde.plasmaquick: Applet "Application Launcher" loaded after 97 msec
org.kde.plasmaquick: Delayed preload of  "Battery and Brightness" after 1.825 seconds
org.kde.plasmaquick: Applet "Battery and Brightness" loaded after 32 msec
org.kde.plasmaquick: Delayed preload of  "Digital Clock" after 3.916 seconds
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
trying to show an empty dialog
org.kde.plasmaquick: Applet "Digital Clock" loaded after 116 msec
org.kde.plasmaquick: Delayed preload of  "Networks" after 4.951 seconds
org.kde.plasmaquick: Applet "Networks" loaded after 122 msec
org.kde.plasmaquick: Delayed preload of  "Bluetooth" after 5.678 seconds
org.kde.plasmaquick: Applet "Bluetooth" loaded after 38 msec
Old primary output: QScreen(0x11ce240, name="HDMI-1") New primary output: QScreen(0x5093da0, name="LVDS-1")
trying to show an empty dialog
trying to show an empty dialog
trying to show an empty dialog
Old primary output: QScreen(0x5093da0, name="LVDS-1") New primary output: QScreen(0x11ce240, name="HDMI-1")
trying to show an empty dialog
trying to show an empty dialog
trying to show an empty dialog
trying to show an empty dialog
trying to show an empty dialog
trying to show an empty dialog
trying to show an empty dialog
Old primary output: QScreen(0x11ce240, name="LVDS-1") New primary output: QScreen(0x5376870, name="HDMI-1")
trying to show an empty dialog
trying to show an empty dialog
trying to show an empty dialog
trying to show an empty dialog
trying to show an empty dialog
new redundant screen QScreen(0x36193a0, name="HDMI-1") with primary screen QScreen(0x5376870, name="LVDS-1")
org.kde.plasmaquick: Applet "Application Launcher" loaded after 0 msec
org.kde.plasmaquick: Increasing score for "Application Launcher" to 75
trying to show an empty dialog
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
trying to show an empty dialog
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
requesting unexisting screen 2
trying to show an empty dialog
trying to show an empty dialog
Old primary output: QScreen(0x5376870, name="LVDS-1") New primary output: QScreen(0x36193a0, name="HDMI-1")
trying to show an empty dialog
Comment 3 David Edmundson 2018-03-22 19:25:08 UTC
qt.scenegraph.general: QSG: basic render loop

*** This bug has been marked as a duplicate of bug 368838 ***