Closed nassosstylianou closed 9 years ago
can you post the stack trace from console.app in the user diagnostic reports:
Using a Macbook Pro, 10.9.5, 4GB Ah yeah, forgot that. The crash report is pasted in below: Process: schooner-multibalance [8625] Path: /Users/USER/*/schooner-multibalance Identifier: schooner-multibalance Version: 0 Code Type: X86-64 (Native) Parent Process: bash [5689] Responsible: Terminal [5683] User ID: 501
Date/Time: 2015-06-13 11:32:08.150 +0100 OS Version: Mac OS X 10.9.5 (13F1066) Report Version: 11 Anonymous UUID: EDF35A15-B7DA-5671-8699-FB3349FE7C29
Sleep/Wake UUID: A42A867F-4B17-46FE-9C10-2E0D5E494A26
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000144e2d172
VM Regions Near 0x144e2d172:
MALLOC_LARGE 0000000116409000-0000000141516000 [689.1M] rw-/rwx SM=PRV
-->
MALLOC_TINY 00007fb4f1400000-00007fb4f1700000 [ 3072K] rw-/rwx SM=PRV
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 schooner-multibalance 0x0000000100f555a1 balance(std::1::vector<cv::Mat, std::1::allocator
Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000144e2d172 rbx: 0x0000000000000000 rcx: 0x0000000144e2d172 rdx: 0x00000000039440b1 rdi: 0x00007fff5ecabe70 rsi: 0x0000000000000000 rbp: 0x00007fff5ecac660 rsp: 0x00007fff5ecab670 r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x00007fff9aa324be r11: 0x00007fff92eeb029 r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000 rip: 0x0000000100f555a1 rfl: 0x0000000000010206 cr2: 0x0000000144e2d172
Logical CPU: 2 Error Code: 0x00000004 Trap Number: 14
Binary Images:
0x100f53000 - 0x100f5afff +schooner-multibalance (0) <0EF09B3A-28F5-3117-A9E3-0D22F68FA546> /Users/USER/*/schooner-multibalance
0x100f68000 - 0x10212ffff +org.gdal.gdal (1.11.2 - GDAL/OGR 1.11.2-2) <5D97BEF9-F80B-3BB5-8BE9-57B7F8BEF407> /Library/Frameworks/GDAL.framework/Versions/1.11/GDAL
0x102727000 - 0x102889fef +libopencv_calib3d.3.0.dylib (0)
External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 36497 thread_create: 2 thread_set_state: 0
VM Region Summary: ReadOnly portion of Libraries: Total=229.8M resident=74.7M(32%) swapped_out_or_unallocated=155.1M(68%) Writable regions: Total=964.7M written=921.0M(95%) resident=606.5M(63%) swapped_out=314.7M(33%) unallocated=358.2M(37%)
REGION TYPE VIRTUAL =========== ======= Kernel Alloc Once 4K MALLOC 954.2M MALLOC (admin) 32K STACK GUARD 56.0M Stack 8192K VM_ALLOCATE 8K DATA 24.8M IMAGE 528K LINKEDIT 73.7M TEXT 156.1M __UNICODE 544K shared memory 4K =========== ======= TOTAL 1.2G
gunna try and fix this today.
:+1: awesome
ok this is fixed here's what i did to create the mosaic, you might need a few more landsat scenes to make it fully remove the clouds, I'd also try and focus on ones with <5% cloud cover:
landsat download --process LC81760362014282LGN00 LC81760362015141LGN00 LC81760362014250LGN00
gdal_merge.py -co "PHOTOMETRIC=RGB" -separate ~/landsat/downloads/LC81760362015141LGN00/LC81760362015141LGN00_B{4,3,2}.TIF -o ~/landsat/downloads/LC81760362015141LGN00/LC81760362015141LGN00_rgb.tif
gdal_merge.py -co "PHOTOMETRIC=RGB" -separate ~/landsat/downloads/LC81760362014282LGN00/LC81760362014282LGN00_B{4,3,2}.TIF -o ~/landsat/downloads/LC81760362014282LGN00/LC81760362014282LGN00_rgb.tif
gdal_merge.py -co "PHOTOMETRIC=RGB" -separate ~/landsat/downloads/LC81760362014250LGN00/LC81760362014250LGN00_B{4,3,2}.TIF -o ~/landsat/downloads/LC81760362014250LGN00/LC81760362014250LGN00_rgb.tif
./src/schooner-multibalance ~/landsat/downloads/LC81760362015141LGN00/LC81760362015141LGN00_rgb.tif ~/landsat/downloads/LC81760362014282LGN00/LC81760362014282LGN00_rgb.tif ~/landsat/downloads/LC81760362014250LGN00/LC81760362014250LGN00_rgb.tif
gdal_translate ~/landsat/downloads/LC81760362014250LGN00/LC81760362014250LGN00_rgb.tif.balanced.tif -outsize 7681 7831 b.tif -projwin 395385.000 3946815.000 625815.000 3711885.000
gdal_translate ~/landsat/downloads/LC81760362015141LGN00/LC81760362015141LGN00_rgb.tif.balanced.tif -outsize 7681 7831 a.tif -projwin 395385.000 3946815.000 625815.000 3711885.000
gdal_translate ~/landsat/downloads/LC81760362014282LGN00/LC81760362014282LGN00_rgb.tif.balanced.tif -outsize 7681 7831 c.tif -projwin 395385.000 3946815.000 625815.000 3711885.000
./src/schooner-blend c.tif a.tif b.tif out.tif
./src/schooner-contrast out.tif out2.tif
Awesome - will give it a go! Was it me doing something wrong or something in the tool that's been fixed?
— Nassos Stylianou www.nassosstylianou.com
On Fri, Jul 10, 2015 at 6:46 PM, Jeff Larson notifications@github.com wrote:
ok this is fixed here's what i did to create the mosaic, you might need a few more landsat scenes to make it fully remove the clouds, I'd also try and focus on ones with <5% cloud cover: landsat download --process LC81760362014282LGN00 LC81760362015141LGN00 LC81760362014250LGN00 gdal_merge.py -co "PHOTOMETRIC=RGB" -separate ~/landsat/downloads/LC81760362015141LGN00/LC81760362015141LGN00_B{4,3,2}.TIF -o ~/landsat/downloads/LC81760362015141LGN00/LC81760362015141LGN00_rgb.tif gdal_merge.py -co "PHOTOMETRIC=RGB" -separate ~/landsat/downloads/LC81760362014282LGN00/LC81760362014282LGN00_B{4,3,2}.TIF -o ~/landsat/downloads/LC81760362014282LGN00/LC81760362014282LGN00_rgb.tif gdal_merge.py -co "PHOTOMETRIC=RGB" -separate ~/landsat/downloads/LC81760362014250LGN00/LC81760362014250LGN00_B{4,3,2}.TIF -o ~/landsat/downloads/LC81760362014250LGN00/LC81760362014250LGN00_rgb.tif ./src/schooner-multibalance ~/landsat/downloads/LC81760362015141LGN00/LC81760362015141LGN00_rgb.tif ~/landsat/downloads/LC81760362014282LGN00/LC81760362014282LGN00_rgb.tif ~/landsat/downloads/LC81760362014250LGN00/LC81760362014250LGN00_rgb.tif gdal_translate ~/landsat/downloads/LC81760362014250LGN00/LC81760362014250LGN00_rgb.tif.balanced.tif -outsize 7681 7831 b.tif -projwin 395385.000 3946815.000 625815.000 3711885.000 gdal_translate ~/landsat/downloads/LC81760362015141LGN00/LC81760362015141LGN00_rgb.tif.balanced.tif -outsize 7681 7831 a.tif -projwin 395385.000 3946815.000 625815.000 3711885.000 gdal_translate ~/landsat/downloads/LC81760362014282LGN00/LC81760362014282LGN00_rgb.tif.balanced.tif -outsize 7681 7831 c.tif -projwin 395385.000 3946815.000 625815.000 3711885.000 ./src/schooner-blend c.tif a.tif b.tif out.tif
./src/schooner-contrast out.tif out2.tif
Reply to this email directly or view it on GitHub: https://github.com/propublica/schooner-tk/issues/6#issuecomment-120476093
Took was busted my bad.
On Friday, July 10, 2015, Nassos Stylianou notifications@github.com wrote:
Awesome - will give it a go! Was it me doing something wrong or something in the tool that's been fixed?
— Nassos Stylianou www.nassosstylianou.com
On Fri, Jul 10, 2015 at 6:46 PM, Jeff Larson <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:
ok this is fixed here's what i did to create the mosaic, you might need a few more landsat scenes to make it fully remove the clouds, I'd also try and focus on ones with <5% cloud cover: landsat download --process LC81760362014282LGN00 LC81760362015141LGN00 LC81760362014250LGN00 gdal_merge.py -co "PHOTOMETRIC=RGB" -separate ~/landsat/downloads/LC81760362015141LGN00/LC81760362015141LGN00_B{4,3,2}.TIF -o ~/landsat/downloads/LC81760362015141LGN00/LC81760362015141LGN00_rgb.tif gdal_merge.py -co "PHOTOMETRIC=RGB" -separate ~/landsat/downloads/LC81760362014282LGN00/LC81760362014282LGN00_B{4,3,2}.TIF -o ~/landsat/downloads/LC81760362014282LGN00/LC81760362014282LGN00_rgb.tif gdal_merge.py -co "PHOTOMETRIC=RGB" -separate ~/landsat/downloads/LC81760362014250LGN00/LC81760362014250LGN00_B{4,3,2}.TIF -o ~/landsat/downloads/LC81760362014250LGN00/LC81760362014250LGN00_rgb.tif ./src/schooner-multibalance ~/landsat/downloads/LC81760362015141LGN00/LC81760362015141LGN00_rgb.tif ~/landsat/downloads/LC81760362014282LGN00/LC81760362014282LGN00_rgb.tif ~/landsat/downloads/LC81760362014250LGN00/LC81760362014250LGN00_rgb.tif gdal_translate ~/landsat/downloads/LC81760362014250LGN00/LC81760362014250LGN00_rgb.tif.balanced.tif -outsize 7681 7831 b.tif -projwin 395385.000 3946815.000 625815.000 3711885.000 gdal_translate ~/landsat/downloads/LC81760362015141LGN00/LC81760362015141LGN00_rgb.tif.balanced.tif -outsize 7681 7831 a.tif -projwin 395385.000 3946815.000 625815.000 3711885.000 gdal_translate ~/landsat/downloads/LC81760362014282LGN00/LC81760362014282LGN00_rgb.tif.balanced.tif -outsize 7681 7831 c.tif -projwin 395385.000 3946815.000 625815.000 3711885.000 ./src/schooner-blend c.tif a.tif b.tif out.tif
./src/schooner-contrast out.tif out2.tif
Reply to this email directly or view it on GitHub:
https://github.com/propublica/schooner-tk/issues/6#issuecomment-120476093
— Reply to this email directly or view it on GitHub https://github.com/propublica/schooner-tk/issues/6#issuecomment-120532007 .
Having issues with schooner multibalance - getting this error when I try to run it: "Segmentation fault: 11"
Here's the command I've run: ./schooner-multibalance LC81760362014282LGN00_rgb_contrast.tif LC81760362015141LGN00_rgb_contrast.tif LC81760362014250LGN00_rgb_contrast.tif
Here's my process - I've done it with all three scenes - just pasting below the standard process for one so you can see what I'm doing. Downloaded scenes with landsat-util to begin with.
cd landsat/downloads/LC81760362014250LGN00 gdal_merge.py -co "PHOTOMETRIC=RGB" -separate LC81760362014250LGN00_B{4,3,2}.tif -o LC81760362014250LGN00_rgb.tif cd cd schooner-tk/src ./schooner-contrast ~/landsat/downloads/LC81760362014250LGN00/LC81760362014250LGN00_rgb.TIF LC81760362014250LGN00_rgb_contrast.tif
Then I ran the multibalance and got the error.