TRKProtocolPlugin : Unable to download file

本文介绍了解决Carbide开发工具中遇到的应用下载失败问题的方法。通过正确配置项目属性、添加签名选项及设置调试配置,可以有效解决无法下载应用的问题。

I had experienced one time, but able to solve this problem end of the day.
When click on debug and start the download progress bar shows progress and Carbide displays “Carbide Alert”: “Load Failed”, “TRKProtocolPlugin: Unable to download file” (as shown in the picture below).

Solution:

• Right click the project from “Symbian Project Navigator” panel, select “Properties” -> In the “Properties” dialog, from the left tree panel, select “Carbide C++” then “Build Configurations” -> In the “SIS Builder” tab, make sure build for myapplication.sisx is checked, and “Partial Upgrade” is also checked.

• If you don’t see the symbian_ua.sisx entry in the list:
Press “Add” -> set “PKG File:” to C:/…/sis/myapplication.pkg -> if you have certificate and key than select “Signing Options” otherwise select “Self sign sis file” -> press “OK”

• Right click the project from “Symbian Project Navigator” panel, select “Debug As” -> select “Debug Configuration” -> In “Debug Configuration” dialog, from left panel, select “Symbian OS Application TRK” -> do double click on this option or press new button to create configuration -> In “Debug Configuration” dialog, from right panel, see “Use connection box” -> Press on new for new connection and make new connection.

See picture below and be sure that you select correct option.

\ProgramData\miniconda3\envs\torch\python.exe D:\桌面\point\2.py [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709721.ply 处理文件 D:/桌面/point/data/part1\709721.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709724.ply 处理文件 D:/桌面/point/data/part1\709724.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709727.ply 处理文件 D:/桌面/point/data/part1\709727.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709730.ply 处理文件 D:/桌面/point/data/part1\709730.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709733.ply 处理文件 D:/桌面/point/data/part1\709733.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709736.ply 处理文件 D:/桌面/point/data/part1\709736.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709739.ply 处理文件 D:/桌面/point/data/part1\709739.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709742.ply 处理文件 D:/桌面/point/data/part1\709742.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709745.ply 处理文件 D:/桌面/point/data/part1\709745.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709748.ply 处理文件 D:/桌面/point/data/part1\709748.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709751.ply 处理文件 D:/桌面/point/data/part1\709751.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709754.ply 处理文件 D:/桌面/point/data/part1\709754.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709757.ply 处理文件 D:/桌面/point/data/part1\709757.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709760.ply 处理文件 D:/桌面/point/data/part1\709760.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709763.ply 处理文件 D:/桌面/point/data/part1\709763.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709766.ply 处理文件 D:/桌面/point/data/part1\709766.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709769.ply 处理文件 D:/桌面/point/data/part1\709769.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709772.ply 处理文件 D:/桌面/point/data/part1\709772.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709775.ply 处理文件 D:/桌面/point/data/part1\709775.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709778.ply 处理文件 D:/桌面/point/data/part1\709778.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709781.ply 处理文件 D:/桌面/point/data/part1\709781.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709784.ply 处理文件 D:/桌面/point/data/part1\709784.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709787.ply 处理文件 D:/桌面/point/data/part1\709787.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709790.ply 处理文件 D:/桌面/point/data/part1\709790.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709793.ply RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file 处理文件 D:/桌面/point/data/part1\709793.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709796.ply 处理文件 D:/桌面/point/data/part1\709796.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709799.ply 处理文件 D:/桌面/point/data/part1\709799.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709802.ply 处理文件 D:/桌面/point/data/part1\709802.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709805.ply 处理文件 D:/桌面/point/data/part1\709805.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709808.ply 处理文件 D:/桌面/point/data/part1\709808.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709811.ply 处理文件 D:/桌面/point/data/part1\709811.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709814.ply 处理文件 D:/桌面/point/data/part1\709814.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709817.ply 处理文件 D:/桌面/point/data/part1\709817.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709820.ply 处理文件 D:/桌面/point/data/part1\709820.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709823.ply 处理文件 D:/桌面/point/data/part1\709823.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709826.ply 处理文件 D:/桌面/point/data/part1\709826.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709829.ply 处理文件 D:/桌面/point/data/part1\709829.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709832.ply 处理文件 D:/桌面/point/data/part1\709832.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709835.ply 处理文件 D:/桌面/point/data/part1\709835.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709838.ply 处理文件 D:/桌面/point/data/part1\709838.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709841.ply 处理文件 D:/桌面/point/data/part1\709841.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709844.ply 处理文件 D:/桌面/point/data/part1\709844.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709847.ply 处理文件 D:/桌面/point/data/part1\709847.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709850.ply 处理文件 D:/桌面/point/data/part1\709850.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709853.ply 处理文件 D:/桌面/point/data/part1\709853.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709856.ply 处理文件 D:/桌面/point/data/part1\709856.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709859.ply 处理文件 D:/桌面/point/data/part1\709859.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709862.ply 处理文件 D:/桌面/point/data/part1\709862.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709865.ply 处理文件 D:/桌面/point/data/part1\709865.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709868.ply 处理文件 D:/桌面/point/data/part1\709868.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709871.ply 处理文件 D:/桌面/point/data/part1\709871.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709874.ply 处理文件 D:/桌面/point/data/part1\709874.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709877.ply 处理文件 D:/桌面/point/data/part1\709877.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709880.ply 处理文件 D:/桌面/point/data/part1\709880.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709883.ply 处理文件 D:/桌面/point/data/part1\709883.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709886.ply 处理文件 D:/桌面/point/data/part1\709886.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709889.ply 处理文件 D:/桌面/point/data/part1\709889.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709892.ply 处理文件 D:/桌面/point/data/part1\709892.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709895.ply 处理文件 D:/桌面/point/data/part1\709895.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709898.ply 处理文件 D:/桌面/point/data/part1\709898.ply 时出错: index -1 is out of bounds for axis 0 with size 0 RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file
最新发布
07-23
你提供的日志显示了两个**主要错误**,导致你的点云处理脚本 **无法正常运行**: --- ## ❌ 错误类型 1:文件无法打开 ``` [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709721.ply RPly: Unable to open file ``` ### 🔍 问题分析 - **路径不存在** 或 **文件不存在**; - **路径中存在中英文混合或特殊字符**; - **权限问题**(无法访问目标路径); - **路径格式错误**(混合使用 `/` 和 `\`,Windows 一般用 `\`); ### ✅ 解决方案 #### ✅ 1. 检查路径是否存在 ```python if not os.path.exists(input_file): raise FileNotFoundError(f"文件不存在: {input_file}") ``` #### ✅ 2. 替换 `os.path` 为 `pathlib`(自动兼容路径) ```python from pathlib import Path input_file = Path("D:/桌面/point/data/part1/709721.ply") if not input_file.exists(): raise FileNotFoundError(f"文件不存在: {input_file}") ``` #### ✅ 3. 使用 `str()` 转换路径传给 Open3D ```python pcd = o3d.io.read_point_cloud(str(input_file)) ``` --- ## ❌ 错误类型 2:索引越界(index -1 out of bounds) ``` 处理文件 D:/桌面/point/data/part1\709721.ply 时出错: index -1 is out of bounds for axis 0 with size 0 ``` ### 🔍 问题分析 - **尝试访问一个空数组的最后一个元素**; - 通常发生在以下代码中: ```python labels = db.labels_ valid_indices = np.where(labels != -1)[0] ``` 如果 `labels` 是空数组(如 `len(labels) == 0`),就会报错。 ### ✅ 解决方案 在执行 `np.where(labels != -1)` 之前加判断: ```python if labels.size == 0: # 处理空标签情况,例如跳过该文件或返回原始点云 return pcd # 或 raise 异常提示数据异常 ``` --- ## 🛠️ 推荐改进后的 `run_DBSCAN` 函数 ```python def run_DBSCAN(pcd, min_samples=10): points = np.asarray(pcd.points) if len(points) == 0: print("⚠️ 空点云,跳过 DBSCAN") return pcd, {}, [] # 计算平均密度 tree = cKDTree(points) distances, _ = tree.query(points, k=20) eps = np.percentile(distances[:, -1], 95) # 执行 DBSCAN db = DBSCAN(eps=eps, min_samples=min_samples).fit(points) labels = db.labels_ # 处理无聚类情况 if labels.size == 0: print("⚠️ DBSCAN 未生成有效聚类") return pcd, {}, [] # 移除噪声点 valid_indices = np.where(labels != -1)[0] if len(valid_indices) == 0: print("⚠️ 所有点都被标记为噪声") return pcd, {}, [] denoised_pcd = o3d.geometry.PointCloud() denoised_pcd.points = o3d.utility.Vector3dVector(points[valid_indices]) # 保留属性 clean_attributes = {} if pcd.has_colors(): colors = np.asarray(pcd.colors) clean_attributes['colors'] = colors[valid_indices] if pcd.has_normals(): normals = np.asarray(pcd.normals) clean_attributes['normals'] = normals[valid_indices] # 提取簇 clusters = [] unique_labels = np.unique(labels[labels != -1]) for label in unique_labels: cluster_indices = np.where(labels == label)[0] cluster_pcd = o3d.geometry.PointCloud() cluster_pcd.points = o3d.utility.Vector3dVector(points[cluster_indices]) clusters.append(cluster_pcd) return denoised_pcd, clean_attributes, clusters ``` --- ## 📁 路径建议(避免中文路径) **建议将输入路径改为英文路径**,例如: ``` INPUT_FOLDER = 'D:/code/point_cloud/data/part1' OUTPUT_FOLDER = 'D:/code/point_cloud/output' ``` 避免路径中包含“桌面”、“编程”、“点云大赛”等中文字符,有些库对中文路径支持不好。 --- ## ✅ 总结 | 问题 | 原因 | 解决方案 | |------|------|-----------| | `Read PLY failed: unable to open file` | 文件路径错误 | 使用 `Path` + `exists()` 检查路径 | | `index -1 is out of bounds for axis 0 with size 0` | 空数组访问最后一个元素 | 加空数组判断 | | 路径中含中文 | 部分库不兼容中文路径 | 改为英文路径 | | 多线程异常难以调试 | 日志中无上下文 | 添加 `try-except` 上下文打印 | --- 如果你希望我继续帮你: - ✅ 添加日志记录模块(带文件名+错误信息); - ✅ 自动跳过无效文件; - ✅ 生成错误日志文件(失败的文件列表); - ✅ 完整脚本修复; 请告诉我你的目标和需求,我可以继续为你完善脚本。
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值