New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Media Image Drag& Drop broken #4846
Comments
Right at the start of JMRI you will see this in the log: 2018-02-10 09:09:31,704 dnd.FileDrop DEBUG - FileDrop: Drag and drop is not supported with this JVM [main] No idea when that started or why. But it does prevent adding media to roster entries. |
Where I saw the message I sent was right in the first 10 lines of the
console log. NOTE: you must have DEBUG enabled in the logging.
-ken c
|
JVM is what in this example/case ? Is JVM = JAVA 1.8.0_161 ? then it makes no sense as JMRI 4.10 has no D&D issue under this same JVM. |
Note that the message below is a DEBUG message: Most people won’t see it.
The message is emitted if supportsDnD() returns false in jmri.util.iharder.dnd.FileDrop
That in turn is a static method that looks for a class called “DndConstants”. That should be present, see https://docs.oracle.com/javase/8/docs/api/java/awt/dnd/DnDConstants.html
I’m not sure that this message is the same problem that Marc is reporting.
… On Feb 10, 2018, at 7:55 AM, Ken Cameron ***@***.***> wrote:
Right at the start of JMRI you will see this in the log:
2018-02-10 09:09:31,704 dnd.FileDrop DEBUG - FileDrop: Drag and drop is not supported with this JVM [main]
No idea when that started or why. But it does prevent adding media to roster entries.
|
For what it is worth. Windows 10, 32 bit. I turned on /DEBUG and /NOISY. Do not see any message go by re " FileDrop: Drag and drop is not supported " in any log generated. CommandLine: "C:\Program Files\JMRI\LaunchJMRI.exe" /debug /noisy apps.gui3.dp3.DecoderPro3 Removed all remaining messages... |
/debug is an option to the launcher. It does not set the log level to debug
in the program.
You need to edit the default.lcf file to enable debug for all of jmri.
…-ken c
|
Learning.... So I changed default.lcf to request DEBUG, Al, T, R . If I did it right, I still do not see any "not supported" or anything related to " drop " message in the 862 line log. I took the CLIPBOARD and pasted it to notepad++ and searched for "DROP". No hit. 2018-02-12 17:43:05,491 util.Log4JUtil INFO - ****** JMRI log ******* [main] |
On macOS 10.13.3 High Sierra with Java 8 Update 161 I see the same behavior when trying in vain to drag a PNG or JPEG image to the Roster Media rects (DEBUG on for path jmri.jmrit.roster):
|
Here is where the warnings is showing in my log. About 10 lines down with
full debug. I repeated the test using a normal build of 4.11.2 and achieved
the same message about drag/drop not being supported.
2018-02-12 18:39:30,255 util.FileUtilSupport DEBUG -
Attempting to find resources/logo.gif in [] [main]
2018-02-12 18:39:30,399 util.Log4JUtil INFO - ******
JMRI log ******* [main]
2018-02-12 18:39:30,400 util.Log4JUtil INFO - This
log is appended to file: C:\Users\kcameron\JMRI\log\messages.log [main]
2018-02-12 18:39:30,402 util.Log4JUtil INFO - This
log is stored in file: C:\Users\kcameron\JMRI\log\session.log [main]
2018-02-12 18:39:30,414 apps.Apps INFO -
PanelPro version 4.11.3ish+kcameron+20180210T2106Z+R9a15198262 starts under
Java 1.8.0_161 on Windows 10 amd64 v10.0 at Mon Feb 12 18:39:30 EST 2018
[main]
2018-02-12 18:39:30,438 util.Log4JUtil DEBUG -
initLog4J already initialized! [main]
2018-02-12 18:39:30,446 util.Log4JUtil DEBUG -
initLog4J already initialized! [main]
2018-02-12 18:39:30,449 util.FileUtilSupport DEBUG -
Attempting to find resources/logo.gif in [] [main]
2018-02-12 18:39:30,510 dnd.FileDrop DEBUG -
FileDrop: Drag and drop is not supported with this JVM [main]
2018-02-12 18:39:30,519 swing.FontComboUtil DEBUG -
Prepare font lists... [PrepareFontListsThread]
|
I also have a second system and it is also running Windows 10 Home N 1709 and JAVA 1.8.0_161. It is running JMRI 4.10 at the present time. The drag and drop works perfectly. So I submit the issue is not from JAVA 1.8.0_161. And Ken. I am running a 32 bit OS here if it matters any. |
I now see a tentative fix in 4.11.3 was done. |
Windows 10, JMRI 4.11.2 and 4.11.3. The Roster Media image Drag & Drop feature is broke in 4.11.2 and 4.11.3. User unable to complete Drag&Drop of any media (JPG, PNG, GIF) from a folder to Roster Image frame. Greeted with a Windows red circle of denial. 4 incidents reported
The text was updated successfully, but these errors were encountered: