Git Product home page Git Product logo

jusbpmp's People

jusbpmp's Issues

No device detected

What steps will reproduce the problem?

DeviceManager dm = DeviceManager.getInstance();
dm.createInstance();
dm.scanDevices();
dm.dump();

What is the expected output? What do you see instead?

===========================================
No device detected.
===========================================


What version of the product are you using? On what operating system?

Version 0.15 and 0.14 

Windows 7 x64, 32 Bit JVM. 
Tried Nexus 4, Razor I, Motorla Xoom 1 and Transformer Prime on two different 
PCs.


Original issue reported on code.google.com by [email protected] on 15 Apr 2013 at 9:00

possible device problem

Hi,
 I'm trying to use 0.1.4 and a Java program to get a simple list of files
from a Samsung YP-U3 MP3 player. I can get the device ok, but when I try to
get the files it fails.

One important bit of info, I'm running this on Fedora 10 and using libmtp
v0.3.7-1



My Code:
        PlayMgr mgr=new PlayMgr();
        UsbDevice device=mgr.getDevice();
        if ( device == null ){
            throw new Exception("Unable to locate device.");
        }
        System.out.println("\nDEVICE:\n"+device.dump()+"\n\n");
        String[] files=mgr.getFiles(device);

    public String[] getFiles(UsbDevice dev) throws Exception {
        final Map flist=new HashMap();
        long res;
        res=dev.parseFolder(dev.getAudioFolder(), new IParseTreeNotifier(){ 
                                public long addFile(String fileName, String mtpItemIid){
                                    System.out.println("File:"+fileName);
                                    flist.put(fileName, mtpItemIid);
                                    return 0;
                                }
                                public long addFolder(String name, String id){
                                    System.out.println("FOLDER:"+name);
                                    return 0;
                                }
                            });
        if ( res != 0 ) {
            throw new Exception("error reading device #" + res);
        }
        System.out.println("Got #"+flist.size());
        return (String[])flist.keySet().toArray(new String[0]);
    }


The output is:
   java -classpath bin:jusbpmp-0.1.4.jar com.lrs.PlayMgr
Hi. Version 0.0.1
[serial = C5A5FDFF8FF00000; pid = 0x507D; vid = 0x04E8; name = ?????;
manufacturer = Samsung Electronics; mount point = FKFMPPNPAPPI; video
folder = ; audio folder = ; picture folder = ; index = 0; capacity =
1986576384; canonical = ?????_C5A5FDFF8FF00000_04e8_507d_0]

DEVICE:
[serial = C5A5FDFF8FF00000; pid = 0x507D; vid = 0x04E8; name = ?????;
manufacturer = Samsung Electronics; mount point = FKFMPPNPAPPI; video
folder = ; audio folder = ; picture folder = ; index = 0; capacity =
1986576384; canonical = ?????_C5A5FDFF8FF00000_04e8_507d_0]


getting subfolder for /
getting subfolder , depth 1
current item checked = 
item  existing with ID: 0
Check files in /
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00c7138b, pid=21543, tid=8731536
#
# Java VM: OpenJDK Server VM (14.0-b08 mixed mode linux-x86 )
# Distribution: Custom build (Tue Mar 24 14:54:59 EDT 2009)
# Problematic frame:
# C  [libc.so.6+0x7738b]  strlen+0xb
#
# An error report file with more information is saved as:
# /home/lrs/workspace/jusbpmp-0.1.3/hs_err_pid21543.log
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
#   http://icedtea.classpath.org/bugzilla
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted



Error log is attached

Original issue reported on code.google.com by [email protected] on 31 Mar 2009 at 3:52

Attachments:

Device Report


The following code:
        DeviceManager m = DeviceManager.getInstance();
        m.createInstance();
        m.scanDevices();
        System.out.println(m.getDeviceList());

Results in:

Device 1 (VID=041e and PID=4162) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
PTP: Opening session
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x904d99f4, pid=28224, tid=308439336

#
# Java VM: Java HotSpot(TM) Server VM (11.0-b15 mixed mode linux-x86)
# Problematic frame:
# C  [libmtp.so.7+0x199f4]  ptp_mtp_getobjectproplist+0x124
#
# An error report file with more information is saved as:
# /home/siyb/NetBeansProjects/JZen/hs_err_pid28224.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Java Result: 134

I hereby report the Zen X-Fi as an Device (data above) and I really hope
that this isn't yet another dead mtp implementation for java.

Regards siyb


Original issue reported on code.google.com by [email protected] on 26 Dec 2008 at 9:09

"sendFile" or create directories functions ...

What steps will reproduce the problem?

usbdevFinal.sendFile ("D:\\USB\\file.txt", "TEST\\file.txt", 
      new IDeviceTransferNotifier()
      {
        public void notifyBegin(long l)
        {
          System.out.print ("notifyBegin");
        }
        public void notifyCurrent(long l)
        {
          System.out.print ("notifyCurrent");
        }
        public void notifyEnd ()
        {
          System.out.println ("notifyEnd");
        }
        public boolean getAbort ()
        {
          return false;
        }
    }, null);

What is the expected output? What do you see instead?
Expected output: file.txt on TEST carpet into MTP device.
Output: ERROR_ACCESS_VIOLATION Exception.

What version of the product are you using? On what operating system?
Windows XP SP3 (Spanish version), jdk 1.7.

Please provide any additional information below.
Code is working for USB devices but errors are coming into MTP devices like 
Samsung Galaxy S3.


Original issue reported on code.google.com by [email protected] on 9 Sep 2012 at 5:56

Problem In VISTA

What steps will reproduce the problem?
1. Getting device list returns 0 devices
2.
3.

What is the expected output? What do you see instead?
I expect >0. Seen ==0

What version of the product are you using? On what operating system?
jusbpmp-0.1.4

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 26 May 2009 at 9:31

64

What steps will reproduce the problem?
1. Just list Devices
2.
3.
output:
##
jusbpmp.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary1(Unknown Source)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.load0(Unknown Source)
    at java.lang.System.load(Unknown Source)
    at jpmp.manager.DeviceManager.loadPmpLib(Unknown Source)
    at jpmp.manager.DeviceManager.<init>(Unknown Source)
    at jpmp.manager.DeviceManager.getInstance(Unknown Source)
##

Version 1.4 Win7 64 bit.
I think the only problem here is that the dll has been compiled for 32 bit 
system.

There's any way i could recompile it for 64 bit instead?
After that, could check wich architecture is present and therefore load the 
proper dll at app startup.

greetings


Original issue reported on code.google.com by [email protected] on 9 Nov 2012 at 10:56

Compiling on Windows

Hey there, do you have the files for compiling libjusbpmp on Windows or is 
there away to create a 
build for windows? I've made some changes the core lib to read other mtp track 
info and would like 
to make it work cross platform.

Original issue reported on code.google.com by [email protected] on 13 Jun 2009 at 1:04

Support for play count with MTP devices

Would it be possible to add support for play counts to the C++ lib for MTP 
devices? I've modified 
the code to support it but im unable to compile it, its simple changes.


Original issue reported on code.google.com by [email protected] on 29 Aug 2009 at 12:02

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.