java.io.IOException: lseek failed: EBADF (Bad file number)


Solutions on the web39

Solution icon of github
lseek failed: EBADF (Bad file number)

Solution icon of github
via GitHub by ludwigb
, 9 months ago
lseek failed: EBADF (Bad file number)

Solution icon of github
via GitHub by Goodingn
, 1 year ago
lseek failed: EBADF (Bad file number)

Solution icon of github
lseek failed: EBADF (Bad file number)

Solution icon of googlegroups
via Google Groups by Martin Vennekamp, 3 months ago
lseek failed: EBADF (Bad file number)

Solution icon of github
via GitHub by Goodingn
, 1 year ago
lseek failed: EBADF (Bad file number)

Solution icon of coderanch
via Coderanch by Migrated From Jforum.net, 9 months ago
Bad file number

Solution icon of bugzilla
via Netbeans Bugzilla by chriscarrilho, 1 year ago
Bad file descriptor

Solution icon of bugzilla
via Netbeans Bugzilla by pedalshoe, 1 year ago
Bad file descriptor

Solution icon of apache
via pdfbox-users by Ken Bowen, 1 year ago
Bad file descriptor

Stack trace

java.io.IOException: lseek failed: EBADF (Bad file number)
	at java.io.RandomAccessFile.seek(RandomAccessFile.java:602)
	at org.mapsforge.map.reader.IndexCache.getIndexEntry(IndexCache.java:91)
	at org.mapsforge.map.reader.MapFile.processBlocks(MapFile.java:496)
	at org.mapsforge.map.reader.MapFile.readMapData(MapFile.java:859)
	at org.mapsforge.map.reader.MapFile.readMapData(MapFile.java:834)
	at org.mapsforge.map.layer.renderer.DatabaseRenderer.executeJob(DatabaseRenderer.java:90)
	at org.mapsforge.map.layer.renderer.MapWorkerPool$MapWorker.run(MapWorkerPool.java:155)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
	at java.lang.Thread.run(Thread.java:818)
Caused by: android.system.ErrnoException: lseek failed: EBADF (Bad file number)
	at libcore.io.Posix.lseek(Native Method)
	at libcore.io.BlockGuardOs.lseek(BlockGuardOs.java:163)
	at java.io.RandomAccessFile.seek(RandomAccessFile.java:600)
	at org.mapsforge.map.reader.IndexCache.getIndexEntry(IndexCache.java:91)
	at org.mapsforge.map.reader.MapFile.processBlocks(MapFile.java:496)
	at org.mapsforge.map.reader.MapFile.readMapData(MapFile.java:859)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Once, 1 year ago
10 times, 1 year ago