Skip to content
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

3.10.0 crash while open tiff file on windows10 #11261

Open
sendreams opened this issue Nov 13, 2024 · 4 comments
Open

3.10.0 crash while open tiff file on windows10 #11261

sendreams opened this issue Nov 13, 2024 · 4 comments

Comments

@sendreams
Copy link

What is the bug?

I tried compiling the latest version 3.10.0 on Windows 10 (follow the document). After the compilation was completed, there were very few files generated. When I called it using Java and tried to open a TIFF file, it crashed immediately.

However, when I use the files downloaded from https://www.gisinternals.com/release.php, everything works fine. The issue is that the latest version cannot be downloaded from this website.

 驱动器 C 中的卷没有标签。
 卷的序列号是 BE8E-6933

 C:\Apps\dev\gdal\release-x64-3-10-0 的目录

2024/11/13  11:07    <DIR>          .
2024/11/12  14:56    <DIR>          ..
2024/11/13  11:08                 0 file.txt
2024/11/12  14:13        18,960,384 gdal.dll
2024/11/12  14:13         1,606,624 gdal.exp
2024/11/12  14:13         2,622,770 gdal.lib
2024/11/12  14:14           667,648 gdalalljni.dll
2024/11/04  14:47           678,912 jpeg62.dll
2024/11/04  14:46           588,800 libcurl.dll
2024/11/04  14:47           186,880 liblzma.dll
2024/11/04  14:49         3,400,704 proj_9.dll
2024/11/04  14:47         1,116,160 sqlite3.dll
2024/11/04  14:47           467,456 tiff.dll
2024/11/04  14:46            90,624 zlib1.dll

 C:\Apps\dev\gdal\release-x64-3-10-0 的目录

              12 个文件     30,386,962 字节
               2 个目录 345,935,228,928 可用字节

Steps to reproduce the issue

hs_err_pid15428.log
the complete crash log.

private void buildVrt(String tiffFile) throws IOException {
        String string = Paths.get(tiffFile).getParent().toString();
        String name = FilenameUtils.getBaseName(tiffFile);
        File vrtFile = Paths.get(string, name + ".vrt").toFile();
        if (!vrtFile.exists()) {  // create vrt
            Dataset tiffDataset = gdal.Open(tiffFile);    // crash here
            this.dataset = gdal.GetDriverByName("VRT").CreateCopy(vrtFile.toString(), tiffDataset);
        }
        else {
            this.dataset = gdal.Open(vrtFile.toString());
        }
    }

Versions and provenance

version: 3.10.0

Additional context

No response

@jratike80
Copy link
Collaborator

The issue is that the latest version cannot be downloaded from this website.

Newer version is available from here https://www.gisinternals.com/development.php.

@sendreams
Copy link
Author

The issue is that the latest version cannot be downloaded from this website.

Newer version is available from here https://www.gisinternals.com/development.php.

hi, thanks, do you know how to build the source in windows? i have tested in centos, after building have so many file.
gdal3 10 0_linux

@jratike80
Copy link
Collaborator

I am a person who knows nothing about building GDAL, despite that is seems to be difficult especially on Windows. However, I think that the whole successful build system used by Gisinternals is in Github https://github.com/gisinternals/buildsystem

@rouault
Copy link
Member

rouault commented Nov 13, 2024

I suspect something specific to your build, but no idea what

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants