You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Drag-Drop making element go black and crash #12820
Operating system: Fedora Linux 28 - 4.16.5-300.fc28.x86_64
Hardware: Intel HD Graphics 4400
Last known working Electron version:
1.8.6 (but flashes black at the beginning of the drag)
Message on debug 1.8.6: [6956:0503/113418.226485:ERROR:buffer_manager.cc(453)] [.DisplayCompositor-0x345f2e791700]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
Expected behavior
Drag and drop without crash the Electron, and the element not turn to black.
Actual behavior
When drag an element it turn black, freeze Electron and the black element stay on screen even through other programs. No messages on debug, just freeze.
How to reproduce
Start any project with a button with attribute draggable="true". Start dragging it, done.
Reacted by djazz, Christian Bundy, substanceof, Benjamin Pasero, Antti Ahti, Jonas Dourado, Alex Marmon, ejmg, Raul Santos, Christian Grasso and 3 more
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
Thank you for taking the time to report this issue and helping to make Electron better.
Please provide a standalone test that a tester could run to reproduce the issue. This makes fixing issues go more smoothly: not only does it ensure the right thing is tested, but it also prevents triage from bottlenecking on making testers write new tests for each new issue.
I'm setting the more-information-needed label for the above reasons. After you've responded, please @ me in a followup comment.
% modinfo i915filename: /lib/modules/4.16.3-5-ph/kernel/drivers/gpu/drm/i915/i915.ko.xzlicense: GPL and additional rightsdescription: Intel Graphicsauthor: Intel Corporationauthor: Tungsten Graphics, Inc.firmware: i915/bxt_dmc_ver1_07.binfirmware: i915/skl_dmc_ver1_27.binfirmware: i915/kbl_dmc_ver1_04.binfirmware: i915/kbl_guc_ver9_39.binfirmware: i915/bxt_guc_ver9_29.binfirmware: i915/skl_guc_ver9_33.binfirmware: i915/kbl_huc_ver02_00_1810.binfirmware: i915/bxt_huc_ver01_07_1398.binfirmware: i915/skl_huc_ver01_07_1398.binsrcversion: C689DA53FEC35F81D813268alias: pci:v00008086d00005A79sv*sd*bc03sc*i*alias: pci:v00008086d00005A71sv*sd*bc03sc*i*alias: pci:v00008086d00005A49sv*sd*bc03sc*i*...alias: pci:v00008086d00003582sv*sd*bc03sc*i*alias: pci:v00008086d00002562sv*sd*bc03sc*i*alias: pci:v00008086d00003577sv*sd*bc03sc*i*depends: drm_kms_helper,drm,intel-gtt,i2c-algo-bitretpoline: Yintree: Yname: i915vermagic: 4.16.3-5-ph SMP preempt mod_unload modversions parm: modeset:Use kernel modesetting [KMS] (0=disable, 1=on, -1=force vga console preference [default]) (int)parm: panel_ignore_lid:Override lid status (0=autodetect, 1=autodetect disabled [default], -1=force lid closed, -2=force lid open) (int)parm: enable_dc:Enable power-saving display C-states. (-1=auto [default]; 0=disable; 1=up to DC5; 2=up to DC6) (int)parm: enable_fbc:Enable frame buffer compression for power savings (default: -1 (use per-chip default)) (int)parm: lvds_channel_mode:Specify LVDS channel mode (0=probe BIOS [default], 1=single-channel, 2=dual-channel) (int)parm: panel_use_ssc:Use Spread Spectrum Clock with panels [LVDS/eDP] (default: auto from VBT) (int)parm: vbt_sdvo_panel_type:Override/Ignore selection of SDVO panel mode in the VBT (-2=ignore, -1=auto [default], index in VBT BIOS table) (int)parm: reset:Attempt GPU resets (0=disabled, 1=full gpu reset, 2=engine reset [default]) (int)parm: vbt_firmware:Load VBT from specified file under /lib/firmware (charp)parm: error_capture:Record the GPU state following a hang. This information in /sys/class/drm/card<N>/error is vital for triaging and debugging hangs. (bool)parm: enable_hangcheck:Periodically check GPU activity for detecting hangs. WARNING: Disabling this can cause system wide hangs. (default: true) (bool)parm: enable_ppgtt:Override PPGTT usage. (-1=auto [default], 0=disabled, 1=aliasing, 2=full, 3=full with extended address space) (int)parm: enable_psr:Enable PSR (0=disabled, 1=enabled - link mode chosen per-platform, 2=force link-standby mode, 3=force link-off mode) Default: -1 (use per-chip default) (int)parm: alpha_support:Enable alpha quality driver support for latest hardware. See also CONFIG_DRM_I915_ALPHA_SUPPORT. (bool)parm: disable_power_well:Disable display power wells when possible (-1=auto [default], 0=power wells always on, 1=power wells disabled when possible) (int)parm: enable_ips:Enable IPS (default: true) (int)parm: fastboot:Try to skip unnecessary mode sets at boot time (default: false) (bool)parm: prefault_disable:Disable page prefaulting for pread/pwrite/reloc (default:false). For developers only. (bool)parm: load_detect_test:Force-enable the VGA load detect code for testing (default:false). For developers only. (bool)parm: force_reset_modeset_test:Force a modeset during gpu reset for testing (default:false). For developers only. (bool)parm: invert_brightness:Invert backlight brightness (-1 force normal, 0 machine defaults, 1 force inversion), please report PCI device ID, subsystem vendor and subsystem device ID to [email protected], if your machine needs it. It will then be included in an upcoming module version. (int)parm: disable_display:Disable display (default: false) (bool)parm: enable_cmd_parser:Enable command parsing (true=enabled [default], false=disabled) (bool)parm: mmio_debug:Enable the MMIO debug code for the first N failures (default: off). This may negatively affect performance. (int)parm: verbose_state_checks:Enable verbose logs (ie. WARN_ON()) in case of unexpected hw state conditions. (bool)parm: nuclear_pageflip:Force enable atomic functionality on platforms that don't have full support yet. (bool)parm: edp_vswing:Ignore/Override vswing pre-emph table selection from VBT (0=use value from vbt [default], 1=low power swing(200mV),2=default swing(400mV)) (int)parm: enable_guc:Enable GuC load for GuC submission and/or HuC load. Required functionality can be selected using bitmask values. (-1=auto, 0=disable [default], 1=GuC submission, 2=HuC load) (int)parm: guc_log_level:GuC firmware logging level (-1:disabled (default), 0-3:enabled) (int)parm: guc_firmware_path:GuC firmware path to use instead of the default one (charp)parm: huc_firmware_path:HuC firmware path to use instead of the default one (charp)parm: enable_dp_mst:Enable multi-stream transport (MST) for new DisplayPort sinks. (default: true) (bool)parm: inject_load_failure:Force an error after a number of failure check points (0:disabled (default), N:force failure at the Nth failure check point) (uint)parm: enable_dpcd_backlight:Enable support for DPCD backlight control (default:false) (bool)parm: enable_gvt:Enable support for Intel GVT-g graphics virtualization host support(default:false) (bool)
I'm not getting this issue in Chromium (Version 66.0.3359.139 (Official Build) Arch Linux (64-bit)), so it may be Electron-specific.
Here's a screenshot of me selecting and dragging text:
Even after I let go, my cursor is still stuck in drag mode and the black box won't disappear. Resizing the window also causes weird black rectangles. The window can't be killed normally (through the x or Ctrl+C), so it has to be killed with killall electron. No bueno.
Data exported | 2018-05-06T18:33:30.376Z
-- | --
Chrome version | Chrome/66.0.3359.139
Operating system | Linux 4.16.3-5-ph
Software rendering list URL | https://chromium.googlesource.com/chromium/src/+/04f3a687c3f0ca1c1c1444683ddfadb74191b787/gpu/config/software_rendering_list.json
Driver bug list URL | https://chromium.googlesource.com/chromium/src/+/04f3a687c3f0ca1c1c1444683ddfadb74191b787/gpu/config/gpu_driver_bug_list.json
ANGLE commit id | unknown hash
2D graphics backend | Skia/66 773868fdade5f9f0e7697e6d09c9bd80aaa9b402-
Command Line | /usr/lib/chromium/chromium --flag-switches-begin --flag-switches-end
My intuitition is that there's a bug with how Chromium/Electron is interfacing with the driver/kernel when it does the semi-transparent dragging layer, but I'm not familiar enough to understand exactly where the fix needs to be applied. I'll keep working until everything looks happy in chrome://gpu, which will hopefully resolve the issue without any work being necessary in Chromium/Electron.
Still not fixed. Flag --disable-gpu fixes the issue, albeit it does not fix the problem.
There might be some projects out there that may need hardware acceleration.
Reacted by Christian Bundy, kabalage, Leonardo Antunes and Sergiy Borodych
Same issue here. Everything worked fine with GPU blacklist flag, until I recently updated electron to the latest version. Now only enabling disable GPU flag helps, however I need GPU rendering, so this bug has become a serious problem for my project.
The whole app freezes after drop event. It causes temp freeze + graphic glitch after the drag event starts:
Following this issue because I ran straight into it at the very begining of the development of my first electron app ^^ (I am so lucky :p) I hope it gets fixed soon, thank you guys for the work around !
FWIW, I read this morning that the bug may have been resolved by #15555.
I haven't tested it (and I'm currently on mobile), but it looks like it was backported to both v3 and v4. Not sure whether it's landed in a release, but I wanted to share all the info I have.
FWIW, I read this morning that the bug may have been resolved by #15555.
I haven't tested it (and I'm currently on mobile), but it looks like it was backported to both v3 and v4. Not sure whether it's landed in a release, but I wanted to share all the info I have.
Does it fix crashes when reordering tabs? It's driving me crazy...
I can confirm that this is still on Electron v4.1.1, and it affects Atom (latest, straight from GitHub release tar.gz). nohup <path>/atom fixes the issue.
$ uname -a
Linux <HOSTNAME> 5.0.6-artix1-1-ARTIX #1 SMP PREEMPT <DATE> x86_64 GNU/Linux
(Artix Linux is Arch Linux using OpenRC instead of systemd)
This issue should've gotten more attention sooner. Is this still an issue in supported versions of Electron, e.g. is this still present in Electron 11 or in the 12 betas?
Activity
welcome commentedon May 3, 2018
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
codebytere commentedon May 4, 2018
Thank you for taking the time to report this issue and helping to make Electron better.
Please provide a standalone test that a tester could run to reproduce the issue. This makes fixing issues go more smoothly: not only does it ensure the right thing is tested, but it also prevents triage from bottlenecking on making testers write new tests for each new issue.
I'm setting the more-information-needed label for the above reasons. After you've responded, please @ me in a followup comment.
Thanks in advance! Your help is appreciated.
leotada commentedon May 4, 2018
@codebytere
I realized that even dragging a simple text occurs the same problem.
Here is my code:
https://github.com/leotada/electron-quick-start
christianbundy commentedon May 6, 2018
I've been having the exact same issue with
[email protected]as well.Just for reference:
I was thinking it was a display driver issue (especially after reading https://wiki.archlinux.org/index.php/Intel_graphics#OpenGL_2.1_with_i915_driver), but I'm not sure that's the case.
I'm not getting this issue in Chromium (Version 66.0.3359.139 (Official Build) Arch Linux (64-bit)), so it may be Electron-specific.
Here's a screenshot of me selecting and dragging text:
Even after I let go, my cursor is still stuck in drag mode and the black box won't disappear. Resizing the window also causes weird black rectangles. The window can't be killed normally (through the
xor Ctrl+C), so it has to be killed withkillall electron. No bueno.christianbundy commentedon May 6, 2018
While researching this I found a debugging instruction that may give some useful info:
My intuitition is that there's a bug with how Chromium/Electron is interfacing with the driver/kernel when it does the semi-transparent dragging layer, but I'm not familiar enough to understand exactly where the fix needs to be applied. I'll keep working until everything looks happy in
chrome://gpu, which will hopefully resolve the issue without any work being necessary in Chromium/Electron.christianbundy commentedon May 6, 2018
Reproduction steps:
Expected (and working in v1.8.4):
Actual (v2.0.0):
codebytere commentedon May 7, 2018
yep, i'll 👀 this soon!
christianbundy commentedon May 9, 2018
Workaround:
--disable-gpuI found this suggestion here: #4380 (comment)
@leotada Can you verify that
electron --disable-gpuworks for you as well?Additional notes
--disable-gpu-blacklistdoesn't fix the issue--type=gpu-process--no-sandbox--supports-dual-gpus=false--gpu-driver-bug-workarounds=1,9,27,70,84--disable-gl-extensions=GL_KHR_blend_equation_advancedGL_KHR_blend_equation_advanced_coherent--disable-accelerated-video-decode--gpu-vendor-id=0x8086--gpu-device-id=0x1616--gpu-driver-vendor--gpu-driver-version--gpu-driver-date--service-request-channel-token=0EB803B34379058862EC3D63D17A989E--type=renderer--no-sandbox--service-pipe-token=7A0DA93E3DA90C3F2E2E91228251969D--lang=en-US--app-path=/home/christianbundy/src/electron-test/node_modules/electron/dist/resources/default_app.asar--node-integration=true--node-integration-in-worker--webview-tag=true--no-sandbox--background-color=#FFFFFF--context-id=2--enable-pinch--num-raster-threads=2--enable-main-frame-before-activation--content-image-texture-target=0,0,3553;0,1,3553;0,2,3553;0,3,3553;0,4,3553;0,5,3553;0,6,3553;0,7,3553;0,8,3553;0,9,3553;0,10,3553;0,11,3553;0,12,3553;0,13,3553;0,14,3553;0,15,3553;0,16,3553;0,17,3553;1,0,3553;1,1,3553;1,2,3553;1,3,3553;1,4,3553;1,5,3553;1,6,3553;1,7,3553;1,8,3553;1,9,3553;1,10,3553;1,11,3553;1,12,3553;1,13,3553;1,14,3553;1,15,3553;1,16,3553;1,17,3553;2,0,3553;2,1,3553;2,2,3553;2,3,3553;2,4,3553;2,5,3553;2,6,3553;2,7,3553;2,8,3553;2,9,3553;2,10,3553;2,11,3553;2,12,3553;2,13,3553;2,14,3553;2,15,3553;2,16,3553;2,17,3553;3,0,3553;3,1,3553;3,2,3553;3,3,3553;3,4,3553;3,5,3553;3,6,3553;3,7,3553;3,8,3553;3,9,3553;3,10,3553;3,11,3553;3,12,3553;3,13,3553;3,14,3553;3,15,3553;3,16,3553;3,17,3553;4,0,3553;4,1,3553;4,2,3553;4,3,3553;4,4,3553;4,5,3553;4,6,3553;4,7,3553;4,8,3553;4,9,3553;4,10,3553;4,11,3553;4,12,3553;4,13,3553;4,14,3553;4,15,3553;4,16,3553;4,17,3553--disable-accelerated-video-decode--enable-gpu-async-worker-context--service-request-channel-token=7A0DA93E3DA90C3F2E2E91228251969D--renderer-client-id=4--shared-files=v8_natNot completely sure how to further debug, but at least we can pin it down to the GPU.
leotada commentedon May 11, 2018
@christianbundy Yes works fine with --disable-gpu.
daniel-j commentedon May 14, 2018
@christianbundy Thank you for finding a workaround! I added this code to run on only Linux in my project and drag-drop works!
app.disableHardwareAcceleration()ruslang02 commentedon Jul 9, 2018
Electron 3.0.0-beta
Still not fixed. Flag
--disable-gpufixes the issue, albeit it does not fix the problem.There might be some projects out there that may need hardware acceleration.
20 remaining items
dev-zetta commentedon Oct 29, 2018
Same issue here. Everything worked fine with GPU blacklist flag, until I recently updated electron to the latest version. Now only enabling disable GPU flag helps, however I need GPU rendering, so this bug has become a serious problem for my project.
The whole app freezes after drop event. It causes temp freeze + graphic glitch after the drag event starts:

anchepiece commentedon Nov 1, 2018
@dev-zetta I encountered a similar issue and resolved it by redirecting (stdout) output as hinted above by @bpasero
Can you try launching using something like
$ nohup yourappOr if you want to capture the output
$ nohup yourapp < /dev/null > nohup.out 2> nohup.err &dev-zetta commentedon Nov 1, 2018
@anchepiece Awesome. Thanks, I missed that. Just tested this workaround and it works. Also thanks to @bpasero.
Finally, my CPU gets a break from software rendering 💃
Serisium commentedon Nov 8, 2018
I'd like to add that this bug is also affecting the current version of Everdo, a multiplatform productivity app. See our discussions here: https://forum.everdo.net/t/arch-desktop-gui-crashes-when-dragging-items-from-the-inbox/468
lsl commentedon Nov 15, 2018
Potentially related:
TitouanT commentedon Nov 28, 2018
Following this issue because I ran straight into it at the very begining of the development of my first electron app ^^ (I am so lucky :p) I hope it gets fixed soon, thank you guys for the work around !
christianbundy commentedon Nov 28, 2018
FWIW, I read this morning that the bug may have been resolved by #15555.
I haven't tested it (and I'm currently on mobile), but it looks like it was backported to both v3 and v4. Not sure whether it's landed in a release, but I wanted to share all the info I have.
nkkollaw commentedon Jan 6, 2019
Does it fix crashes when reordering tabs? It's driving me crazy...
martin31821 commentedon Jan 9, 2019
Updating my app to electron 3.0.14 fixed the issue for me on linux.
araspik commentedon Apr 13, 2019
I can confirm that this is still on Electron
v4.1.1, and it affects Atom (latest, straight from GitHub releasetar.gz).nohup <path>/atomfixes the issue.(Artix Linux is Arch Linux using OpenRC instead of
systemd)ckerr commentedon Jan 28, 2021
This issue should've gotten more attention sooner. Is this still an issue in supported versions of Electron, e.g. is this still present in Electron 11 or in the 12 betas?
electron-triage commentedon Mar 8, 2021
The Electron version reported on this issue is no longer supported. See our supported versions documentation.
If this is still reproducible on a supported version, please open a new issue with any other new information that a maintainer should know.
Thank you for taking the time to report this issue and helping to make Electron better! Your help is appreciated.
christianbundy commentedon Mar 8, 2021
Nope, I think this is fixed in Electron 11.