To theoretically analyse how void swelling and spatial heterogeneity impact the fracture behaviour of metallic materials, a coupled porous crystal plasticity framework has been developed. The proposed framework is then applied to analyse the fracture behaviour of metallic materials under different swelling conditions and types of spatial heterogeneity. It is revealed that at low porosity, the spatial heterogeneity of voids will have limited influence on the fracture behaviour of the material. However, at high porosity, owing to void swelling, a concentrated distribution of voids near grain boundaries can lead to a strong deformation localization, which can be seen as an indicator of possible quasi-brittle fracture. It is further discovered that the inner pressure of the voids tends to reduce the yield stress of the material and promote localized plastic deformation. As a result, such pressure will enhance the impact of concentrated distribution of voids, which can lead to further embrittlement of the material. The present study reveals the key role of void swelling and spatial heterogeneity in regulating the fracture behaviour of metallic materials, a step towards a better understanding over the failure mechanisms of metallic materials under extreme conditions.