Title: JNAerator fails to process throwing 'java.util.concurrent.TimeoutException'. · Issue #581 · nativelibs4java/nativelibs4java · GitHub
Open Graph Title: JNAerator fails to process throwing 'java.util.concurrent.TimeoutException'. · Issue #581 · nativelibs4java/nativelibs4java
X Title: JNAerator fails to process throwing 'java.util.concurrent.TimeoutException'. · Issue #581 · nativelibs4java/nativelibs4java
Description: Thank you for your support. Here is the header file: #ifndef LINE_OPTIMIZATION_H #define LINE_OPTIMIZATION_H #include "opencv2/opencv.hpp" #include
Open Graph Description: Thank you for your support. Here is the header file: #ifndef LINE_OPTIMIZATION_H #define LINE_OPTIMIZATION_H #include "opencv2/opencv.hpp" #include
X Description: Thank you for your support. Here is the header file: #ifndef LINE_OPTIMIZATION_H #define LINE_OPTIMIZATION_H #include "opencv2/opencv.hpp" #include <iostream> #include <fstream&g...
Opengraph URL: https://github.com/nativelibs4java/nativelibs4java/issues/581
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JNAerator fails to process throwing 'java.util.concurrent.TimeoutException'.","articleBody":"Thank you for your support.\r\n\r\nHere is the header file:\r\n```\r\n#ifndef LINE_OPTIMIZATION_H\r\n#define LINE_OPTIMIZATION_H\r\n\r\n#include \"opencv2/opencv.hpp\"\r\n#include \u003ciostream\u003e\r\n#include \u003cfstream\u003e\r\n#include \u003cstring\u003e\r\n#include \u003cmap\u003e\r\n\r\nclass LineOptimization {\r\npublic:\r\n LineOptimization();\r\n\r\n // Load the PGM map\r\n bool loadMap(const std::string\u0026 filePath);\r\n\r\n // Apply noise reduction (Median or Gaussian filter)\r\n void reduceNoise(int filterType, int kernelSize);\r\n\r\n // Apply Canny edge detection\r\n void applyCannyEdgeDetection(double lowThreshold, double highThreshold);\r\n\r\n // Apply morphological closing (without edge detection)\r\n void applyMorphologicalClosing(int kernelSize);\r\n\r\n // Save the optimized map\r\n bool saveMap(const std::string\u0026 outputPath);\r\n\r\n // Display the map (optional)\r\n void displayMap(const std::string\u0026 windowName);\r\n\r\n void connectOccupiedContours(double cannyLowThreshold, double cannyHighThreshold, int hullLineThickness, double maxDistance);\r\n\r\n void fillFreeSpace();\r\n\r\n // Straighten contours to orthogonal lines\r\n void straightenContours(int epsilon, double contourAreaThreshold);\r\n\r\n // void loadConfig(const std::string\u0026 configFilePath);\r\n\r\n void lineOptimization(const std::string\u0026 input_directory, const std::string\u0026 output_directory, const std::string\u0026 map_name);\r\n\r\nprivate:\r\n cv::Mat mapImage; // Store the map as a matrix\r\n};\r\n\r\n#endif\r\n```\r\n\r\n\r\n\r\nHere is the output of log:\r\n`/usr/include/c++/9/iostream:13:0: error: File not found: bits/c++config.h in . /usr/include /usr/local/include /usr/include/c++/9 /usr/include/c++/9/tr1\r\n/usr/include/c++/9/ext/numeric_traits.h:59:270: error: Modulus by zero\r\n/usr/include/c++/9/ext/numeric_traits.h:60:59: error: Modulus by zero\r\n/usr/include/c++/9/ext/numeric_traits.h:61:59: error: Modulus by zero\r\n/usr/include/c++/9/ext/numeric_traits.h:62:59: error: Modulus by zero\r\n/usr/include/c++/9/bits/localefwd.h:15:0: error: File not found: bits/c++locale.h in . /usr/include /usr/local/include /usr/include/c++/9 /usr/include/c++/9/tr1\r\n/usr/include/features.h:215:18: error: Unexpected operator ?\r\n/usr/include/features.h:215:37: warning: Unexpected nonwhite token\r\n/usr/include/features.h:215:43: warning: Unexpected nonwhite token\r\n/usr/include/features.h:227:53: error: Unexpected operator ?\r\n/usr/include/features.h:227:106: error: missing ) in expression\r\n/usr/include/features.h:227:106: error: missing ) in expression\r\n/usr/include/features.h:227:106: warning: Unexpected nonwhite token\r\n/usr/include/features.h:227:106: warning: Unexpected nonwhite token\r\n/usr/include/features.h:227:107: warning: Unexpected nonwhite token\r\n/usr/include/features.h:227:113: warning: Unexpected nonwhite token\r\n/usr/include/features.h:227:128: warning: Unexpected nonwhite token\r\n/usr/include/features.h:227:129: warning: Unexpected nonwhite token\r\n/usr/include/features.h:227:144: warning: Unexpected nonwhite token\r\n/usr/include/features.h:227:144: warning: Unexpected nonwhite token\r\n/usr/include/features.h:227:150: warning: Unexpected nonwhite token\r\n/usr/include/features.h:227:150: warning: Unexpected nonwhite token\r\n/usr/include/features.h:227:151: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:276:45: error: Unexpected operator ?\r\n/usr/include/sys/cdefs.h:276:61: error: missing ) in expression\r\n/usr/include/sys/cdefs.h:276:61: error: missing ) in expression\r\n/usr/include/sys/cdefs.h:276:61: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:276:60: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:276:61: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:276:61: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:276:71: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:276:73: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:276:73: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:276:85: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:276:85: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:276:86: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:276:86: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:276:87: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:276:87: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:295:67: error: Unexpected operator ?\r\n/usr/include/sys/cdefs.h:295:83: error: missing ) in expression\r\n/usr/include/sys/cdefs.h:295:83: error: missing ) in expression\r\n/usr/include/sys/cdefs.h:295:83: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:295:82: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:295:83: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:295:83: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:295:93: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:295:94: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:295:94: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:295:95: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:295:107: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:295:107: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:295:108: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:295:109: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:295:109: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:295:110: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:295:111: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:295:117: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:295:131: warning: Unexpected nonwhite token\r\n/usr/include/sys/cdefs.h:295:131: warning: Unexpected nonwhite token\r\n/usr/include/c++/9/ext/atomicity.h:13:0: error: File not found: bits/gthr.h in . /usr/include /usr/local/include /usr/include/c++/9 /usr/include/c++/9/tr1\r\n/usr/include/c++/9/ext/atomicity.h:14:0: error: File not found: bits/atomic_word.h in . /usr/include /usr/local/include /usr/include/c++/9 /usr/include/c++/9/tr1\r\n/usr/include/c++/9/bits/allocator.h:25:0: error: File not found: bits/c++allocator.h in . /usr/include /usr/local/include /usr/include/c++/9 /usr/include/c++/9/tr1\r\n/usr/include/c++/9/bits/locale_facets.h:15:0: error: File not found: bits/ctype_base.h in . /usr/include /usr/local/include /usr/include/c++/9 /usr/include/c++/9/tr1\r\n/usr/include/c++/9/bits/locale_facets.h:1273:0: error: File not found: bits/ctype_inline.h in . /usr/include /usr/local/include /usr/include/c++/9 /usr/include/c++/9/tr1\r\n/usr/include/stdio.h:27:0: error: File not found: stddef.h in . /usr/include /usr/local/include /usr/include/c++/9 /usr/include/c++/9/tr1\r\n/usr/include/c++/9/fstream:16:0: error: File not found: bits/basic_file.h in . /usr/include /usr/local/include /usr/include/c++/9 /usr/include/c++/9/tr1\r\njava.util.concurrent.TimeoutException`\r\nIs throwing java.util.concurrent.TimeoutException.\r\nand\r\nProblem is 'error: File not found: bits/c++config.h' ok?.\r\n\r\n\r\nGuess similar issue.\r\n[BridJ (via JNAerator studio) fails to process simple code with includes throwing 'OutOfMemory'](https://github.com/nativelibs4java/nativelibs4java/issues/205)\r\n\r\n\r\n","author":{"url":"https://github.com/ThinkCodeHelp","@type":"Person","name":"ThinkCodeHelp"},"datePublished":"2024-10-10T04:50:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/581/nativelibs4java/issues/581"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9c3a425b-f429-678c-0fbc-18015292ef25 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B626:39C164:17A75FF:21B3617:697A4377 |
| html-safe-nonce | 12924696210ef41bbe75cd48991fe84379fda909fec56d5496935b1906b9d979 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjI2OjM5QzE2NDoxN0E3NUZGOjIxQjM2MTc6Njk3QTQzNzciLCJ2aXNpdG9yX2lkIjoiNjI4Mjk1NTk3ODAyMjk5NDgwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 89da4270283a02a72e930f4964ab4362ffdebf7f23de71fd26f74d2a7dd57423 |
| hovercard-subject-tag | issue:2577583500 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nativelibs4java/nativelibs4java/581/issue_layout |
| twitter:image | https://opengraph.githubassets.com/82b69c183396d330f9d56175c15936d066bb3578e6aa1c058bc9ea3e40609d7f/nativelibs4java/nativelibs4java/issues/581 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/82b69c183396d330f9d56175c15936d066bb3578e6aa1c058bc9ea3e40609d7f/nativelibs4java/nativelibs4java/issues/581 |
| og:image:alt | Thank you for your support. Here is the header file: #ifndef LINE_OPTIMIZATION_H #define LINE_OPTIMIZATION_H #include "opencv2/opencv.hpp" #include |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ThinkCodeHelp |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a0b4010ae0a1c23b415e9254044ae36042a44c358266cc9a18f32128faad1cf |
| turbo-cache-control | no-preview |
| go-import | github.com/nativelibs4java/nativelibs4java git https://github.com/nativelibs4java/nativelibs4java.git |
| octolytics-dimension-user_id | 11545921 |
| octolytics-dimension-user_login | nativelibs4java |
| octolytics-dimension-repository_id | 2194042 |
| octolytics-dimension-repository_nwo | nativelibs4java/nativelibs4java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2194042 |
| octolytics-dimension-repository_network_root_nwo | nativelibs4java/nativelibs4java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 751738b6aa7c947aef1bb025fad420093c6e3c81 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width